Reply
ASP.NET applications working locally but not on my web space
Old 11-06-2007, 04:53 AM ASP.NET applications working locally but not on my web space
pjb007's Avatar
Super Talker

Posts: 100
Location: UK
I have created a ASP.NET application in Visual Studio.

This works locally without any problems at all.

I uploaded to my web host and emailed them to activate the ASP.NET on that folder. But the site does not work. When I visit it I get this message.

Quote:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
My host support tells me that my web.config file is at fault.

As I say it works fine on my IIS in XP Pro. If it works there surely it should work with my webhost?
__________________
pjb007
pjb007 is offline
Reply With Quote
View Public Profile Visit pjb007's homepage!
 
When You Register, These Ads Go Away!
     
Old 11-06-2007, 07:29 AM Re: ASP.NET applications working locally but not on my web space
chrishirst's Avatar
Super Moderator

Posts: 11,466
Location: Blackpool. UK
did you upload the web.config file that works on your local site?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-06-2007, 07:32 AM Re: ASP.NET applications working locally but not on my web space
pjb007's Avatar
Super Talker

Posts: 100
Location: UK
The files on the website and the files on my local host are exactly the same.
__________________
pjb007
pjb007 is offline
Reply With Quote
View Public Profile Visit pjb007's homepage!
 
Old 11-07-2007, 09:30 AM Re: ASP.NET applications working locally but not on my web space
pjb007's Avatar
Super Talker

Posts: 100
Location: UK
Can anyone help on this issue.

My host tells me
Quote:
..... there is now a scripting issue with the 'web.config' file in your filespace.
However it works fine on my local IIS testing server.

My host also say
Quote:
..... this is occuring because the [file path] needs to be created as a subdomain.
I questioned this and was told
Quote:
..... creating a subdomain creates a 'Virtual Directory' on the server
Anyway I tried and it still does not work

When I visit the site via the subdomain I get this error

Code:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error 
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.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
I tried makeing the changes the error message tells me and it makes no differance at all.


When I visit the site at the normal URL I get this message
Code:
Server Application Unavailable 
The web application you are attempting to access on this web server is currently unavailable.  Please hit the "Refresh" button in your web browser to retry your request. 

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
__________________
pjb007

Last edited by pjb007 : 11-07-2007 at 09:41 AM.
pjb007 is offline
Reply With Quote
View Public Profile Visit pjb007's homepage!
 
Old 11-07-2007, 12:23 PM Re: ASP.NET applications working locally but not on my web space
Learning Newbie's Avatar
Moderator

Posts: 4,585
Name: John Alexander
It's not an ASP.NET error, it's not a web.config error, it's nothing at all like that. It's an IIS configuration error. Your host didn't do a good job.

You absolutely do not need to put this on a sub domain. They said using a subdomain forces them to create a new virtual folder, and that's the answer. They need to create a new virtual folder. If a subdomain is one way to do this (and that's news to me) it's not at all the only way. Another is to go into IIS, and select Create New Virtual Folder. That's what they need to do. There are no code changes you can make to make this happen, because the problem comes up before your code gets a chance to run.

The <customErrors> section of web.config tells IIS whether to send a default error message, a custom page, or a stack trace down to the client. What's been suggested is to do the last option I just mentioned, which is a form of debugging, but nothing else, and it's also a security breach.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 11-07-2007, 12:53 PM Re: ASP.NET applications working locally but not on my web space
pjb007's Avatar
Super Talker

Posts: 100
Location: UK
Thanks for your reply - I have emailed them again.
__________________
pjb007
pjb007 is offline
Reply With Quote
View Public Profile Visit pjb007's homepage!
 
Reply     « Reply to ASP.NET applications working locally but not on my web space
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14717 seconds with 13 queries