473,473 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

web.config and Login control problem

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 <configurationis 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.

Jul 9 '06 #1
4 1508
Does your web server run ASP.NET 2.0?

--

Riki

<hr*****@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr 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 <configurationis 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.

Jul 9 '06 #2
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

<hr*****@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr 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 <configurationis 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.
Jul 10 '06 #3
hr*****@gmail.com 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
Jul 10 '06 #4
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:
hr*****@gmail.com 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
Jul 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dirk Meusel | last post by:
Background: In the root of my webapp the web.config looks like: <authentication mode="Forms"> <forms loginUrl="login.aspx"> </forms> </authentication> <authorization> <allow users="*" />...
1
by: dotnetprogram | last post by:
I have a web application in the parent directory(http://localhost/). it has a web.config setting as follows: <authentication mode="Forms"> <forms loginUrl="Login.aspx" name="UserToken"...
2
by: CW | last post by:
I have run into a really strange problem. My objective is that I only want user who have authenticated themselves to be able to access the website (and authentication is performed by form...
3
by: Natan | last post by:
I have an directory structure like this: localhost/site/myapp localhost/site/myapp/author/ localhost/site/myapp/revisor/ localhost/site/myapp/editor/ localhost/site/myapp/admin/ myapp is an...
9
by: Benny Ng | last post by:
Hi,all, How to let the sub-directory to avoid the authentication control from Root's webconfig? I heard that we can add a new web.config to the sub-directory. And then we can slove the problem....
5
by: Andrew | last post by:
Hi, I have a default.aspx which allows the user to choose between module Admin and module B. When the user clicks either one, he will be redirected to a FormsAuthentication login page. The...
3
by: Tim_Mac | last post by:
Hi, i have this in my web.config: <pages validateRequest="false" > <controls> <add tagPrefix="uc1" src="/Whatever.ascx" tagName="Whatever"/> i have this in Login.aspx: <uc1:Whatever id="Blah"...
4
by: yancheng.cheok | last post by:
Hello all, I have a web application, which I had developed few years ago with ASP .NET 1.1 Today, I would like to deploy the web application to client, using ASP .NET 2.0 + UltiDev Cassini...
1
by: i_robot73 | last post by:
I've got a login control that pre-populates the username using: TextBox txtUserName = (TextBox)Login1.FindControl("UserName"); string requestor = WindowsIdentity.GetCurrent().Name; string...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.