Last post Oct 14, 2008 03:21 AM by stefan.cvetanovski
Nov 28, 2007 03:18 AM|engineerachu|LINK
I hosted my website into my webserver. I got the following error:
<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>
<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web></configuration>
I pasted all the files in wwwroot under "File Manager" in my server. This is a classifieds project. When I pasted a simple file, say "test.aspx" it is showing NO ERROR. That web page is opening. But still that opens only if I type "www.mysite.com/test.aspx".
If I type only the site name, it doesn't open.
I believe I should paste the files in "wwwroot" . Then what is the problem? I set the "customError Mode=off" and tried. Still it is not working. I'm struggling with this problem for the past 2 days.
Can anyone help me?
Thanks in Advance.
Nov 28, 2007 10:21 AM|KoenSt|LINK
Making a test.aspx page was a good idea.
You should make this page the default page in order to make it visible when browsing to
www.mysite.com. This can be done in IIS.
In the web.config you should put customerrors=off.
You should try and add a Virtual Directory to the folder which contains your project. This way you should not move the files to wwwroot.
After you have done all those things you will see the "real" error which is caused by your project.
Nov 30, 2007 12:39 AM|engineerachu|LINK
Unfortunately, I didn't create database in my server. Other than that, my project has no errors. My server didn't setup database for me yet. Once I get database, I can execute it successfully. So the problem is with my server and not project.. Thanks
for you reply!!
May 08, 2008 02:27 AM|tajuddin335|LINK
I have the exactly the same problem. Recently I have transferred my hosting to another provider, I did not have any problem with the previous provider to run my website. I have uploaded the all the files to root directory of the new provider, and I do not
have any connection setup with sql or any other database. Now seems getting problem when I open
www.mysite.com , it gives me runtime error. I could not find any problem in settings, custom error is off in web.config file. I also have installed the dotnetnuke in another directory and it runs fine. I can not resolve
this issue. I have contacted to hosting provider they could not help [:(] me with that.
Please advise me and help me fix the problem. Can you please tell me how did u fix the problem?
Jun 15, 2008 01:45 AM|talatian|LINK
Hi One of reason cause this problem is the framework of your host isnt same to the framework of your site
for example youe code is based on ".net framework 2" and your host setting is ".net framework1". you shoud contact your host admins and ask them to set a same frame work that yor your code based on
Jun 23, 2008 03:42 PM|markuso|LINK
I had the same problem with my hosting provider. It seems that ASP.NET 2.0 is not set on at my provider.
Here is the code I used to find it out:
<%@ Page Language="VB" %>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
lblVersion.Text = "Your server is running ASP.NET and the version is " & System.Environment.Version.ToString()
<form id="form1" runat="server">
<asp:Label ID="lblVersion" runat="server"></asp:Label>
Hope this helps anybody else who is having problems.
For me the code responded: Your server is running ASP.NET and the version is 1.1.4322.2407
I did my coding in ASP.NET 2.0.
Oct 14, 2008 03:21 AM|stefan.cvetanovski|LINK
This is my first post, but I really wanted to post about this problem.. I hade the same problem, but helpfully I solved relly quick. I hade the same issue with run-time error. Then I read the post about the version of the ASP.NET framework and it was helpful
a lot :)! In IIS I checked ASP.Net 2.0 but on my hosting service it was checked 1.1.... So first thing that you should check when a problem like this acours is the version of the framework.
Hope this will bi helpful for someone...