Problem with Login control and web.config

  • Thread starter Thread starter hrawada
  • Start date Start date
H

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.
 
Are you running the same version of .NET on the development machine and the
server? This is all a configuration issue.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top