Web.config - VS .NET 2005 C#

niftyhawk
niftyhawk used Ask the Experts™
on
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,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Applications Developer / Integrator
Commented:
Right click on the project and select add new file... then select "Web configuration file" It still works the same.

Author

Commented:
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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial