|
|
 Rank: Fanatic
Joined: 11/24/2006 Posts: 323 Location: Stockholm, Sweden
|
I've installed the member login package (membercontrols.umb.zip) and created a login box in my template (you can log in from any page on the site). The actual login/logout process works fine but the control seems to redirect to the wrong URL's (at least on my server). A page that is located at: http://localhost/umbraco/protected.aspx Becomes: http://localhost/protected.aspx ...when the membercontrol login handles the redirect. Does anyone know what causes this? Here are my AppSettings: Code: <appSettings> <add key="umbracoReservedUrls" value=",/umbraco/umbracoTextGen.aspx,"/> <add key="umbracoReservedPaths" value="/umbraco/umbraco/,/install"/> <add key="umbracoContentXML" value="/umbraco/data/umbraco.xml"/> <add key="umbracoStorageDirectory" value="/umbraco/data"/> <add key="umbracoPath" value="/umbraco/umbraco" /> <add key="umbracoDbDSN" value="Server=KAHN-HP\SQLEXPRESS;Database=umbraco;User ID=umbraco;Password=irnokath;Trusted_Connection=False"/> <add key="umbracoSmtpServer" value="127.0.0.1"/>
<add key="umbracoHideTopLevelNodeFromPath" value="true"/> <add key="umbracoEditXhtmlMode" value="true"/> <add key="umbracoUseDirectoryUrls" value="false"/>
<add key="umbracoDebugMode" value="false"/> <add key="umbracoTimeOutInMinutes" value="20"/> <add key="umbracoDisableVersionCheck" value="true"/> <add key="umbracoDisableXsltExtensions" value="true"/> <add key="umbracoDefaultUILanguage" value="en"/>
<add key="umbracoProfileUrl" value="profiles"/> <add key="umbracoConfigurationDone" value="211"/>
<!-- optional connection string for stat data - if empty and stat is enabled the default connection string will be used (umbracoDbDSN above) --> <add key="umbracoStatDbDSN" value=""/> <add key="umbracoEnableStat" value="false"/>
</appSettings>
Fast facts: Win XP IIS 5.1 Umbraco 2.1.6 ASP.NET v2.0.50727 Running Umbraco in a virtual directory Thanks in advance!
Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
|
|
 Rank: Fanatic
Joined: 11/24/2006 Posts: 323 Location: Stockholm, Sweden
|
Does anyone have the codebehind files for umbracoMemberControls? I would like to take a look at the code to see if I can modify it to suit my purposes better (they don't work on my setup). If I make any improvements I will be sure to share it with you. The files i need are: - umbLogin.ascx.cs - umbPasswordForgot.ascx.cs - umbRegister.ascx.cs ...and any other relevant source code accompanying the project. Thanks in advance!
Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
|
|
 Rank: Addict
Joined: 7/20/2006 Posts: 586 Location: NL
|
Have you tried looking at SVN: svn://svn.umbraco.org/var/lib/svn/umbraco-extensions
There's all you need I think.
Cheers, PeterD
Check out the calendar with recurrence at my blog.
|
|
 Rank: Fanatic
Joined: 11/24/2006 Posts: 323 Location: Stockholm, Sweden
|
Peter Dijksterhuis wrote: Have you tried looking at SVN: svn://svn.umbraco.org/var/lib/svn/umbraco-extensions
There's all you need I think.
Cheers, PeterD
Thanks! That was exactly what I was looking for! A related question: I downloaded the source code for the whole Umbraco package and opened it in Visual Studio 2005, but the project seems to be created for an older version of VS so you need to convert it. This conversion results in some errors. Is there a VS 2005 project available for download? Perhaps I will have to wait until V3 is out?
Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
|
|
 Rank: Fanatic
Joined: 11/24/2006 Posts: 323 Location: Stockholm, Sweden
|
In the class requestHandler there is a method called cleanUrl. It looks like this: Code: // TODO: Must be a better way to clean this mess ;-) public static string cleanUrl() { string tmp = System.Web.HttpContext.Current.Request.Path.ToLower().Replace("/default.aspx", ""); if (tmp != "") tmp = System.Web.HttpContext.Current.Request.QueryString["umbPage"].ToLower().Replace(tmp, ""); else tmp = System.Web.HttpContext.Current.Request.QueryString["umbPage"].ToLower();
if (tmp == "/default.aspx") tmp = ""; else if (tmp =="/") tmp = "";
return tmp; }
I think that this is the method that is causing problems for me.
Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
I am not sure if this is the exact answer, but there was mention of a bug in that using reserved words in URLs (even virtual paths?) would create an issue. You may try having your virtual directory named something else. I believe I saw this in the issue tracker for version 3, so it should be corrected with the new version. The location of the bug is in either the global.asax.cs file or the requesthandler.cs. You are on the right track, but the simple solution is to avoid the keywords. The second option is to run umbraco as the root of the site if you have the capability, as it seems to be a bit more stable from the various comments I have seen in regards to virtual paths. Case
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
I just tried in a virtual directory, and it seemed to work ok for me. Here is my base umbraco install.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
Rank: Newbie
Joined: 1/30/2007 Posts: 1
|
I can't get rid of the problem with the redirect url when using the memberlogin macro, it always cuts the "umbraco/" out of the http://localhost/umbraco/protected.aspx. Has anyone found a solution to this ? Thanks, Greg.
|
|
Rank: Enthusiast
Joined: 1/24/2007 Posts: 11
|
Gregor,
I also have the same problem with memberControl. I have Umbraco in a subdir on my XP system and I can log in or out, but I get re-directed to the wrong place (in my case I should be going to http://localhost/umbraco21/sign-in.aspx but it in fact sends me to http://localhost/sign-in.aspx and of course that page is not found. I am logged in, and if I force the issue I can get it to log out.
I can't see any way to fix this outside of getting a change to the memberControl. If anyone knows what I can do to fix this I would greatly appreciate it. If the real answer is to wait a few days for version 3 I can deal with that.
I must say that there are a lot of us who want and need to run in subdirectories while we develop (on our XP boxes or laptops). It would be great to remember that as part of the testing. If the issue is my dir name I will be happy to change it if that will fix the issue!
Just let me know please.
Thanks,
Cecil Thornhill, USA
Cecil Thornhill
|
|
 Rank: Addict
Joined: 7/20/2006 Posts: 586 Location: NL
|
Cecil Thornhill wrote: I must say that there are a lot of us who want and need to run in subdirectories while we develop (on our XP boxes or laptops). It would be great to remember that as part of the testing. If the issue is my dir name I will be happy to change it if that will fix the issue!
On XP-boxes there is not really the 'NEED' to run in virtual directories. It is possible to create multiple sites on an XP-box, using a tool. More infoYou only can run 1 site at a time, but that should not be a problem. And it is very easy to switch sites quickly. Hope this might help a bit too. Check out the calendar with recurrence at my blog.
|
|
Rank: Enthusiast
Joined: 1/24/2007 Posts: 11
|
Peter,
Thanks, I will give this a try. I have set Umbraco up subdirectories and the main system works, but some components don't. I honestly can't say that I need to have many live sites on XP - that is an odd use for XP. I'll let you know how the tool works for me. One thing I have noticed is that there are componenets (some dll's) that don't appear to shut down well on XP at least (I have not tested on Windows 2003 yet), so there may be a few other issues.
Late last night after my post I did move a copy of my test site to the root on my XP box and got it to work without an error, so I am assuming my issue is a sub-directory one and not just a naming issue. Is anyone sure that is the case with this component?
Thanks,
Cecil
Cecil Thornhill
|
|
Rank: Enthusiast
Joined: 3/25/2007 Posts: 15
|
Peter Dijksterhuis wrote: Have you tried looking at SVN: svn://svn.umbraco.org/var/lib/svn/umbraco-extensions
There's all you need I think.
Cheers, PeterD
This requires a login ... my account on CodePlex doesn't do the trick ... suggestions?
|
|
|
Guest |