If you have installed Sharepoint 2010 on Windows 7, You may also encounter following issue while working on Service applications. The details of the error are below:
An exception of type Microsoft.Office.Server.UserProfiles.UserProfileException was thrown. Additional exception information:
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).
If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>An item with the same key has already been added.</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
This occurs because some features of Microsoft .NET Framework are not enabled by default in Windows 7. These features are required for WCF services used in Service applications. To resolve this, navigate to Control Panel -> Program and Features -> Turn Windows Features on or off
Expand the node "Microsoft .NET Framework 3.5.1" and check all the options.
Click OK and check your Service Application again.
An exception of type Microsoft.Office.Server.UserProfiles.UserProfileException was thrown. Additional exception information:
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).
If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>
<head>
<title>An item with the same key has already been added.</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
This occurs because some features of Microsoft .NET Framework are not enabled by default in Windows 7. These features are required for WCF services used in Service applications. To resolve this, navigate to Control Panel -> Program and Features -> Turn Windows Features on or off
Expand the node "Microsoft .NET Framework 3.5.1" and check all the options.
No comments:
Post a Comment