Login Controls

G

Guest

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
 
K

Ken Cox - Microsoft MVP

Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]
 
G

Guest

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



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

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

Seok Bee said:
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
 
G

Guest

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 said:
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

Seok Bee said:
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
 
K

Ken Cox - Microsoft MVP

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 said:
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 said:
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

Seok Bee said:
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
 
G

Guest

This is a server that I am controlling.

Ken Cox - Microsoft MVP said:
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 said:
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 said:
Just checking but does your web.config have profiles enabled.

<authentication mode="Forms" />

?

Ken
MVP [ASP.NET]

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
 

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

Top