I have an ASP.Net Web Application project that I’m having a difficult time adding a WCF Service reference to.
The Service is hosted on another machine in IIS 6.
I know the service is fine since if I try to add a reference to it from a new test Web App project, everything works great. I can reference the service from just about anything but the web app I’m trying to add it to?
When I click “Add Service Reference” and use the dialog it all seems ok. It finds the service, lists the interface and the contracts with no problem. BUT it looks like something is going messing up while the proxy is getting created. All the required files get created but a lot of them are missing most of their contents. For example the file configuration.svcinfo when referenced correctly looks like:
<?xml version="1.0" encoding="utf-8"?>
<configurationSnapshot xmlns:xsi=" xmlns:xsd=" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
<behaviors />
<bindings>
<binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" messageEncoding="Text" name="bsEndpoint" textEncoding="utf-8" transferMode="Buffered"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /><security mode="None"><message algorithmSuite="Default" clientCredentialType="UserName" /><transport clientCredentialType="None" proxyCredentialType="None" realm="" /></security></Data>" bindingType="basicHttpBinding" name="bsEndpoint" />
<binding digest="System.ServiceModel.Configuration.CustomBindingElement, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data name="webEndpoint"><textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12" writeEncoding="utf-8"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /></textMessageEncoding></Data>" bindingType="customBinding" name="webEndpoint" />
</bindings>
<endpoints>
<endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data binding="customBinding" bindingConfiguration="webEndpoint" contract="Headline.IHeadline" name="webEndpoint" />" digest="<?xml version="1.0" encoding="utf-16"?><Data binding="customBinding" bindingConfiguration="webEndpoint" contract="Headline.IHeadline" name="webEndpoint" />" contractName="Headline.IHeadline" name="webEndpoint" />
<endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address=" binding="basicHttpBinding" bindingConfiguration="bsEndpoint" contract="Headline.IHeadline" name="bsEndpoint" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address=" binding="basicHttpBinding" bindingConfiguration="bsEndpoint" contract="Headline.IHeadline" name="bsEndpoint" />" contractName="Headline.IHeadline" name="bsEndpoint" />
</endpoints>
</configurationSnapshot>
BUT when I consume it in my web app I get this:
<?xml version="1.0" encoding="utf-8"?>
<configurationSnapshot xmlns:xsi=" xmlns:xsd=" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
<behaviors />
<bindings />
<endpoints />
</configurationSnapshot>
The same is basically true for the configuration91.svcinfo file.
All the other files (.xsd, .wsdl ect.) get created correctly.
Any ideas what may be going wrong here? I’m thinking it’s something to do with my project settings or something like that since on the same machine I can create a new web app and add the reference with no problem but I cant seem to find anything online that can explain my problem let alone offer a solution~
The Service is hosted on another machine in IIS 6.
I know the service is fine since if I try to add a reference to it from a new test Web App project, everything works great. I can reference the service from just about anything but the web app I’m trying to add it to?
When I click “Add Service Reference” and use the dialog it all seems ok. It finds the service, lists the interface and the contracts with no problem. BUT it looks like something is going messing up while the proxy is getting created. All the required files get created but a lot of them are missing most of their contents. For example the file configuration.svcinfo when referenced correctly looks like:
<?xml version="1.0" encoding="utf-8"?>
<configurationSnapshot xmlns:xsi=" xmlns:xsd=" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
<behaviors />
<bindings>
<binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" messageEncoding="Text" name="bsEndpoint" textEncoding="utf-8" transferMode="Buffered"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /><security mode="None"><message algorithmSuite="Default" clientCredentialType="UserName" /><transport clientCredentialType="None" proxyCredentialType="None" realm="" /></security></Data>" bindingType="basicHttpBinding" name="bsEndpoint" />
<binding digest="System.ServiceModel.Configuration.CustomBindingElement, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data name="webEndpoint"><textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12" writeEncoding="utf-8"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /></textMessageEncoding></Data>" bindingType="customBinding" name="webEndpoint" />
</bindings>
<endpoints>
<endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data binding="customBinding" bindingConfiguration="webEndpoint" contract="Headline.IHeadline" name="webEndpoint" />" digest="<?xml version="1.0" encoding="utf-16"?><Data binding="customBinding" bindingConfiguration="webEndpoint" contract="Headline.IHeadline" name="webEndpoint" />" contractName="Headline.IHeadline" name="webEndpoint" />
<endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address=" binding="basicHttpBinding" bindingConfiguration="bsEndpoint" contract="Headline.IHeadline" name="bsEndpoint" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address=" binding="basicHttpBinding" bindingConfiguration="bsEndpoint" contract="Headline.IHeadline" name="bsEndpoint" />" contractName="Headline.IHeadline" name="bsEndpoint" />
</endpoints>
</configurationSnapshot>
BUT when I consume it in my web app I get this:
<?xml version="1.0" encoding="utf-8"?>
<configurationSnapshot xmlns:xsi=" xmlns:xsd=" xmlns="urn:schemas-microsoft-com:xml-wcfconfigurationsnapshot">
<behaviors />
<bindings />
<endpoints />
</configurationSnapshot>
The same is basically true for the configuration91.svcinfo file.
All the other files (.xsd, .wsdl ect.) get created correctly.
Any ideas what may be going wrong here? I’m thinking it’s something to do with my project settings or something like that since on the same machine I can create a new web app and add the reference with no problem but I cant seem to find anything online that can explain my problem let alone offer a solution~