Solved

Web.config - VS .NET 2005 C#

Posted on 2006-10-19
2
270 Views
Last Modified: 2012-08-13
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,
0
Comment
Question by:niftyhawk
2 Comments
 
LVL 17

Accepted Solution

by:
xDJR1875 earned 500 total points
ID: 17770441
Right click on the project and select add new file... then select "Web configuration file" It still works the same.
0
 
LVL 1

Author Comment

by:niftyhawk
ID: 17770511
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
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now