I have no problem running my app on localhost, but when I deploy to the web server an error occurs. It can be seen at www.vbdotnet.dk/gf . What goes wrong?
Printable View
I have no problem running my app on localhost, but when I deploy to the web server an error occurs. It can be seen at www.vbdotnet.dk/gf . What goes wrong?
Ok, first of all, you have to start reading the error page.
It says to do this to view the actual error:The custom errors element should already be in the web.config file. Just set it to "Off" like it says to. Then, next time you run it, you should get the exact error. You can proceed from there.Quote:
To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
I've tried that, but the only thing that happens is that it makes an error
Take the customerrors element that you added out of the web.config file. Now, scroll down and find the one that is already there (has a bunch of comments by it explaining how to use it). Change that one to Off.
Thanks, I was not awake :o . Now I've found the error, it has something to to with the Inherits-line. My application is build in VS in a project named Georg_Fischer. The code for Global.asax is generated automatically to this reference. What should this code be when I deploy to a web server?
Global.asax:
Applcation running on: www.vbdotnet.dk/gfCode:<%@ Application Codebehind="Global.asax.vb" Inherits="Georg_Fischer.Global" %>
hmm, im trying to upload a project to a website.
I keep getting that annoying white/yellow error page. I HAVE set customerrors="off" and I do not have it in there twice.
Whys it still coming up without proper error then?
Gary
ok fixed that, it was actually an error within the web.config itself (lol)
anyway, I now have the error on the inherits line
What did you do to fix it??
GaZ
Remember to upload the Bin folder (if you're using VS.Net) otherwise the error will appear
mmmkay, Im sure I did. I'll check again later :D
Thanks for replying