Solved

error occurred loading a configuration file - in VS 2008 on one computer but not on another

Posted on 2011-03-15
19
591 Views
Last Modified: 2012-05-11
I developed a web application in VS 2008 using one PC and I don't get any errors.
I opend the web app on another PC with VS 2008, first directly from the UNC path, \\server\E$\Inetpub\Website, then but opening a copy of the Solution created on the other pc.  In both cases I get the error below:  (Blue squiggly line under top line)

I closed and reopened the site and still get the error.  1st PC is Windows XP, 2nd PC is Windows 7.

We have recently moved all our web apps from a Windows 2003 (IIS6) server to a new Windows 2008R2 (IIS7.5) server, but the site has been working fine and opening fine on the 1st PC.  I've had to try to work on it with the 2nd PC because the first one keeps crashing (unrelated problem).

This line of the error is strange because it shows the path to the web.config file as if the web page was a folder.  Is that normal?
\\IntraServ\e$\inetpub\QATools\wp_jobseeker.aspx\web.config

{oh, please don't just show me a link to support.microsoft.com/kb/31####.  I already read it. It didn't help. Thanks.}
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
Warning 1 \\IntraServ\e$\inetpub\QATools\WP_JobSeeker.aspx: 
ASP.NET runtime error: An error occurred loading a configuration file:
 Failed to start monitoring changes to 
'\\IntraServ\e$\inetpub\QATools\wp_jobseeker.aspx' 
because access is denied.
 (\\IntraServ\e$\inetpub\QATools\wp_jobseeker.aspx\web.config)
	File:\\IntraServ\e$\inetpub\QATools\WP_JobSeeker.aspx	
Line:1	Line:1	Project:\\IntraServ\e$\inetpub\QATools\

Open in new window

0
Comment
Question by:megnin
  • 13
  • 6
19 Comments
 
LVL 16

Expert Comment

by:Kamal Khaleefa
Comment Utility
are u using ajax?

when u move to the new server you have to install ajax there
also make sure all the dll are imported correctly and exist in ur system
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
Yes, I'm using AJAX in most of my web applications, a dozen or so.  I moved them to the new server a few weeks ago and everything works fine when I edit them in VS2008 on the 1st PC.  

Are you saying I need to reinstall AJAX on the server because I'm loading the web app on a different PC?
0
 
LVL 16

Accepted Solution

by:
Kamal Khaleefa earned 500 total points
Comment Utility
i think so
or make sure the ajax dll are referenced in ur project
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
Oh, I probably need to install AJAX in VS on the new PC.  I just installed VS yesterday and haven't added anything to it.  I'll go do that right now...
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
Okay, I installed AJAX Toolkit 40412 for 3.5 on the new VS install.  No change.  I still get the same error on the new PC.
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
Comment Utility
mmmm..?
try to exclude and then include ur dll files and compile ur project and then build it
try to show me the full error
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
Comment Utility
show me screen shot if possible
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
>>>Sorry, I just got out of a meeting<<<
I opened an extremely simple web app project and just loaded an .html file into VS.  This .html file has, like a pair of <div> tags with "TEST" between then.  When I tried to run debug it I got this:

------ Build started: Project: \\intraserv\e$\inetpub\WIACaseLoad\, Configuration: Debug Any CPU ------
Validating Web Site
: Build (web): Failed to start monitoring changes to '\\intraserv\e$\inetpub\WIACaseLoad\global.asax' because access is denied.

Seems to be related.
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
Comment Utility
because access is denied. ??
maybe it is domain security problem
why u don't copy the full project and put it on ur machine and run it from there it is much better than through the network
also on ur folder which contain the project do the following
right click ---properties---security---add the network service to ur folder
and give it full permission
0
What Is Threat Intelligence?

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

 
LVL 1

Author Comment

by:megnin
Comment Utility
On my local machine, like, C:\My Documents\Visual Studio 2008\Projects\Website1 ?
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
I added Network Service to my projects folder with full control.

I looked at the security settings for \\Server\E$\Inetpub and Network Service had only "list folder contents" and "Read" checked.  I change it to full control... it's still going through the files...
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
Comment Utility
i hope it will work
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
me too.  ;-)
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
It's still setting security settings on every file in Inetpub.  I hope I didn't just goof.  8-O
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
...our Intranet is a document management system so there are 10 to the 12th files in there.
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
Same error.

I tried excluding then including the AjaxControlToolkit.dll then rebuilding the project but it wouldn't build and I got this error in addition to the same one above.

Error      28      Failed to start monitoring changes to '\\IntraServ\e$\inetpub\QATools\global.asax' because access is denied.            

It's obviously a permissions thing but I don't know what to change.
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
I don't see a global.asax file in the folder specified in the error.
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
I do have show all files selected in the Solution Explorer.
0
 
LVL 1

Author Comment

by:megnin
Comment Utility
I just discovered, after much Googling around and checking permissions and permission inheritance in IIS and on all the folders from Inetpub down, that if I run Visual Studio "As Administrator" the error goes away.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

772 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

14 Experts available now in Live!

Get 1:1 Help Now