Visual Basic .NET » XML Web Service
Problem with Login control and web.config -- Nuki --


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:

/**********************************************************************/









/**********************************************************************/

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
to the following http://schemas.microsoft.com/.NetConfiguration/v2.0  >
The error on the login page changes and specifies that I should set
. But I already have done that in the web,config file.

Any help is much appreciated I am really struggling with this.

-- Nuki --


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:

/**********************************************************************/









/**********************************************************************/

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
to the following http://schemas.microsoft.com/.NetConfiguration/v2.0  >
The error on the login page changes and specifies that I should set
. But I already have done that in the web,config file.

Any help is much appreciated I am really struggling with this.

-- Nuki --


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:

/**********************************************************************/









/**********************************************************************/

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
to the following http://schemas.microsoft.com/.NetConfiguration/v2.0  >
The error on the login page changes and specifies that I should set
. But I already have done that in the web,config file.

Any help is much appreciated I am really struggling with this.

-- Nuki --


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:

/**********************************************************************/









/**********************************************************************/

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
to the following http://schemas.microsoft.com/.NetConfiguration/v2.0  >
The error on the login page changes and specifies that I should set
. But I already have done that in the web,config file.

Any help is much appreciated I am really struggling with this.

-- fufu_yang --


good

-- Nuki --


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:

/**********************************************************************/









/**********************************************************************/

The login page doesn't even load, I sometime 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 is changed to the following
http://schemas.microsoft.com/.NetConfiguration/v2.0  >
Nothing works.

Any help is much appreciated I am really struggling with this.

-- sandeep.s.pawar --


hi Nuki,

just check your page name in which you placed login control.

if it is Login.aspx then it will give you the above error (((( Could not load type System.Web.UI.WebControls.Login from assembly System.Web, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a. ))).

just try to change the name of the page.

Regards,
Sandeep Pawar

-- Nuki --


Hi Sandeep,

Thanks for your time. The page is not called login it was called logint.aspx, anyway I changed it to home.aspx but that did not make any difference. the following is the code for my login page:

<%@ Page Language="C#" Debug="true" %>

"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 
">





Logint










I think the error is because i am missing something in the web.config file. can anyone please tell me what I should I do?

-- JoeEnos --


Your web.config doesn't seem to identify what the login page is. The forms authentication should contain a "forms" element, with at least the following - there are other settings that are worth looking in to:

<authentication mode="Forms">
<forms loginUrl="login.aspx" defaultUrl="default.aspx">
</forms>
</authentication>

My guess would be that your Visual Studio default start page is set up to your login page, so when you run it from the debugger, it gets to that page first, and everything looks ok. However, IIS on your web server doesn't know what your login page is, so it throws this error.

Your web.config file that you posted doesn't have an "authorization"
element - that is definitely required if you're using forms authentication...Something like:

<authorization>
<deny users="?"/>
</authorization>

Hope this works out...

Joe

-- SandeepPawar --


hi,
just check the example which i written in my blog... 


http://sandeeppawar.blogspot.com 
/

regards,
Sandeep Pawar

-- Nuki --


thanks for your reply. I have checked and my host runs .NET v1.1, so i think that is the reason why i am having problems with my application.
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 anyway.

Nuki

[Submit Comment]Home