Thursday, March 29, 2012

missing web.config and files using SourceSafe

I have used SourceSafe to load a solution from a development server. After a lot of hassle (as it is the first time I am using VSS and VS together), I managed to figure out how to get a local copy of the website onto my machine.

My problem is that, when I try to compile and start the project, I get the following error:

----------
Error while trying to run project: Unable to start debuggng on the web server. The project is not configured to be debugged.
For ASP.NET projects, verify that you have a valid project file 'Web.config' for the URL specified and 'debug' is set to 'true' in that file.
----------

I have looked in my local directory and the Web.config file has not been copied to my machine, along with a folder that contained the solution file. (This folder is not within any project on the website - if that informatio helps).

This is the first time I am using Visual Source Safe and I would appriciate some help in sorting this problem out.

JagdipHi Jagdip,

Try this code at ur page directive code

<%@.page Language="VB" or C# Debug="True" %> in ur page,

or this in ur web.config file
 <system.web>
<compilation debug="true"/>
</system.web>

then we'll c what happen,
Hope this help,
life's Ng
I do not have a web.config file, so I created one in my local root directory. I then copied and pasted your suggestion and received the following error:

----------
Error while trying to run project: Unable to start debugging on the web server. Server side-error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug.Start Without Debugging. You may also want to refer to the ASP.NET and ATL Server de bugging topic in the online documentation.
----------

I then tried the Debug.Start Without Debugging, and I received the following HTTP error:

----------
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: Configuration file 'D:\main\web.config' does not contain a root <configuration> tag.
------------

Is there no way of making Visual Studio create the web.config file? Why has VS or VSS not copied the existing one?

Thanks for the help

Jags
Sorry, cant help much on this problem for u,
But ur 2nd error, do u have <configuration> tag in ur web.config file? something like this:


<configuration
<system.web>
<compilation debug="true"/>
</system.web
</configuration>

im not sure y u put ur web.config file in ur D:\main\ directory , for my knowledge, it should put within inetpub/wwwroot folder.
May be brother and sister here can correct me and help on this.

Good luck
life's Ng
Because my C: is full (mainly because of Visual Studio .NET), and my company dont want to give me a new computer, I had to change my Default Web Directory to d:\Main.

I actually just copied the web-server's web.config file over and tried that, and got problems aswell. So I've resorted to just trying to reinstall VS !!!!!! Hope that works :-(

0 comments:

Post a Comment