| Home | Forums | Reviews | Articles | Register |
![]() |
| Thread Tools | Rate Thread |
|
eschneider
Guest
Posts: n/a
|
Hello,
I'm try to deploy my first WCF service. I used the VS Publish method, and VS claims it worked fine. However, my client gives me an error, but all works fine on my local network. Also I can't add a reference to my client to the real url. Anyone know whats wrong? Alos is there a newsgroup for WCF? Thanks, Eric http://www.schneidersoft.com/CouponService/ System.ServiceModel.ProtocolException was unhandled Message="The remote server returned an unexpected response: (405) Method Not Allowed." StackTrace: at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyRespon se(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChann elRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message) at Microsoft.Tools.ServiceModel.CFClientBase`1.getReply(Message msg) at Microsoft.Tools.ServiceModel.CFClientBase`1.Invoke[TREQUEST,TRESPONSE](CFInv okeInfo info, FindCouponsRequest request) at CouponServiceClient.FindCoupons(FindCouponsRequest request) at CouponServiceClient.FindCoupons(CouponRequest request1) at ShopWize.Client.CartForm.Form1_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form._SetVisibleNotify(Boolean fVis) at System.Windows.Forms.Control.set_Visible(Boolean value) at System.Windows.Forms.Application.Run(Form fm) at ShopWize.Client.CartForm.Main() InnerException: System.Net.WebException Message="The remote server returned an error: (405) Method Not Allowed." StackTrace: at System.Net.HttpWebRequest.finishGetResponse() at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChann elRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message) at Microsoft.Tools.ServiceModel.CFClientBase`1.getReply(Message msg) at Microsoft.Tools.ServiceModel.CFClientBase`1.Invoke[TREQUEST,TRESPONSE](CFInv okeInfo info, FindCouponsRequest request) at CouponServiceClient.FindCoupons(FindCouponsRequest request) at CouponServiceClient.FindCoupons(CouponRequest request1) at ShopWize.Client.CartForm.Form1_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form._SetVisibleNotify(Boolean fVis) at System.Windows.Forms.Control.set_Visible(Boolean value) at System.Windows.Forms.Application.Run(Form fm) at ShopWize.Client.CartForm.Main() InnerException: |
|
||
|
||||
|
|
|
| |
|
Hongye Sun [MSFT]
Guest
Posts: n/a
|
Hi Eric,
Glad to work with you again. Usually, "http://www.schneidersoft.com/CouponService/" is not a valid address for WCF service. If you use this address in your client application or in Visual Studio add service dialog, you will receive "(405) Method Not Allowed" error message from IIS. It is because the URL is a directory URL instead of a service (svc) path and IIS does not allow "POST" method for directory URL. If this is the case of the problem, the fix is just to change the URL to a svc path. For example, in this case, you should specify the URL to http://www.schneidersoft.com/CouponS...ponService.svc. Since the link you provided is a real internet URL, I did some tests on your website. I found that "http://www.schneidersoft.com/CouponService/ShopWize.CouponService.svc" reports Runtime Error when I visited it. However, the error message is prevented by the web.config security settings. So I was unable to figure out what caused the error. Here is an action plan for you to troubleshoot this issue: 1. Open http://www.schneidersoft.com/CouponS...ponService.svc in browser in your local web server. Local visit will skip the security checking. Or, you can turn off customErrors in web.config, if there is no any security concern. To turn off customErrors, please use the following setting: --------------------------- <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> --------------------------- 2. Check the error message in browser to identify what the problem is and post it here or to my email (E-Mail Removed), remove 'online.'. 3. If the runtime error above is fixed and the service is shown correctly in browser, add service reference in Visual Studio and input svc URL. There is one thing that I cannot explain to you now because I need more information. That is why the client application can be run locally but failed to run remotely. I need the following information: The content of app.config file of your client application. Please post it here or send email to me. BTW: The best managed newsgroup to post WCF questions is: microsoft.public.dotnet.framework.webservices. Please let me know if anything unclear in my reply. I will follow up this issue after receiving your updates. Have a nice day. Regards, Hongye Sun ((E-Mail Removed), remove 'online.') Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: (E-Mail Removed). ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subs...#notifications. Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subs.../aa948874.aspx ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
|
||
|
||||
|
eschneider
Guest
Posts: n/a
|
Thanks, I get the following error:
[ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item] System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item) +11520590 System.Collections.Generic.SynchronizedCollection`1.Add(T item) +67 System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +49 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +129 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +28 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +331 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +11659932 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479 [ServiceActivationException: The service '/CouponService/ShopWize.CouponService.svc' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item.] System.ServiceModel.AsyncResult.End(IAsyncResult result) +11531006 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +278 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 App.config:<?xml version="1.0" encoding="utf-8" ?><configuration><system.web><compilation debug="true" /><customErrors mode="Off"/></system.web><!-- When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. --><system.serviceModel><services><service name="ShopWize.CouponService" behaviorConfiguration="ShopWize.CouponServiceBehavior"><host><baseAddresses><!--<add baseAddress = "http://www.schneidersoft.com/CouponService/" />--><add baseAddress = "http://localhost:8731/CouponService/" /></baseAddresses></host><!-- Service Endpoints --><!-- Unless fully qualified, address is relative to base address supplied above --><endpoint address ="" binding="basicHttpBinding" bindingConfiguration="Binding1" contract="ShopWize.ICouponService"/><!-- Upon deployment, the following identity element should be removed or replaced to reflect the identity under which the deployed service runs. If removed, WCF will infer an appropriate identity automatically.--><!--<identity><dns value="localhost"/></identity></endpoint>--><!--Metadata Endpoints The Metadata Exchange endpoint is used by the service to describe itself to clients. This endpoint does not use a secure binding and should be secured or removed before deployment--><endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/></service></services><bindings><!-- Following is the expanded configuration section for a BasicHttpBinding.Each property is configured with the default value.See the TransportSecurity, and MessageSecurity samples in theBasic directory to learn how to configure these features.--><basicHttpBinding><binding name="Binding1"hostNameComparisonMode="StrongWildcard"receiveTimeout="00:10:00"sendTimeout="00:10:00"openTimeout="00:10:00"closeTimeout="00:10:00"maxReceivedMessageSize="65536"maxBufferSize="65536"maxBufferPoolSize="524288"transferMode="Buffered"messageEncoding="Text"textEncoding="utf-8"bypassProxyOnLocal="false"useDefaultWebProxy="true" ><security mode="None" /></binding></basicHttpBinding></bindings><behaviors><serviceBehaviors><behavior name="ShopWize.CouponServiceBehavior"><!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --><serviceMetadata httpGetEnabled="True"/><!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --><serviceDebug includeExceptionDetailInFaults="true" /></behavior></serviceBehaviors></behaviors></system.serviceModel></configuration> ""Hongye Sun [MSFT]"" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)... > Hi Eric, > > Glad to work with you again. > > Usually, "http://www.schneidersoft.com/CouponService/" is not a valid > address for WCF service. If you use this address in your client > application > or in Visual Studio add service dialog, you will receive "(405) Method Not > Allowed" error message from IIS. It is because the URL is a directory URL > instead of a service (svc) path and IIS does not allow "POST" method for > directory URL. > > If this is the case of the problem, the fix is just to change the URL to a > svc path. For example, in this case, you should specify the URL to > http://www.schneidersoft.com/CouponS...ponService.svc. > > Since the link you provided is a real internet URL, I did some tests on > your website. I found that > "http://www.schneidersoft.com/CouponService/ShopWize.CouponService.svc" > reports Runtime Error when I visited it. However, the error message is > prevented by the web.config security settings. So I was unable to figure > out what caused the error. > > Here is an action plan for you to troubleshoot this issue: > > 1. Open > http://www.schneidersoft.com/CouponS...ponService.svc in > browser in your local web server. Local visit will skip > the security checking. > Or, you can turn off customErrors in web.config, if there is no any > security concern. > To turn off customErrors, please use the following setting: > --------------------------- > <!-- Web.Config Configuration File --> > > <configuration> > <system.web> > <customErrors mode="Off"/> > </system.web> > </configuration> > --------------------------- > > 2. Check the error message in browser to identify what the problem is and > post it here or to my email (E-Mail Removed), remove > 'online.'. > > 3. If the runtime error above is fixed and the service is shown correctly > in browser, add service reference in Visual Studio and input svc URL. > > There is one thing that I cannot explain to you now because I need more > information. That is why the client application can be run locally but > failed to run remotely. > > I need the following information: > The content of app.config file of your client application. Please post it > here or send email to me. > > BTW: The best managed newsgroup to post WCF questions is: > microsoft.public.dotnet.framework.webservices. > > Please let me know if anything unclear in my reply. I will follow up this > issue after receiving your updates. > > Have a nice day. > > Regards, > Hongye Sun ((E-Mail Removed), remove 'online.') > Microsoft Online Community Support > > Delighting our customers is our #1 priority. We welcome your comments and > suggestions about how we can improve the support we provide to you. Please > feel free to let my manager know what you think of the level of service > provided. You can send feedback directly to my manager at: > (E-Mail Removed). > > ================================================== > Get notification to my posts through email? Please refer to > http://msdn.microsoft.com/en-us/subs...#notifications. > > Note: MSDN Managed Newsgroup support offering is for non-urgent issues > where an initial response from the community or a Microsoft Support > Engineer within 2 business day is acceptable. Please note that each follow > up response may take approximately 2 business days as the support > professional working with you may need further investigation to reach the > most efficient resolution. The offering is not appropriate for situations > that require urgent, real-time or phone-based interactions. Issues of this > nature are best handled working with a dedicated Microsoft Support > Engineer > by contacting Microsoft Customer Support Services (CSS) at > http://msdn.microsoft.com/en-us/subs.../aa948874.aspx > ================================================== > This posting is provided "AS IS" with no warranties, and confers no > rights. > |
|
||
|
||||
|
eschneider
Guest
Posts: n/a
|
I modified the base address:
<baseAddresses> <!-- <add baseAddress = "http://localhost:8731/CouponService/" /> --> <add baseAddress = "http://www.schneidersoft.com/CouponService/" /> </baseAddresses> "eschneider" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)... > Thanks, I get the following error: > [ArgumentException: This collection already contains an address with > scheme http. There can be at most one address per scheme in this > collection. > Parameter name: item] > System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri > item) +11520590 > System.Collections.Generic.SynchronizedCollection`1.Add(T item) +67 > System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +49 > System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] > baseAddresses) +129 > System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type > serviceType, Uri[] baseAddresses) +28 > > System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String > constructorString, Uri[] baseAddresses) +331 > System.ServiceModel.HostingManager.CreateService(String > normalizedVirtualPath) +11659932 > System.ServiceModel.HostingManager.ActivateService(String > normalizedVirtualPath) +42 > System.ServiceModel.HostingManager.EnsureServiceAvailable(String > normalizedVirtualPath) +479 > > [ServiceActivationException: The service > '/CouponService/ShopWize.CouponService.svc' cannot be activated due to an > exception during compilation. The exception message is: This collection > already contains an address with scheme http. There can be at most one > address per scheme in this collection. > Parameter name: item.] > System.ServiceModel.AsyncResult.End(IAsyncResult result) +11531006 > > System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult > result) +194 > > System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication > context, Boolean flowContext) +176 > System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, > EventArgs e) +278 > > System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() > +68 > System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& > completedSynchronously) +75 > App.config:<?xml version="1.0" encoding="utf-8" > ?><configuration><system.web><compilation debug="true" /><customErrors > mode="Off"/></system.web><!-- When deploying the service library project, > the content of the config file must be added to the host's app.config > file. System.Configuration does not support config files for > libraries. --><system.serviceModel><services><service > name="ShopWize.CouponService" > behaviorConfiguration="ShopWize.CouponServiceBehavior"><host><baseAddresses><!--<add > baseAddress = "http://www.schneidersoft.com/CouponService/" />--><add > baseAddress = "http://localhost:8731/CouponService/" > /></baseAddresses></host><!-- Service Endpoints --><!-- Unless fully > qualified, address is relative to base address supplied above --><endpoint > address ="" binding="basicHttpBinding" bindingConfiguration="Binding1" > contract="ShopWize.ICouponService"/><!-- Upon deployment, the following > identity element should be removed or replaced to reflect the identity > under which the deployed service runs. If removed, WCF will infer an > appropriate identity automatically.--><!--<identity><dns > value="localhost"/></identity></endpoint>--><!--Metadata Endpoints The > Metadata Exchange endpoint is used by the service to describe itself to > clients. This endpoint does not use a secure binding and should be secured > or removed before deployment--><endpoint address="mex" > binding="mexHttpBinding" > contract="IMetadataExchange"/></service></services><bindings><!-- > Following is the expanded configuration section for a > BasicHttpBinding.Each property is configured with the default value.See > the TransportSecurity, and MessageSecurity samples in theBasic directory > to learn how to configure these features.--><basicHttpBinding><binding > name="Binding1"hostNameComparisonMode="StrongWildcard"receiveTimeout="00:10:00"sendTimeout="00:10:00"openTimeout="00:10:00"closeTimeout="00:10:00"maxReceivedMessageSize="65536"maxBufferSize="65536"maxBufferPoolSize="524288"transferMode="Buffered"messageEncoding="Text"textEncoding="utf-8"bypassProxyOnLocal="false"useDefaultWebProxy="true" > ><security mode="None" > /></binding></basicHttpBinding></bindings><behaviors><serviceBehaviors><behavior > name="ShopWize.CouponServiceBehavior"><!-- To avoid disclosing metadata > information, set the value below to false and remove the metadata endpoint > above before deployment --><serviceMetadata httpGetEnabled="True"/><!-- To > receive exception details in faults for debugging purposes, set the value > below to true. Set to false before deployment to avoid disclosing > exception information --><serviceDebug > includeExceptionDetailInFaults="true" > /></behavior></serviceBehaviors></behaviors></system.serviceModel></configuration> > ""Hongye Sun [MSFT]"" <(E-Mail Removed)> wrote in message > news:(E-Mail Removed)... >> Hi Eric, >> >> Glad to work with you again. >> >> Usually, "http://www.schneidersoft.com/CouponService/" is not a valid >> address for WCF service. If you use this address in your client >> application >> or in Visual Studio add service dialog, you will receive "(405) Method >> Not >> Allowed" error message from IIS. It is because the URL is a directory URL >> instead of a service (svc) path and IIS does not allow "POST" method for >> directory URL. >> >> If this is the case of the problem, the fix is just to change the URL to >> a >> svc path. For example, in this case, you should specify the URL to >> http://www.schneidersoft.com/CouponS...ponService.svc. >> >> Since the link you provided is a real internet URL, I did some tests on >> your website. I found that >> "http://www.schneidersoft.com/CouponService/ShopWize.CouponService.svc" >> reports Runtime Error when I visited it. However, the error message is >> prevented by the web.config security settings. So I was unable to figure >> out what caused the error. >> >> Here is an action plan for you to troubleshoot this issue: >> >> 1. Open >> http://www.schneidersoft.com/CouponS...ponService.svc in >> browser in your local web server. Local visit will skip >> the security checking. >> Or, you can turn off customErrors in web.config, if there is no any >> security concern. >> To turn off customErrors, please use the following setting: >> --------------------------- >> <!-- Web.Config Configuration File --> >> >> <configuration> >> <system.web> >> <customErrors mode="Off"/> >> </system.web> >> </configuration> >> --------------------------- >> >> 2. Check the error message in browser to identify what the problem is and >> post it here or to my email (E-Mail Removed), remove >> 'online.'. >> >> 3. If the runtime error above is fixed and the service is shown correctly >> in browser, add service reference in Visual Studio and input svc URL. >> >> There is one thing that I cannot explain to you now because I need more >> information. That is why the client application can be run locally but >> failed to run remotely. >> >> I need the following information: >> The content of app.config file of your client application. Please post it >> here or send email to me. >> >> BTW: The best managed newsgroup to post WCF questions is: >> microsoft.public.dotnet.framework.webservices. >> >> Please let me know if anything unclear in my reply. I will follow up this >> issue after receiving your updates. >> >> Have a nice day. >> >> Regards, >> Hongye Sun ((E-Mail Removed), remove 'online.') >> Microsoft Online Community Support >> >> Delighting our customers is our #1 priority. We welcome your comments and >> suggestions about how we can improve the support we provide to you. >> Please >> feel free to let my manager know what you think of the level of service >> provided. You can send feedback directly to my manager at: >> (E-Mail Removed). >> >> ================================================== >> Get notification to my posts through email? Please refer to >> http://msdn.microsoft.com/en-us/subs...#notifications. >> >> Note: MSDN Managed Newsgroup support offering is for non-urgent issues >> where an initial response from the community or a Microsoft Support >> Engineer within 2 business day is acceptable. Please note that each >> follow >> up response may take approximately 2 business days as the support >> professional working with you may need further investigation to reach the >> most efficient resolution. The offering is not appropriate for situations >> that require urgent, real-time or phone-based interactions. Issues of >> this >> nature are best handled working with a dedicated Microsoft Support >> Engineer >> by contacting Microsoft Customer Support Services (CSS) at >> http://msdn.microsoft.com/en-us/subs.../aa948874.aspx >> ================================================== >> This posting is provided "AS IS" with no warranties, and confers no >> rights. >> > > |
|
||
|
||||
|
Hongye Sun [MSFT]
Guest
Posts: n/a
|
Hi Eric,
The server error is: "This collection already contains an address with scheme http. There can be at most one address per scheme in this collection." This error is thrown because more than one base addresses are bound to scheme http. By design, WCF hosted service only supports one base address per scheme. You can view the scheme bindings in IIS: In IIS6: Open up the IIS Manager snap-in and right-click on the "Default Web Site" and select Properties. On the "Web Site" tab in the "Web Site Identification", click the "Advanced" button. That should bring up the "Advanced Multiple Web Site Configuration" dialog box. Take a look at the top list box -- if there's more than one entry in there, that's likely the source of this problem. In IIS7: Open up the IIS manager and right click the "Default Web Site" and select "Edit Bindings". In the Site Bindings, take a look at the binding list. If there is more than one entry bound to http type. For more information about scheme binding, please view the background information at the end of my reply. The solution to this error is to remove all unneccesary bindings and leaving only one binding to http. After the server error above is fixed, you can add service reference in Visual Studio again in your client application. Remember to use address: http://www.schneidersoft.com/CouponS...ponService.svc and remove original service reference. The configuration file you provided is server setting instead of client one. Let us do this: 1. Follow the instructions above to fix the server error. 2. Make sure that you can view the correct service page in browser at link: http://www.schneidersoft.com/CouponS...ponService.svc 3. Add the service reference again in client application by Visual Studio add service reference dialog. 4. Make sure the add service reference dialog does not report any error. 5. Run the client application and if it reports error again, send me both the error report and the client configuration file. I will be waiting for the results of each step . Thanks for your cooperation. * Scheme Binding Background* ------------------------------------------------------------- IIS has web sites, which are containers for virtual applications which contain virtual directories. The application in a site can be accessed through one or more IIS binding. IIS bindings provide two pieces of information 每 binding protocol and binding information. Binding protocol defines the scheme over which communication occurs, and binding information is the information used to access the site. Example Binding protocol 每 HTTP Binding Information 每 IPAddress , Port, Hostheader IIS supports specifying multiple IIS bindings per site, which results in multiple base addresses per scheme. A WCF service hosted under a site allows binding to only one baseAddress per scheme. ------------------------------------------------------------- It is referenced from http://blogs.msdn.com/rampo/archive/...port-multiple- iis-binding-specified-per-site.aspx. Please let me know if you have anything unclear. I will be glad to clarify. Regards, Hongye Sun ((E-Mail Removed), remove 'online.') Microsoft Online Community Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: (E-Mail Removed). This posting is provided "AS IS" with no warranties, and confers no rights. |
|
||
|
||||
|
eschneider
Guest
Posts: n/a
|
This is not my server, so I don't think I can follow your instructions.
I have been trying the cutom host approach. Please see this link: http://community.discountasp.net/sho...9496#post29496 Thanks, Eric ""Hongye Sun [MSFT]"" <(E-Mail Removed)> wrote in message news:fJX0oH%(E-Mail Removed)... > Hi Eric, > > The server error is: "This collection already contains an address with > scheme http. There can be at most one address per scheme in this > collection." > > This error is thrown because more than one base addresses are bound to > scheme http. By design, WCF hosted service only supports one base address > per scheme. You can view the scheme bindings in IIS: > > In IIS6: > Open up the IIS Manager snap-in and right-click on the "Default Web Site" > and select Properties. On the "Web Site" tab in the "Web Site > Identification", click the "Advanced" button. > > That should bring up the "Advanced Multiple Web Site Configuration" dialog > box. Take a look at the top list box -- if there's more than one entry in > there, that's likely the source of this problem. > > In IIS7: > Open up the IIS manager and right click the "Default Web Site" and select > "Edit Bindings". In the Site Bindings, take a look at the binding list. If > there is more than one entry bound to http type. > > For more information about scheme binding, please view the background > information at the end of my reply. > > The solution to this error is to remove all unneccesary bindings and > leaving only one binding to http. > > After the server error above is fixed, you can add service reference in > Visual Studio again in your client application. Remember to use address: > http://www.schneidersoft.com/CouponS...ponService.svc and > remove original service reference. > > The configuration file you provided is server setting instead of client > one. Let us do this: > 1. Follow the instructions above to fix the server error. > 2. Make sure that you can view the correct service page in browser at > link: > http://www.schneidersoft.com/CouponS...ponService.svc > 3. Add the service reference again in client application by Visual Studio > add service reference dialog. > 4. Make sure the add service reference dialog does not report any error. > 5. Run the client application and if it reports error again, send me both > the error report and the client configuration file. > > I will be waiting for the results of each step . Thanks for your > cooperation. > > * Scheme Binding Background* > ------------------------------------------------------------- > IIS has web sites, which are containers for virtual applications which > contain virtual directories. The application in a site can be accessed > through one or more IIS binding. > > IIS bindings provide two pieces of information 每 binding protocol and > binding information. Binding protocol defines the scheme over which > communication occurs, and binding information is the information used to > access the site. > > Example > > Binding protocol 每 HTTP > > Binding Information 每 IPAddress , Port, Hostheader > > IIS supports specifying multiple IIS bindings per site, which results in > multiple base addresses per scheme. A WCF service hosted under a site > allows binding to only one baseAddress per scheme. > ------------------------------------------------------------- > It is referenced from > http://blogs.msdn.com/rampo/archive/...port-multiple- > iis-binding-specified-per-site.aspx. > > Please let me know if you have anything unclear. I will be glad to > clarify. > > Regards, > Hongye Sun ((E-Mail Removed), remove 'online.') > Microsoft Online Community Support > > Delighting our customers is our #1 priority. We welcome your comments and > suggestions about how we can improve the support we provide to you. Please > feel free to let my manager know what you think of the level of service > provided. You can send feedback directly to my manager at: > (E-Mail Removed). > > This posting is provided "AS IS" with no warranties, and confers no > rights. > |
|
||
|
||||
|
|
|
| |
![]() |
| Thread Tools | |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deploying ASP.NET 2.0 | =?Utf-8?B?S2V2aW4=?= | Microsoft ASP .NET | 2 | 28th Nov 2005 02:56 AM |
| Deploying W2K on P2P | Jason | Windows XP Setup | 1 | 16th Jul 2004 01:21 AM |
| deploying a c# app... | Daniel Bass | Microsoft C# .NET | 4 | 17th Jun 2004 11:30 AM |
| deploying and re-deploying ASP.Net applications | =?Utf-8?B?VG9tIE4=?= | Microsoft ASP .NET | 2 | 4th Feb 2004 09:31 PM |
| Deploying an mdb?? | =?Utf-8?B?Rw==?= | Microsoft Access Getting Started | 1 | 7th Jan 2004 02:29 PM |
Powered by vBulletin®. Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2010, Crawlability, Inc. |




