Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - web.config and Login control problem

 
Thread Tools Search this Thread
Old 07-09-2006, 03:45 PM   #1
Default 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 <configuration> is 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.



hrawada@gmail.com
  Reply With Quote
Old 07-09-2006, 05:34 PM   #2
Riki
 
Posts: n/a
Default Re: web.config and Login control problem
Does your web server run ASP.NET 2.0?

--

Riki

<> wrote in message
news: 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 <configuration> is 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.
>





Riki
  Reply With Quote
Old 07-10-2006, 11:52 AM   #3
hrawada@gmail.com
 
Posts: n/a
Default Re: web.config and Login control problem
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
>
> <> wrote in message
> news: 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 <configuration> is 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.
> >




hrawada@gmail.com
  Reply With Quote
Old 07-10-2006, 01:21 PM   #4
Riki
 
Posts: n/a
Default Re: web.config and Login control problem
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




Riki
  Reply With Quote
Old 07-10-2006, 02:34 PM   #5
Nuki
 
Posts: n/a
Default Re: web.config and Login control problem
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:
> 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




Nuki
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CISCO 1801 DNS problem marsav Hardware 2 07-05-2009 11:41 PM
login control in vs2005 nitinnikam Software 0 10-30-2006 08:46 AM
Re: Can't login to XP Pro machine jjw A+ Certification 2 10-19-2004 12:36 AM
Re: Can't login to XP Pro machine Solomon Kozanski A+ Certification 5 09-25-2004 05:24 PM
Re: Can't login to XP Pro machine Gary A+ Certification 3 09-22-2004 10:17 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46