473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Login Controls

Dear Experts,

I an trying to use the Login controls in asp.net 2.0 in the Visual Studio
2005. I have created the login page as login.aspx and set the
DestinationPageUrl to ont of my webpage. I have included the Loginname
control in my destination webpage to show the current user who is logging in.
However, after I login through the login page, the Loginname control does not
show the user login name. It is empty. Do I need to configure anything in
order to show the current login user?

Many thanks in advance.

Regards,
SB
Jan 27 '06 #1
5 1462
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

"Seok Bee" <se*****@yahoo.com> wrote in message
news:34**********************************@microsof t.com...
Dear Experts,

I an trying to use the Login controls in asp.net 2.0 in the Visual Studio
2005. I have created the login page as login.aspx and set the
DestinationPageUrl to ont of my webpage. I have included the Loginname
control in my destination webpage to show the current user who is logging
in.
However, after I login through the login page, the Loginname control does
not
show the user login name. It is empty. Do I need to configure anything in
order to show the current login user?

Many thanks in advance.

Regards,
SB

Jan 27 '06 #2
I've checked the web.config, <authentication mode="Forms" /> is not enabled.
Do I need enable it?

"Ken Cox - Microsoft MVP" wrote:
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

"Seok Bee" <se*****@yahoo.com> wrote in message
news:34**********************************@microsof t.com...
Dear Experts,

I an trying to use the Login controls in asp.net 2.0 in the Visual Studio
2005. I have created the login page as login.aspx and set the
DestinationPageUrl to ont of my webpage. I have included the Loginname
control in my destination webpage to show the current user who is logging
in.
However, after I login through the login page, the Loginname control does
not
show the user login name. It is empty. Do I need to configure anything in
order to show the current login user?

Many thanks in advance.

Regards,
SB


Jan 27 '06 #3
I've tried enable the <Authentication Mode="Forms" /> profile, but I received
the following error message:

Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

How could possibly I resolve this problem?

"Ken Cox - Microsoft MVP" wrote:
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

"Seok Bee" <se*****@yahoo.com> wrote in message
news:34**********************************@microsof t.com...
Dear Experts,

I an trying to use the Login controls in asp.net 2.0 in the Visual Studio
2005. I have created the login page as login.aspx and set the
DestinationPageUrl to ont of my webpage. I have included the Loginname
control in my destination webpage to show the current user who is logging
in.
However, after I login through the login page, the Loginname control does
not
show the user login name. It is empty. Do I need to configure anything in
order to show the current login user?

Many thanks in advance.

Regards,
SB


Jan 27 '06 #4
That means there's a conflicting instruction in the machine.config file. Are
you dealing with an ISP or is this a server that you control?

"Seok Bee" <se*****@yahoo.com> wrote in message
news:91**********************************@microsof t.com...
I've tried enable the <Authentication Mode="Forms" /> profile, but I
received
the following error message:

Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error
can be caused by a virtual directory not being configured as an
application
in IIS.

How could possibly I resolve this problem?

"Ken Cox - Microsoft MVP" wrote:
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

"Seok Bee" <se*****@yahoo.com> wrote in message
news:34**********************************@microsof t.com...
> Dear Experts,
>
> I an trying to use the Login controls in asp.net 2.0 in the Visual
> Studio
> 2005. I have created the login page as login.aspx and set the
> DestinationPageUrl to ont of my webpage. I have included the Loginname
> control in my destination webpage to show the current user who is
> logging
> in.
> However, after I login through the login page, the Loginname control
> does
> not
> show the user login name. It is empty. Do I need to configure anything
> in
> order to show the current login user?
>
> Many thanks in advance.
>
> Regards,
> SB


Jan 27 '06 #5
This is a server that I am controlling.

"Ken Cox - Microsoft MVP" wrote:
That means there's a conflicting instruction in the machine.config file. Are
you dealing with an ISP or is this a server that you control?

"Seok Bee" <se*****@yahoo.com> wrote in message
news:91**********************************@microsof t.com...
I've tried enable the <Authentication Mode="Forms" /> profile, but I
received
the following error message:

Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error
can be caused by a virtual directory not being configured as an
application
in IIS.

How could possibly I resolve this problem?

"Ken Cox - Microsoft MVP" wrote:
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

"Seok Bee" <se*****@yahoo.com> wrote in message
news:34**********************************@microsof t.com...
> Dear Experts,
>
> I an trying to use the Login controls in asp.net 2.0 in the Visual
> Studio
> 2005. I have created the login page as login.aspx and set the
> DestinationPageUrl to ont of my webpage. I have included the Loginname
> control in my destination webpage to show the current user who is
> logging
> in.
> However, after I login through the login page, the Loginname control
> does
> not
> show the user login name. It is empty. Do I need to configure anything
> in
> order to show the current login user?
>
> Many thanks in advance.
>
> Regards,
> SB


Jan 28 '06 #6

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

Similar topics

0
by: Ash | last post by:
I want to provide the ability for my users to login from any page that they are on. ie. have a login user control with a username and password box on each page (not a link to a login page). ...
5
by: RedEye | last post by:
Hello, I am working on a test site to explore the new login controls and membership features of ASP.NET v2.0. I have tested the controls using SQL Express and have now decided to try using a...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
3
by: Brian Henry | last post by:
I have an existing user managment system that has been in our asp.net 1.1 app for a couple years now, all the user managment is done through an application that is a win form, and stored in SQL...
5
by: John | last post by:
Hi What db does the built-in user control in asp.net uses? sql server? Access? is it possible to choose? Thanks Regards
5
by: Ronald S. Cook | last post by:
It's been longer that I remember since writing windows (not web) apps. 1) I want to load a main form 2) User clicks login button which brings up login form (on top of main form) 3) Upon...
3
by: ad | last post by:
I have create a custom membership provider. The common usage of custom membership is set it as default Membership Provider win web.config, and use login controls with it. How can I use custom...
1
by: frolda | last post by:
Hi, I moved my login.aspx page from root to a subdirectory and made -hopefully- all necessary changes for all Login controls. All the controls work just fine, except one. To my regret, the...
1
by: pj | last post by:
I'm trying to redirect users to another page after they Authenticate with the ASP.NET login controls. The user is able to login, but I can't get the response.redirect to work. Can anyone help? ...
2
by: mdavis | last post by:
Hello, I'm using a Login Control on asp.net 2.0 website and it works fine on IE & Firefox, however I have recently added a javscript function to listen for a 'return-key-click' and am encountering...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.