![]() |
|
|
|||||||
![]() |
ASP Net - web.config and Login control problem |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hello everyone,
I have built a simple website with a simple login page and another page that is the destination page after logging in. The website works fine on my machince however when I uploaded it to my website it didn't work. This is my web.config file: /************************************************** ********************/ <?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <compilation debug="true" /> <authentication mode="Forms" /> <customErrors mode="Off"/> </system.web> </configuration> /************************************************** ********************/ I always get an error when I try to load the login page. Sometime I get the following error: Could not load type System.Web.UI.WebControls.Login from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. And sometimes I just get a question mark. And one more thing when my <configuration> is changed to the following <configuration xmlns=http://schemas.microsoft.com/.NetConfiguration/v2.0 > Nothing works. I would really appreciate it if anyone can help me solve this problem. I am really struggling with this. hrawada@gmail.com |
|
|
|
|
#2 |
|
Posts: n/a
|
Does your web server run ASP.NET 2.0?
-- Riki <> wrote in message news: oups.com... > Hello everyone, > > I have built a simple website with a simple login page and another page > that is the destination page after logging in. The website works fine > on my machince however when I uploaded it to my website it didn't > work. This is my web.config file: > > /************************************************** ********************/ > <?xml version="1.0" encoding="utf-8"?> > <configuration> > <system.web> > <compilation debug="true" /> > <authentication mode="Forms" /> > <customErrors mode="Off"/> > </system.web> > </configuration> > > /************************************************** ********************/ > > I always get an error when I try to load the login page. Sometime I get > the following error: > Could not load type System.Web.UI.WebControls.Login from assembly > System.Web, Version=1.0.5000.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a. > > And sometimes I just get a question mark. > > And one more thing when my <configuration> is changed to the following > <configuration > xmlns=http://schemas.microsoft.com/.NetConfiguration/v2.0 > > Nothing works. > > I would really appreciate it if anyone can help me solve this problem. > I am really struggling with this. > Riki |
|
|
|
#3 |
|
Posts: n/a
|
Thanks for your reply Riki. i think it does support ASP.NET because
otherwise i wouldnt get the errors. i dont really know much about ASP.NET, but i have built a simple page that contains ASP.NET labels and text boxes and it seemed to work fine. This is the code in the login page: <%@ Page Language="C#" Debug="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Logint</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Login ID="Login1" runat="server" /> </div> </form> </body> </html> i think the problem is that i am mising something in my web.config file. thanks for any help in advance Riki wrote: > Does your web server run ASP.NET 2.0? > > -- > > Riki > > <> wrote in message > news: oups.com... > > Hello everyone, > > > > I have built a simple website with a simple login page and another page > > that is the destination page after logging in. The website works fine > > on my machince however when I uploaded it to my website it didn't > > work. This is my web.config file: > > > > /************************************************** ********************/ > > <?xml version="1.0" encoding="utf-8"?> > > <configuration> > > <system.web> > > <compilation debug="true" /> > > <authentication mode="Forms" /> > > <customErrors mode="Off"/> > > </system.web> > > </configuration> > > > > /************************************************** ********************/ > > > > I always get an error when I try to load the login page. Sometime I get > > the following error: > > Could not load type System.Web.UI.WebControls.Login from assembly > > System.Web, Version=1.0.5000.0, Culture=neutral, > > PublicKeyToken=b03f5f7f11d50a3a. > > > > And sometimes I just get a question mark. > > > > And one more thing when my <configuration> is changed to the following > > <configuration > > xmlns=http://schemas.microsoft.com/.NetConfiguration/v2.0 > > > Nothing works. > > > > I would really appreciate it if anyone can help me solve this problem. > > I am really struggling with this. > > hrawada@gmail.com |
|
|
|
#4 |
|
Posts: n/a
|
wrote:
> Thanks for your reply Riki. i think it does support ASP.NET because > otherwise i wouldnt get the errors. Yes but does it support ASP.NET ****2.0*****. You can read the version at the bottom of the error message. Or else, make a page with this code in the body: <%= System.Environment.Version.Major %> When you execute it on your server, it will show the version. -- Riki Riki |
|
|
|
#5 |
|
Posts: n/a
|
Hi Riki,
Thanks for your reply again. my apologies, i have checked it and at the bottom of the error page it says Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 . and i have put <%= System.Environment.Version.Major %> and i got the number 1, and also i have checked my webserver package and it supports .NET V 1.1. so its pretty clear that it does not support ASP.NET 2.0. so do you think that if i upgrade my hostting package to a one that supports ASP.NET 2.0 that problem will be solved? thanks a lot for your help. Nuki Riki wrote: > wrote: > > Thanks for your reply Riki. i think it does support ASP.NET because > > otherwise i wouldnt get the errors. > > Yes but does it support ASP.NET ****2.0*****. > > You can read the version at the bottom of the error message. > Or else, make a page with this code in the body: > > <%= System.Environment.Version.Major %> > > When you execute it on your server, it will show the version. > > -- > > Riki Nuki |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CISCO 1801 DNS problem | marsav | Hardware | 2 | 07-05-2009 11:41 PM |
| login control in vs2005 | nitinnikam | Software | 0 | 10-30-2006 08:46 AM |
| Re: Can't login to XP Pro machine | jjw | A+ Certification | 2 | 10-19-2004 12:36 AM |
| Re: Can't login to XP Pro machine | Solomon Kozanski | A+ Certification | 5 | 09-25-2004 05:24 PM |
| Re: Can't login to XP Pro machine | Gary | A+ Certification | 3 | 09-22-2004 10:17 PM |