Error message references page on dev box, not server
Is this normal? I have never noticed it before and can't understand it.
I am developing a web application on a PC. The application files are in C:\Development\myApplication
I publish the site to a test server on a local network. I publish the site to \\mytestServer\WebSites\myApplication
This server address is actually D:\WebSites\myApplication - and, after I publish, all that is in there are are the usual .aspx files and the compiled dll in the bin etc.
Running the site in a browser going to http://mytestserver/myApplication/OutlookReminders.aspx (whose virtual directory is pointing to the physical directory D:\WebSites\myApplication) the site runs okay. However, one page is falling over and the stack trace says the error is in C:\Development\myApplication\OutlookReminders.aspx
Which I don't get. How does the server know where the application was developed? Surely these errors would normally say, in the stack trace, that the error occurred in http://mytestserver/myApplication/OutlookReminders.aspx. Why is it saying the error is in a file on a development box?
Am I going nuts?
Re: Error message references page on dev box, not server
Do you have any files with the extension ".refresh" in your application?If so please delete them.
Re: Error message references page on dev box, not server
Quote:
Originally Posted by
sapator
Do you have any files with the extension ".refresh" in your application?If so please delete them.
Thanks for your reply.
No, there are no .refresh files anywhere.
I have read elsewhere that this is caused because the original compiled path is stored in the debug information within the PDB files and that if you publish in Release mode this fixes it.
I have tried publishing in Release mode but, when an error occurs, the stack trace is still referencing the file on the development box.
Re: Error message references page on dev box, not server
Something is probably stays in there and it must be on a file or dll.Check your files and your web.config.