I have site that I did in Classic ASP 5 years ago, the owner now wants to make some changes to the code. I decided to see if moving to .net was an option since the server claims to support .net.
I created a default project and created a page called WebForm1.aspx
I dragged a button to my form and in the button click put a response.write "hello"
Simple enough....
I ftp'd the bin dir with the .dll file as well as the Webform1.aspx page to the server.
I get the following error. Yet I uploaded the same files to 2 other different hosting company servers that belong to other clients and everything works as intended.
They called me back and said there was a problem with my code (typical host response) and the codebehind was pointing to a file that doesn't exist.
How is it that it works elsewhere but not on their server?
What steps can I do to troubleshoot on my end more or should I just wait to see what they find?
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: 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".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
Simply copy that to notepad and safe the file as "web.config" and the set the file save as type to "all" and not txt. Then once uploaded to the same location as the web page should fix things for you
Hope that helps
I will wait for death with a smile and a big stick
Doesn't help...still get the same error.
I think that unless I'm actually on the local machine to see the actual error the most I can do is a redirect to a custom error page.
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: 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".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
no go... thx,
the hosting company is supposedly on it, I just wanted to see if perhaps there was something on my end-although it works fine on the other hosting company servers it seems like it is thier problem.
I don't have access to the hosting server-I have ftp access only.
Unless they have a control panel for users, I don't follow what you mean by creating an application on IIS
ASP.NET applications need to have an application created for them on IIS to run correctly...
If you don't have access to IIS on the server (which is usually the case with 3rd party hosts) then they generally offer a control panel where you can create/remove applications.
Here is what the IIS panel looks like. You should check and see in the control panel of the site if there is an option to do this.. its probably the problem. Most (if not all) hosts that offer ASP.NET, give you that functionality.
Of course I do-Any I've never had to do what your suggesting in order to make my pages work either on my local machine or or a 3rd party server.
But I'll call them and see.
well when you create a new asp.net application in visual studio.. it does it for you... thats that whole dialog you get while its "creating the web application" or whatever it tells you when you create a new ASP.NET application
Yes, but he doesn't have access to the host server. Which means you must create an application folder through a control panel that they provide which will create the IIS application folder for you. You cannot simply create a new ftp folder and put the files in there. Get it (get it? ha ha)?
I know... I was just posting an IIS screen shot because posting a screenshot of my webhosts control panel wouldn't really help any
but I did mention above
If you don't have access to IIS on the server (which is usually the case with 3rd party hosts) then they generally offer a control panel where you can create/remove applications.
Here is what the IIS panel looks like. You should check and see in the control panel of the site if there is an option to do this.. its probably the problem. Most (if not all) hosts that offer ASP.NET, give you that functionality.
I guess one point of confusion is I have two other hosting companies I use and all I did was ftp the files up and they worked no problem.
So apparently something is different in the way these companies have set up their servers.