Ask a Question related to ASP.NET General, Design and Development.
-
Leon Shaw #1
understanding error message
Someone please help me understand the following error message:
Server Error in '/solo' Application.
----------------------------------------------------------------------------
----
Configuration Error
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.
Source Error:
Line 23: "Forms", "Passport" and "None"
Line 24: -->
Line 25: <authentication mode="Forms" />
Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
Line 27:
Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Leon Shaw Guest
-
How To Supress Acrobat Error Message And Alert Message
Is there any way to supress those pop up message? If can't, is there any way to catch it? -
error message: Microsoft JScript compilation error '800a03ec'
Recieved following error message: Microsoft JScript compilation error '800a03ec' Expected ';' ... -
Error Message When Sending Message In Windows Mail
Am I the only one getting an error message when replying to a posted message using Windows Mail. Every time I send a message I get a popup error... -
Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of... -
Server Error Understanding
Please help me understand this Error??? Server Error in '/solo' Application.... -
S. Justin Gengo #2
Re: understanding error message
Leon,
It looks like the folder your .net files are in is not configured as a web
application on the server.
On the server go to:
Administrative Tools - Internet Information Services
Expand the computer node, expand the web sites node, and find your web site
in the list (It may be within the "Default Web Site" node depending on how
your machine is set up.) If the web site's icon is a folder it is not
configured as a web site.
To configure it as a web site, right click on it and choose properties.
Click the create button and then everything should be fine.
If you have added a web.config file to a folder within your main website
then that folder needs to be a website itself in order for web.config to
function properly.
I hope this helps.
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Leon Shaw" <vnality@msn.com> wrote in message
news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...--> Someone please help me understand the following error message:
>
> Server Error in '/solo' Application.
> --------------------------------------------------------------------------file> ----
>
> Configuration Error
> Description: An error occurred during the processing of a configurationerror> 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. Thisapplication> can be caused by a virtual directory not being configured as an--> in IIS.
>
> Source Error:
>
> Line 23: "Forms", "Passport" and "None"
> Line 24: -->
> Line 25: <authentication mode="Forms" />
> Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
> Line 27:
>
> Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
>
>
> --------------------------------------------------------------------------ASP.NET> ----
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;> Version:1.1.4322.573
>
>
S. Justin Gengo Guest
-
S. Justin Gengo #3
Re: understanding error message
Yes, it usually does. But there are some circumstances in which it does not.
If you add a web.config file to a folder it doesn't automatically make that
folder an app. Another example would be if you copy and paste the web site
files into a folder on the server. Then you would have to set up the site
yourself.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Leon Shaw" <vnality@msn.com> wrote in message
news:%238H1wl1WDHA.3268@tk2msftngp13.phx.gbl...IDE.> but I though visual studios .net set-up the virtual directory and
> application automatically when you create a web application inside theweb> "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...> > Leon,
> >
> > It looks like the folder your .net files are in is not configured as ahow> site> > application on the server.
> >
> > On the server go to:
> >
> > Administrative Tools - Internet Information Services
> >
> > Expand the computer node, expand the web sites node, and find your web> > in the list (It may be within the "Default Web Site" node depending onconfiguration>> > your machine is set up.) If the web site's icon is a folder it is not
> > configured as a web site.
> >
> > To configure it as a web site, right click on it and choose properties.
> > Click the create button and then everything should be fine.
> >
> > If you have added a web.config file to a folder within your main website
> > then that folder needs to be a website itself in order for web.config to
> > function properly.
> >
> > I hope this helps.
> >
> > --
> > S. Justin Gengo, MCP
> > Web Developer
> >
> > Free code library at:
> > [url]www.aboutfortunate.com[/url]
> >
> > "Out of chaos comes order."
> > Nietzche
> > "Leon Shaw" <vnality@msn.com> wrote in message
> > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...> >> > > Someone please help me understand the following error message:
> > >
> > > Server Error in '/solo' Application.
> --------------------------------------------------------------------------> > --> > > ----
> > >
> > > Configuration Error
> > > Description: An error occurred during the processing of a> details> > file> > > required to service this request. Please review the specific error>> > error> > > 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> > application> > > can be caused by a virtual directory not being configured as an> >> > > in IIS.
> > >
> > > Source Error:
> > >
> > > Line 23: "Forms", "Passport" and "None"
> > > Line 24: -->
> > > Line 25: <authentication mode="Forms" />
> > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
> > > Line 27:
> > >
> > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
> > >
> > >
> -------------------------------------------------------------------------->> > --> > ASP.NET> > > ----
> > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;> >> > > Version:1.1.4322.573
> > >
> > >
> >
>
S. Justin Gengo Guest
-
Leon Shaw #4
Re: understanding error message
ok so if I added a folder named ulogin to my application in which all my
protected webpage and web.config file is located then ulogin folder itself
must be a web application. So how do I add an application (instead of a
folder) to my main web application inside of VS.net IDE, so I can password
protect certain pages?
"S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...site> Leon,
>
> It looks like the folder your .net files are in is not configured as a web
> application on the server.
>
> On the server go to:
>
> Administrative Tools - Internet Information Services
>
> Expand the computer node, expand the web sites node, and find your webdetails> in the list (It may be within the "Default Web Site" node depending on how
> your machine is set up.) If the web site's icon is a folder it is not
> configured as a web site.
>
> To configure it as a web site, right click on it and choose properties.
> Click the create button and then everything should be fine.
>
> If you have added a web.config file to a folder within your main website
> then that folder needs to be a website itself in order for web.config to
> function properly.
>
> I hope this helps.
>
> --
> S. Justin Gengo, MCP
> Web Developer
>
> Free code library at:
> [url]www.aboutfortunate.com[/url]
>
> "Out of chaos comes order."
> Nietzche
> "Leon Shaw" <vnality@msn.com> wrote in message
> news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...>> > Someone please help me understand the following error message:
> >
> > Server Error in '/solo' Application.
> --------------------------------------------------------------------------
> --> file> > ----
> >
> > Configuration Error
> > Description: An error occurred during the processing of a configuration> > required to service this request. Please review the specific error> error> > 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> application> > can be caused by a virtual directory not being configured as an>> > in IIS.
> >
> > Source Error:
> >
> > Line 23: "Forms", "Passport" and "None"
> > Line 24: -->
> > Line 25: <authentication mode="Forms" />
> > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
> > Line 27:
> >
> > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
> >
> >
> --------------------------------------------------------------------------
> --> ASP.NET> > ----
> > Version Information: Microsoft .NET Framework Version:1.1.4322.573;>> > Version:1.1.4322.573
> >
> >
>
Leon Shaw Guest
-
S. Justin Gengo #5
Re: understanding error message
Leon,
If you want instead of adding a separate web.config file to your folder you
can actually use the main web.config file to protect a folder within the web
site.
I have an example on how to do this on my website: [url]www.aboutfortunate.com[/url].
Just search the code library for: "protect a folder with forms
authentication"
I also have a link to an article about how to use a database with forms
authentication in the library (I just added the link when I saw it posted
here).
Good luck!
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Leon Shaw" <vnality@msn.com> wrote in message
news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...web> ok so if I added a folder named ulogin to my application in which all my
> protected webpage and web.config file is located then ulogin folder itself
> must be a web application. So how do I add an application (instead of a
> folder) to my main web application inside of VS.net IDE, so I can password
> protect certain pages?
>
> "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...> > Leon,
> >
> > It looks like the folder your .net files are in is not configured as ahow> site> > application on the server.
> >
> > On the server go to:
> >
> > Administrative Tools - Internet Information Services
> >
> > Expand the computer node, expand the web sites node, and find your web> > in the list (It may be within the "Default Web Site" node depending onconfiguration>> > your machine is set up.) If the web site's icon is a folder it is not
> > configured as a web site.
> >
> > To configure it as a web site, right click on it and choose properties.
> > Click the create button and then everything should be fine.
> >
> > If you have added a web.config file to a folder within your main website
> > then that folder needs to be a website itself in order for web.config to
> > function properly.
> >
> > I hope this helps.
> >
> > --
> > S. Justin Gengo, MCP
> > Web Developer
> >
> > Free code library at:
> > [url]www.aboutfortunate.com[/url]
> >
> > "Out of chaos comes order."
> > Nietzche
> > "Leon Shaw" <vnality@msn.com> wrote in message
> > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...> >> > > Someone please help me understand the following error message:
> > >
> > > Server Error in '/solo' Application.
> --------------------------------------------------------------------------> > --> > > ----
> > >
> > > Configuration Error
> > > Description: An error occurred during the processing of a> details> > file> > > required to service this request. Please review the specific error>> > error> > > 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> > application> > > can be caused by a virtual directory not being configured as an> >> > > in IIS.
> > >
> > > Source Error:
> > >
> > > Line 23: "Forms", "Passport" and "None"
> > > Line 24: -->
> > > Line 25: <authentication mode="Forms" />
> > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
> > > Line 27:
> > >
> > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
> > >
> > >
> -------------------------------------------------------------------------->> > --> > ASP.NET> > > ----
> > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;> >> > > Version:1.1.4322.573
> > >
> > >
> >
>
S. Justin Gengo Guest
-
S. Justin Gengo #6
Re: understanding error message
Leon,
Here's how I'm doing it:
'---My login page code
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLogin.Click
Try
Dim FormsAuth As New FormsAuthentication
If FormsAuth.Authenticate(txtbxUsername.Text.ToString ,
txtbxPassword.Text.ToString) Then
FormsAuth.RedirectFromLoginPage(txtbxUsername.Text .ToString,
True)End If
Catch ex As Excepion
'---Handle errors
End Try
End Sub
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Leon Shaw" <vnality@msn.com> wrote in message
news:u1TXQE2WDHA.2392@TK2MSFTNGP10.phx.gbl...System.Web.Security.FormsAuthentication.RedirectFr omLoginPage(Me.txtUsername> so how do send use to a protect page in the application. Is this correct?
> If Me.IsValid Then
>
> If Me.myAuthorization(Me.txtUsername.Text.ToLower,
> Me.txtPassword.Text.ToLower) > 0 Then
>
>[url]www.aboutfortunate.com[/url].> .Text, True)
>
> Me.Response.Redirect("../ulogin/default.aspx")
>
> End If
>
> End If
>
> "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> news:uhttIx1WDHA.2476@tk2msftngp13.phx.gbl...> you> > Leon,
> >
> > If you want instead of adding a separate web.config file to your folder> web> > can actually use the main web.config file to protect a folder within the> > site.
> >
> > I have an example on how to do this on my website:posted> > Just search the code library for: "protect a folder with forms
> > authentication"
> >
> > I also have a link to an article about how to use a database with forms
> > authentication in the library (I just added the link when I saw itmy> > here).
> >
> > Good luck!
> >
> > --
> > S. Justin Gengo, MCP
> > Web Developer
> >
> > Free code library at:
> > [url]www.aboutfortunate.com[/url]
> >
> > "Out of chaos comes order."
> > Nietzche
> >
> >
> > "Leon Shaw" <vnality@msn.com> wrote in message
> > news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...> > > ok so if I added a folder named ulogin to my application in which alla> itself> > > protected webpage and web.config file is located then ulogin folder> > > must be a web application. So how do I add an application (instead ofa> password> > > folder) to my main web application inside of VS.net IDE, so I can> > > protect certain pages?
> > >
> > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> > > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
> > > > Leon,
> > > >
> > > > It looks like the folder your .net files are in is not configured asweb> > web> > > > application on the server.
> > > >
> > > > On the server go to:
> > > >
> > > > Administrative Tools - Internet Information Services
> > > >
> > > > Expand the computer node, expand the web sites node, and find youron> > > site
> > > > in the list (It may be within the "Default Web Site" node dependingnot> > how> > > > your machine is set up.) If the web site's icon is a folder it isweb.config> properties.> > > > configured as a web site.
> > > >
> > > > To configure it as a web site, right click on it and choose> website> > > > Click the create button and then everything should be fine.
> > > >
> > > > If you have added a web.config file to a folder within your main> > > > then that folder needs to be a website itself in order foras> to>> >> > > > function properly.
> > > >
> > > > I hope this helps.
> > > >
> > > > --
> > > > S. Justin Gengo, MCP
> > > > Web Developer
> > > >
> > > > Free code library at:
> > > > [url]www.aboutfortunate.com[/url]
> > > >
> > > > "Out of chaos comes order."
> > > > Nietzche
> > > > "Leon Shaw" <vnality@msn.com> wrote in message
> > > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
> > > > > Someone please help me understand the following error message:
> > > > >
> > > > > Server Error in '/solo' Application.
> > > >
> > >
> --------------------------------------------------------------------------> > configuration> > > > --
> > > > > ----
> > > > >
> > > > > Configuration Error
> > > > > Description: An error occurred during the processing of a> > > > 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 registeredVersion:1.1.4322.573;> This> > > > > allowDefinition='MachineToApplication' beyond application level.>> >> > > > error
> > > > > can be caused by a virtual directory not being configured as an
> > > > application
> > > > > in IIS.
> > > > >
> > > > > Source Error:
> > > > >
> > > > > Line 23: "Forms", "Passport" and "None"
> > > > > Line 24: -->
> > > > > Line 25: <authentication mode="Forms" />
> > > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
> > > > > Line 27:
> > > > >
> > > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
> > > > >
> > > > >
> > > >
> > >
> --------------------------------------------------------------------------> > > > --
> > > > > ----
> > > > > Version Information: Microsoft .NET Framework>> >> > > > ASP.NET
> > > > > Version:1.1.4322.573
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
S. Justin Gengo Guest
-
Leon Shaw #7
Re: understanding error message
but what if you wanted to send the user back to a specified pade(not
RedirectFromLoginPage) which is the default.aspx?
"S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
news:%234C4JU2WDHA.216@TK2MSFTNGP11.phx.gbl...correct?> Leon,
>
> Here's how I'm doing it:
>
> '---My login page code
> Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles btnLogin.Click
> Try
> Dim FormsAuth As New FormsAuthentication
> If FormsAuth.Authenticate(txtbxUsername.Text.ToString ,
> txtbxPassword.Text.ToString) Then
> FormsAuth.RedirectFromLoginPage(txtbxUsername.Text .ToString,
> True)End If
> Catch ex As Excepion
> '---Handle errors
> End Try
> End Sub
>
> --
> S. Justin Gengo, MCP
> Web Developer
>
> Free code library at:
> [url]www.aboutfortunate.com[/url]
>
> "Out of chaos comes order."
> Nietzche
> "Leon Shaw" <vnality@msn.com> wrote in message
> news:u1TXQE2WDHA.2392@TK2MSFTNGP10.phx.gbl...> > so how do send use to a protect page in the application. Is thisSystem.Web.Security.FormsAuthentication.RedirectFr omLoginPage(Me.txtUsername>> > If Me.IsValid Then
> >
> > If Me.myAuthorization(Me.txtUsername.Text.ToLower,
> > Me.txtPassword.Text.ToLower) > 0 Then
> >
> >folder> > .Text, True)
> >
> > Me.Response.Redirect("../ulogin/default.aspx")
> >
> > End If
> >
> > End If
> >
> > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> > news:uhttIx1WDHA.2476@tk2msftngp13.phx.gbl...> > > Leon,
> > >
> > > If you want instead of adding a separate web.config file to yourthe> > you> > > can actually use the main web.config file to protect a folder withinforms> [url]www.aboutfortunate.com[/url].> > web> > > site.
> > >
> > > I have an example on how to do this on my website:> > > Just search the code library for: "protect a folder with forms
> > > authentication"
> > >
> > > I also have a link to an article about how to use a database withall> posted> > > authentication in the library (I just added the link when I saw it> > > here).
> > >
> > > Good luck!
> > >
> > > --
> > > S. Justin Gengo, MCP
> > > Web Developer
> > >
> > > Free code library at:
> > > [url]www.aboutfortunate.com[/url]
> > >
> > > "Out of chaos comes order."
> > > Nietzche
> > >
> > >
> > > "Leon Shaw" <vnality@msn.com> wrote in message
> > > news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...
> > > > ok so if I added a folder named ulogin to my application in whichof> my> > itself> > > > protected webpage and web.config file is located then ulogin folder> > > > must be a web application. So how do I add an application (insteadas> a> > password> > > > folder) to my main web application inside of VS.net IDE, so I can> > > > protect certain pages?
> > > >
> > > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> > > > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
> > > > > Leon,
> > > > >
> > > > > It looks like the folder your .net files are in is not configureddepending> a> web> > > web
> > > > > application on the server.
> > > > >
> > > > > On the server go to:
> > > > >
> > > > > Administrative Tools - Internet Information Services
> > > > >
> > > > > Expand the computer node, expand the web sites node, and find your> > > > site
> > > > > in the list (It may be within the "Default Web Site" nodeerror> on> not> > > how
> > > > > your machine is set up.) If the web site's icon is a folder it is> web.config> > properties.> > > > > configured as a web site.
> > > > >
> > > > > To configure it as a web site, right click on it and choose> > website> > > > > Click the create button and then everything should be fine.
> > > > >
> > > > > If you have added a web.config file to a folder within your main> > > > > then that folder needs to be a website itself in order for>> > to> >> > > > > function properly.
> > > > >
> > > > > I hope this helps.
> > > > >
> > > > > --
> > > > > S. Justin Gengo, MCP
> > > > > Web Developer
> > > > >
> > > > > Free code library at:
> > > > > [url]www.aboutfortunate.com[/url]
> > > > >
> > > > > "Out of chaos comes order."
> > > > > Nietzche
> > > > > "Leon Shaw" <vnality@msn.com> wrote in message
> > > > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
> > > > > > Someone please help me understand the following error message:
> > > > > >
> > > > > > Server Error in '/solo' Application.
> > > > >
> > > >
> > >
> --------------------------------------------------------------------------> > > > > --
> > > > > > ----
> > > > > >
> > > > > > Configuration Error
> > > > > > Description: An error occurred during the processing of a
> > > configuration
> > > > > file
> > > > > > required to service this request. Please review the specific25> as> > > > details
> > > > > > below and modify your configuration file appropriately.
> > > > > >
> > > > > > Parser Error Message: It is an error to use a section registered> > This> > > > > > allowDefinition='MachineToApplication' beyond application level.> > > > > error
> > > > > > can be caused by a virtual directory not being configured as an
> > > > > application
> > > > > > in IIS.
> > > > > >
> > > > > > Source Error:
> > > > > >
> > > > > > Line 23: "Forms", "Passport" and "None"
> > > > > > Line 24: -->
> > > > > > Line 25: <authentication mode="Forms" />
> > > > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
> > > > > > Line 27:
> > > > > >
> > > > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line:>> >> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> --------------------------------------------------------------------------> Version:1.1.4322.573;> > > > > --
> > > > > > ----
> > > > > > Version Information: Microsoft .NET Framework>> >> > > > > ASP.NET
> > > > > > Version:1.1.4322.573
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Leon Shaw Guest
-
S. Justin Gengo #8
Re: understanding error message
Leon,
..Net handles that for you. It sends the user to the original page they were
trying to go to when they were redirected to the login page.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Leon Shaw" <vnality@msn.com> wrote in message
news:eUaCg32WDHA.2328@TK2MSFTNGP12.phx.gbl...System.Web.Security.FormsAuthentication.RedirectFr omLoginPage(Me.txtUsername> but what if you wanted to send the user back to a specified pade(not
> RedirectFromLoginPage) which is the default.aspx?
> "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> news:%234C4JU2WDHA.216@TK2MSFTNGP11.phx.gbl...> correct?> > Leon,
> >
> > Here's how I'm doing it:
> >
> > '---My login page code
> > Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles btnLogin.Click
> > Try
> > Dim FormsAuth As New FormsAuthentication
> > If FormsAuth.Authenticate(txtbxUsername.Text.ToString ,
> > txtbxPassword.Text.ToString) Then
> > FormsAuth.RedirectFromLoginPage(txtbxUsername.Text .ToString,
> > True)End If
> > Catch ex As Excepion
> > '---Handle errors
> > End Try
> > End Sub
> >
> > --
> > S. Justin Gengo, MCP
> > Web Developer
> >
> > Free code library at:
> > [url]www.aboutfortunate.com[/url]
> >
> > "Out of chaos comes order."
> > Nietzche
> > "Leon Shaw" <vnality@msn.com> wrote in message
> > news:u1TXQE2WDHA.2392@TK2MSFTNGP10.phx.gbl...> > > so how do send use to a protect page in the application. Is this>> >> > > If Me.IsValid Then
> > >
> > > If Me.myAuthorization(Me.txtUsername.Text.ToLower,
> > > Me.txtPassword.Text.ToLower) > 0 Then
> > >
> > >folder> folder> > > .Text, True)
> > >
> > > Me.Response.Redirect("../ulogin/default.aspx")
> > >
> > > End If
> > >
> > > End If
> > >
> > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> > > news:uhttIx1WDHA.2476@tk2msftngp13.phx.gbl...
> > > > Leon,
> > > >
> > > > If you want instead of adding a separate web.config file to your> the> > > you
> > > > can actually use the main web.config file to protect a folder within> forms> > [url]www.aboutfortunate.com[/url].> > > web
> > > > site.
> > > >
> > > > I have an example on how to do this on my website:> > > > Just search the code library for: "protect a folder with forms
> > > > authentication"
> > > >
> > > > I also have a link to an article about how to use a database with> all> > posted> > > > authentication in the library (I just added the link when I saw it> > > > here).
> > > >
> > > > Good luck!
> > > >
> > > > --
> > > > S. Justin Gengo, MCP
> > > > Web Developer
> > > >
> > > > Free code library at:
> > > > [url]www.aboutfortunate.com[/url]
> > > >
> > > > "Out of chaos comes order."
> > > > Nietzche
> > > >
> > > >
> > > > "Leon Shaw" <vnality@msn.com> wrote in message
> > > > news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...
> > > > > ok so if I added a folder named ulogin to my application in which> > my> > > > > protected webpage and web.config file is located then ulogin(instead> > > itself
> > > > > must be a web application. So how do I add an applicationconfigured> of> > a> > > > > folder) to my main web application inside of VS.net IDE, so I can
> > > password
> > > > > protect certain pages?
> > > > >
> > > > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
> > > > > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
> > > > > > Leon,
> > > > > >
> > > > > > It looks like the folder your .net files are in is notyour> as> > a> > > > web
> > > > > > application on the server.
> > > > > >
> > > > > > On the server go to:
> > > > > >
> > > > > > Administrative Tools - Internet Information Services
> > > > > >
> > > > > > Expand the computer node, expand the web sites node, and findis> depending> > web> > > > > site
> > > > > > in the list (It may be within the "Default Web Site" node> > on> > > > how
> > > > > > your machine is set up.) If the web site's icon is a folder itregistered>> > not> > web.config> > > > > > configured as a web site.
> > > > > >
> > > > > > To configure it as a web site, right click on it and choose
> > > properties.
> > > > > > Click the create button and then everything should be fine.
> > > > > >
> > > > > > If you have added a web.config file to a folder within your main
> > > website
> > > > > > then that folder needs to be a website itself in order for> >> > > to
> > > > > > function properly.
> > > > > >
> > > > > > I hope this helps.
> > > > > >
> > > > > > --
> > > > > > S. Justin Gengo, MCP
> > > > > > Web Developer
> > > > > >
> > > > > > Free code library at:
> > > > > > [url]www.aboutfortunate.com[/url]
> > > > > >
> > > > > > "Out of chaos comes order."
> > > > > > Nietzche
> > > > > > "Leon Shaw" <vnality@msn.com> wrote in message
> > > > > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
> > > > > > > Someone please help me understand the following error message:
> > > > > > >
> > > > > > > Server Error in '/solo' Application.
> > > > > >
> > > > >
> > > >
> > >
> --------------------------------------------------------------------------> error> > > > > > --
> > > > > > > ----
> > > > > > >
> > > > > > > Configuration Error
> > > > > > > Description: An error occurred during the processing of a
> > > > configuration
> > > > > > file
> > > > > > > required to service this request. Please review the specific> > > > > details
> > > > > > > below and modify your configuration file appropriately.
> > > > > > >
> > > > > > > Parser Error Message: It is an error to use a sectionlevel.> > as> > > > > > > allowDefinition='MachineToApplication' beyond applicationan> > > This
> > > > > > error
> > > > > > > can be caused by a virtual directory not being configured asLine:> > > > > > application
> > > > > > > in IIS.
> > > > > > >
> > > > > > > Source Error:
> > > > > > >
> > > > > > > Line 23: "Forms", "Passport" and "None"
> > > > > > > Line 24: -->
> > > > > > > Line 25: <authentication mode="Forms" />
> > > > > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
> > > > > > > Line 27:
> > > > > > >
> > > > > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config> 25>> >> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> -------------------------------------------------------------------------->> > Version:1.1.4322.573;> > > > > > --
> > > > > > > ----
> > > > > > > Version Information: Microsoft .NET Framework> >> > > > > > ASP.NET
> > > > > > > Version:1.1.4322.573
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
S. Justin Gengo Guest



Reply With Quote

