|
List Info
Thread: C-Sharp (C#) Group: Problem with Login control and web.config
|
|
| C-Sharp (C#) Group: Problem with Login
control and web.config |

|
2006-07-10 12:19:10 |
Hello everyone,
I am desperate to solve this problem. I have built my
website using
Visual Web Developer. The website works perfectly fine when
I test it
on my computer. However it doesn't work when I upload it to
my website
and test it over the internet. The website contains a simple
login page
and another page that is the destination page after logging
in. the
following 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
a>">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/x
html" >
<head runat="server">
<title>Logint</title>
</head>
<body>
<form id="form1"
runat="server">
<div>
<asp:Login ID="Login1"
runat="server" />
</div>
</form>
</body>
</html>
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 get an error on the login page, sometimes I get the
following error:
Parser Error Message: Could not load type
System.Web.UI.WebControls.LoginView from assembly
System.Web,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
And sometimes I just get a question mark in the error field.
Another problem is when I change the top of the web.config
file
<configuration> to the following <configuration
xmlns=h
ttp://schemas.microsoft.com/.NetConfiguration/v2.0 >
The error on the login page changes and specifies that I
should set
<customErrors mode="Off"/>. But I already
have done that in the
web,config file.
Any help is much appreciated I am really struggling with
this
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|
|
| C-Sharp (C#) Group: Re: Problem with
Login control and web.config |

|
2006-07-10 13:50:34 |
|
System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3
a
The answer is right there, your host is running framework 1.1 not 2.0
(note how version is 1.0.5000.0 and not 2.0.0.0). If you have MMC
access to the server you can change the version of the framework under
the asp.net tab of website / application properties otherwise send off
an email to your hosting provider asking them to do it for you.
Liam
On 7/10/06, Nuki <gmail.com">hrawada gmail.com> wrote:
Hello everyone,
I am desperate to solve this problem. I have built my website using Visual Web Developer. The website works perfectly fine when I test it on my computer. However it doesn't work when I upload it to my website
and test it over the internet. The website contains a simple login page
and another page that is the destination page after logging in. the following 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>
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 get an error on the login page, sometimes I get the following error:
Parser Error Message: Could not load type System.Web.UI.WebControls.LoginView from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
And sometimes I just get a question mark in the error field.
Another problem is when I change the top of the web.config file <configuration> to the following <configuration xmlns=
http://schemas.microsoft.com/.NetConfiguration/v2.0 > The error on the login page changes and specifies that I should set <customErrors mode="Off"/>. But I already have done that in the web,config file.
Any help is much appreciated I am really struggling with this
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group. To post to this group, send email to C_Sharp googlegroups.com To unsubscribe from this group, send email to C_Sharp-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/C_Sharp -~----------~----~----~----~------~----~------~--~---
|
| C-Sharp (C#) Group: Re: Problem with
Login control and web.config |

|
2006-07-11 06:43:02 |
|
U haven't not compiled the project properly . Open a new project and include all the files and compile and ur project will work perfectly in online
On 7/10/06, Liam Leane <gmail.com">greapy gmail.com> wrote:
System.Web,Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3
a
The answer is right there, your host is running framework 1.1 not 2.0 (note how version is 1.0.5000.0 and not
2.0.0.0). If you have MMC access to the server you can change the version of the framework under the asp.net tab of website / application properties otherwise send off an email to your hosting provider asking them to do it for you.
Liam
On 7/10/06, Nuki <gmail.com" target="_blank">hrawada gmail.com> wrote:
Hello everyone,
I am desperate to solve this problem. I have built my website using
Visual Web Developer. The website works perfectly fine when I test it on my computer. However it doesn't work when I upload it to my website and test it over the internet. The website contains a simple login page
and another page that is the destination page after logging in. the following 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>
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 get an error on the login page, sometimes I get the following error:
Parser Error Message: Could not load type System.Web.UI.WebControls.LoginView
from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
And sometimes I just get a question mark in the error field.
Another problem is when I change the top of the
web.config file <configuration> to the following <configuration xmlns= http://schemas.microsoft.com/.NetConfiguration/v2.0
> The error on the login page changes and specifies that I should set <customErrors mode="Off"/>. But I already have done that in the web,config file.
Any help is much appreciated I am really struggling with this
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group. To post to this group, send email to C_Sharp googlegroups.com To unsubscribe from this group, send email to C_Sharp-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/C_Sharp -~----------~----~----~----~------~----~------~--~---
|
| C-Sharp (C#) Group: Re: Problem with
Login control and web.config |

|
2006-07-11 13:02:10 |
thanks for your replies. I have checked and my host have
.NET v1.1, so
Liam you are right. I have contacted them and i am hoping
that when i
change to .NET 2.0 all of my problems will be solved,
because to be
honest my original application is bigger, but when i
uploaded it i got
loads of problems. and the login was one of them so i tried
to narrow
down the problem by just having one login page and a
web.config.
Thanks for your help again
Nuki
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|