Reply
Can't get my ASP.NET site to work once I upload it onto my ftp server. Please help.
Old 01-19-2008, 11:04 PM Can't get my ASP.NET site to work once I upload it onto my ftp server. Please help.
Junior Talker

Posts: 2
Name: Jarom
I used visual web editor (the smallbusiness starter kit) to create my website. I uploaded it onto my ftp account I have with ixwebhosting.com. I set the index for my default.aspx, but I am getting an error page when I go to my domain (the site works fine on my computer before i upload it). I believe the problem is that ixwebhosting requires me to put all my files into a 'mydomain.com' folder. If I don't put the files into the folder it will not pull up anything. Can anyone help with the easiest solution? Thanks in advance.
jaromhaynie is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 01-20-2008, 05:18 AM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
chrishirst's Avatar
Super Moderator

Posts: 10,642
Location: Blackpool. UK
and what error page are you getting?
__________________
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 01-21-2008, 08:39 PM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
Junior Talker

Posts: 2
Name: Jarom
Here is the exact error:

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 still think it has something to do with having to put everything into a 'mydomain.com' folder on the ftp server.Let me know if there is anything else you need to know.
jaromhaynie is offline
Reply With Quote
View Public Profile
 
Old 01-22-2008, 04:52 AM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
Junior Talker

Posts: 1
Hi Jarom and Chris,

I have the same problem.
I created a site using the personal starters kit and uploaded it via ftp into my domainfolder.
It runs fine on my computer (using VWD 2005 Express) but I have to say I have XP home, so I am not able to use IIS but are using the build-in webserver.

I am just starting with asp.net so I guess I must be doing something wrong.

How about the web.config file. What must be in it?
How to edit for example the connection string in the web.config file?

I notice that in my domainfolder at IX webhosting there is another folder thats called "aspnet_client". In it theres another folder called "system_web".
In theres another folder called "1_1_4322_0" that has three files: WebUIValidation.js, SmartNav.js and SmartNav.htm.
What to do?

Appreciate your help!
rochfan is offline
Reply With Quote
View Public Profile
 
Old 02-15-2008, 09:28 PM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
ozzozo's Avatar
Experienced Talker

Latest Blog Post:
Customer Support Whitepaper
Posts: 45
The error you are getting is a general error page. You see this page because you are wieving the page from a remote location.

Add this to your web.config file between the <system.web>: <customErrors mode="Off"/>

This will tell the server to 'show the error' - rather than giving a general error page.

Another common thing that is over looked. - Make sure that your web host has your root directory set up as an 'application' in IIS. Also, make sure that they have your IIS settings properly configured to run the ASP.NET version you created your site.


__________________
Universal FAQ Manager - FAQ Management Software
ozzozo is offline
Reply With Quote
View Public Profile Visit ozzozo's homepage!
 
Old 04-14-2008, 01:20 AM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
Junior Talker

Posts: 1
Name: Tim
Hello,

I am getting the exact same error as jarom, and i use ixwebhosting as well and I am very new at this too. I used Visual Studio 2005 proffesional edition to create my web site using vb.net. First, i thought it was a problem with connecting to my .mdb database, but then I uploaded a very simple asp.net/vb.net web site and still got the same error. I also tried to add <customErrors mode="Off"/> to my Web.config file and got the same error again. I've been using the "Publish Web Site" function that visual studio has and i've noticed that it doesn't copy over the aspx.vb files along with them, am i suposed to combine them first? i've tried manually uploading the aspx.vb files to the server, as well as not, and still get the same error. I've also tried uploading everything to my server without the "Publish" feature. In my ixwebhosting menu for my web site it says that asp.net is turned on... I'm not sure if there's anything else i'm suposed to configure or know how to. Any help would be appreciated very much.

Thanks, Tim
squishypoo is offline
Reply With Quote
View Public Profile
 
Old 04-17-2008, 04:08 PM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
robsmith's Avatar
Experienced Talker

Posts: 49
Location: UK
I came here to post about this, I'm new to .net too.

I get the same error, I am on a hosted shared server.

Where is the web config file? I don't see it in my directory, is it something that the host have to change?

I asked them about the error but I don't understand the reply I got back.

"I'm afraid that we still need Custom Errors to be turned off in the web.config file on your site as untill that happens we cannot see the cause of the error. If yuo could let us know when this is done we can investigate further."

I would ask them what this means but it took me a week to get this reply.

Any ideas?
robsmith is offline
Reply With Quote
View Public Profile
 
Old 04-17-2008, 04:40 PM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Favorite Isaac Asimov Story
Posts: 4,070
Name: John Alexander
(1) web.config lives in the root of your web site.
(2) It means they won't let you make the change. When you set Custom Errors, when an error happens, it gives a lot more information about why or at least how the error happened. Mainly, it gives the error message and a stack trace. Armed with this information, a hacker can better attack your web site.

You can get around this with try constructs. Simply catch your exceptions, then Response.Write their message and stack trace when they're caught. Then issue a Response.End() instead of rethrowing the exception.
__________________
HungarianNotation is the last resort of scoundrels. Why not the first resort? That's where it counts!
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 05-01-2008, 07:19 PM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
Average Talker

Posts: 15
Name: Chris
Location: UK
This problem is most probably due to the website settings on the server being set to use ASP.NET1.1 instead of ASP.NET2.0 which is required.

You need to either look in the control panel of your host for a setting called ASP.NET Version and change it to ASP.NET2.0 or you need to get your host to do this for you.
__________________
Chris
.Net C# ASP.NET Developer
Windows Systems Administrator
crashed is offline
Reply With Quote
View Public Profile
 
Old 05-01-2008, 07:35 PM Re: Can't get my ASP.NET site to work once I upload it onto my ftp server. Please he
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Favorite Isaac Asimov Story
Posts: 4,070
Name: John Alexander
Trying to use the wrong runtime framework can cause an error, for example if you try to use template classes in ASP.NET 1.0, but if you're only using v1.1 objects, no error is thrown. I wouldn't expect that to be the cause, although it's very much worth checking.
__________________
HungarianNotation is the last resort of scoundrels. Why not the first resort? That's where it counts!
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Can't get my ASP.NET site to work once I upload it onto my ftp server. Please help.
 

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.21566 seconds with 14 queries