web services - Web reference behavior in an ASP.NET web site project -


On my local workstation, I have a Visual Studio Studio that includes .NET 3.5 C # Class Library Project and a .NET 3.5 ASP.NET Web Site Project

I have created a web reference (example) in the C # class library using the "Add Web Reference" module. This created an app.config with the following section:

  & lt; Application settings & gt; & Lt; MyCompany.MyApp.Data.Properties.Settings & gt; & Lt; Setting name = "MyCompany_MyApp_Data_MyWebService" serializeAs = "string" & gt; & Lt; Price & gt; Http: //prod.webservices/myservice/default.asmx< / Pricing & gt; & Lt; / Settings & gt; & Lt; /MyCompany.MyApp.Data.Properties.Settings> & Lt; / ApplicationSettings & gt;  

In my asp.net web launch, I have also created a reference to the same web service using the "Add Web Reference" feature. This added the following items to the app settings of my web .config file:

    

I have also made a reference to the class library file in the ASP.NET Web site project. When I installed my ASP.NET web site on our development server, then I only web Transfer the config file to the class library for the app.config file and all reference to the web service's work.

When I try to modify web.config file to change web context, it still uses prod.webservice reference url.

What do I have to do to use the Web service for Development Services? Assign

URL after making proxy in your code (read from the config) clearly.


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -