Title: Error while deploying using VSEWSS 1.3
Scenario: On my Windows Vista x64 and IIS 7.0, I installed VseWss 1.3 version and tried to use simple out of the box site definition template. When I build the project every thing is fine. However, when I try to deploy the project it gives me the below error.
-------------------------------------------------------------------------
Error 1 The content type text/html; charset=utf-8 of the response message
does not match the content type of the binding (text/xml; charset=utf-8). If
using a custom encoder, be sure that the IsContentTypeSupported method is
implemented properly. The first 1024 bytes of the response were: ' html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS 7.0 Detailed Error - 500.0 - Internal Server Error</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}
ul,ol{margin:10px 0 10px 40px;}
ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;}
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}
legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px
-12px;_margin-top:0px;
border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px
solid #969696;
border-bottom:1px solid
#969696;background:#E7ECF0;font-weight:bold;f'. 0 0
-------------------------------------------------------------------------
Resolution: After a little bit of googling around I found that the error is related to VseWSS 1.3 version, WCF and IIS 7.0.
So, here is what we need to do:
For Windows Vista:
#1. Under Control Panel > Programs > Programs and Features > Click Turn Windows Features On or Off.
#2. Under Microsoft .NET Framework 3.0, choose Windows Communication Foundation HTTP Activation.
#3. Install the selected features.
Scenario: On my Windows Vista x64 and IIS 7.0, I installed VseWss 1.3 version and tried to use simple out of the box site definition template. When I build the project every thing is fine. However, when I try to deploy the project it gives me the below error.
-------------------------------------------------------------------------
Error 1 The content type text/html; charset=utf-8 of the response message
does not match the content type of the binding (text/xml; charset=utf-8). If
using a custom encoder, be sure that the IsContentTypeSupported method is
implemented properly. The first 1024 bytes of the response were: ' html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS 7.0 Detailed Error - 500.0 - Internal Server Error</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}
ul,ol{margin:10px 0 10px 40px;}
ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;}
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}
legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px
-12px;_margin-top:0px;
border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px
solid #969696;
border-bottom:1px solid
#969696;background:#E7ECF0;font-weight:bold;f'. 0 0
-------------------------------------------------------------------------
Resolution: After a little bit of googling around I found that the error is related to VseWSS 1.3 version, WCF and IIS 7.0.
So, here is what we need to do:
For Windows Vista:
#1. Under Control Panel > Programs > Programs and Features > Click Turn Windows Features On or Off.
#2. Under Microsoft .NET Framework 3.0, choose Windows Communication Foundation HTTP Activation.
#3. Install the selected features.
Comments