iam am trying to make a protected area of my umbraco site, but when i add
<asp:Login ID="Login1" runat="server" />
to my page template, the page throws a error.
And even as a extra problem my web.config wount show the error messeage and stack for some reason.
even after i added
<customErrors mode="Off"/>
hope somebody can help me.
info about the umbraco solution
windows and using a mySQL server umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657) i think its running .net v3.5 its hosted at Unoeuro
Your webhosting provider is probably overruling the web.config setting.
Unfortunately, without an error message it will be difficult for us to help. Does your protected area work on your local version? If so, then it's probably a permission setting or your webhost doesn't have your chosen authentication method installed on your site.
Control
'ctl00_ctl00_ctl00_ContentPlaceHolderDefault_pageArea_Login1' of type
'Login' must be placed inside a form tag with runat=server.
Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.Web.HttpException:
Control 'ctl00_ctl00_ctl00_ContentPlaceHolderDefault_pageArea_Login1'
of type 'Login' must be placed inside a form tag with runat=server.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Login form makes error
Hey,
iam am trying to make a protected area of my umbraco site, but when i add
to my page template, the page throws a error. And even as a extra problem my web.config wount show the error messeage and stack for some reason. even after i added
hope somebody can help me.info about the umbraco solution
windows and using a mySQL server
umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)
i think its running .net v3.5
its hosted at Unoeuro
Your webhosting provider is probably overruling the web.config setting.
Unfortunately, without an error message it will be difficult for us to help. Does your protected area work on your local version?
If so, then it's probably a permission setting or your webhost doesn't have your chosen authentication method installed on your site.
Can you show us the complete template code? Might be something wrong in there? Does it throw an error when removing the login control?
Cheers,
/Dirk
Drik: as soon as i remove the line from the code, the page works again.
for now i have send a support message to my host provider about the web.config, hope they can make that work, so i can post the error message.
//Tommy
now i got my web.config working, but i cant make sense of the error
here is my template
and here is the error message i get
Server Error in '/' Application.
Control 'ctl00_ctl00_ctl00_ContentPlaceHolderDefault_pageArea_Login1' of type 'Login' must be placed inside a form tag with runat=server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: Control 'ctl00_ctl00_ctl00_ContentPlaceHolderDefault_pageArea_Login1' of type 'Login' must be placed inside a form tag with runat=server.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016
I have tryed to move the asp:Login tag around with no change.
Change your template to:
However, it seems like you don't have a local development environment. I would not recommend doing all of your debugging on the server..
Thanks for the help,
this fixed the problem.
It'd be great to add Sebastiaan's fix as a caption at around the 3:00 mark on the how-to video.
is working on a reply...