Link to home
Start Free TrialLog in
Avatar of niftyhawk
niftyhawk

asked on

Web.config - VS .NET 2005 C#

Hi,

I am used to VS.NET 2003 and C#. When writing soap extensions or any web service project for that matter, we used to have a web.config file automatically created with every project.

But in VS.NET 2005, I dont see that file. How do I get it? If I use the conventional Web.config file of VS.NET 2003, is it still gonna work?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Daniel Reynolds
Daniel Reynolds
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of niftyhawk
niftyhawk

ASKER

cool. How do we add soap extensions in the web.config file?

I have a soap extension written and have the following code

<system.web>
    <webServices>
      <soapExtensionTypes>
        <add type="TraceExtensionLib.TraceExtension, TesterCode.WebServices"
             priority="1"
             group="0" />
      </soapExtensionTypes>
    </webServices>    
  </system.web>

but it gives an error:
[ConfigurationErrorsException]: The value of the property 'type' cannot be parsed. The error is: Could not load file or assembly 'TesterCode.WebServices' or one of its dependencies. The system cannot find the file specified. (c:\inetpub\wwwroot\testcode\web.config line 60)

How do I resolve this? Did I declare the correct way?

Thanks