all groups > dotnet distributed apps > november 2005 >
You're in the

dotnet distributed apps

group:

webconfig settings work for web service in debugger but not under IIS.


webconfig settings work for web service in debugger but not under IIS. bill.jenner NO[at]SPAM gmail.com
11/29/2005 12:13:23 AM
dotnet distributed apps: Trying to develop a webservice that gets/updates a ds, I'm having
problems with my webconfig.ini in my local IIS. It works find in debug
mode.


I created a web service and invoked my methods to test them out. All is
find in the debugger. However, I copied the webservice directory to a
virtual directory on my IIS.
Then from a new client project I attempted to add a web reference but
received an error from my webconfig settings. See the following:

Add a Web Reference: --> http://orion/myds/service.asmx


Server Error in '/myDS' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section
'connectionStrings'

Source Error:


Line 10: <configuration>
Line 11: <appSettings/>
Line 12: <connectionStrings/>
Line 13: <system.web>
Line 14: <!--


Source File: c:\inetpub\wwwroot\myDS\web.config Line: 12


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032
RE: webconfig settings work for web service in debugger but not under Santhi Maadhaven
12/2/2005 7:07:03 AM
Remove the tag <connectionStrings/> from ur web.config ..That is the problem

[quoted text, click to view]
AddThis Social Bookmark Button