Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.MapPath error after publishing a website project

Status
Not open for further replies.

kristof

Programmer
Jun 2, 2000
234
BE
Hi,

I have an ASP.Net website on my local drive, which I published using the publish functionality (VS 2005).

I use Server.MapPath throughout my entire solution, yet it seems to have written the local path into the bin dlls. It definitely hasn't changed anything according to the new path.

Also, I'm (for now) moving to the server mainly because I need to test a webservice which is active there within the original map of the previously existing site.

But now with my publish, I get this error: The directory '/App_WebReferences/' is not allowed because the application is precompiled.

Any ideas? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top