Home All Groups Group Topic Archive Search About

Problem with Login control and web.config

Author
9 Jul 2006 3:53 PM
hrawada
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 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 login page was built using a login control. 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:
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 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.

Author
10 Jul 2006 1:40 PM
Marina Levit [MVP]
Are you running the same version of .NET on the development machine and the
server? This is all a configuration issue.

<hraw***@gmail.com> wrote in message
Show quote
news:1152460416.698770.150060@m79g2000cwm.googlegroups.com...
> 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 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 login page was built using a login control. 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:
> 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 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.
>
Author
11 Jul 2006 1:04 PM
Nuki
thanks for your reply. I have checked and my host has .NET v1.1, but i
am running .NET 2.0. I have contacted hosting 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


Marina Levit [MVP] wrote:
Show quote
> Are you running the same version of .NET on the development machine and the
> server? This is all a configuration issue.
>
> <hraw***@gmail.com> wrote in message
> news:1152460416.698770.150060@m79g2000cwm.googlegroups.com...
> > 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 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 login page was built using a login control. 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:
> > 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 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.
> >

AddThis Social Bookmark Button