|
-
Apr 9th, 2012, 11:48 AM
#1
Thread Starter
Fanatic Member
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?
Last edited by Webskater; Apr 9th, 2012 at 11:53 AM.
-
Apr 9th, 2012, 09:57 PM
#2
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.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Apr 10th, 2012, 03:50 AM
#3
Thread Starter
Fanatic Member
Re: Error message references page on dev box, not server
 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.
Last edited by Webskater; Apr 10th, 2012 at 04:18 AM.
-
Apr 10th, 2012, 07:56 PM
#4
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.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|