YAFLogo

Posted by: Roger Martin - Tuesday, 21 September 2010 18:34:37
Just upgraded from 1.9.1 to 1.9.4. All works well as long as URL rewriting is disabled. When enabled, I can only log in from the top level URL at http://www.galleryserverpro.com/forum/. When logging in from a sub-forum, such as http://www.galleryserverpro.com/forum/yaf_topics2_Gallery-Server-Pro-Support.aspx, I get this error: "There has been a serious error loading the forum. No further information is available." If I disable custom errors in web.config and watch the network traffic with Fiddler, I can see that a 404 error is happening. Specifically, the login page correctly loads at this URL: http://www.galleryserverpro.com/forum/yaf_login.aspx?returnurl=%2fforum%2fyaf_topics2_Gallery-Server-Pro-Support.aspx After entering username/password and clicking login, the page posts to this URL: http://www.galleryserverpro.com/forum/yaf_login.aspx?g=login&ReturnURL=%2fforum%2fyaf_forum1_Gallery-Server-Pro.aspx which then triggers the 404. Using Fiddler I see this error message: [code]

Server Error in '/forum' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /forum/yaf_login.aspx


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1[/code] Further details: * The forum is installed in the "forum" directory on the web server. This directory is configured as a virtual directory and is running as its own application. * I tried various settings for YAF.AppRoot in app.config, all resulting in the same behavior. As best I can tell, this setting does not need to be set when the forum is running in its own application space, and is currently commented out (that is, left at its default value). * You can try it yourself at http://www.galleryserverpro.com/forum/. Use account rdmartin (password=rdmartin). At the moment custom errors is OFF so you can see the 404 error with Fiddler. * The forum was compiled from source code in VS 2010 against .NET 4.0. Many thanks in advance. Roger Martin Gallery Server Pro

Posted by: bbobb - Tuesday, 21 September 2010 18:45:07
I can in first test case.:wink: [url=http://www.galleryserverpro.com/forum/yaf_topics2_Gallery-Server-Pro-Support.aspx]http://www.galleryserverpro.com/forum/yaf_topics2_Gallery-Server-Pro-Support.aspx[/url] As to the login issue, it should be checked.

Posted by: Roger Martin - Tuesday, 21 September 2010 18:51:57
Are you saying you can click this link... http://www.galleryserverpro.com/forum/yaf_topics2_Gallery-Server-Pro-Support.aspx ... then click Login, enter the username/password (rdmartin/rdmartin), and successfully log in? Because I cannot. I tried with both Firefox and IE 8. Can anyone else?

Posted by: bbobb - Tuesday, 21 September 2010 18:55:27
I see... It doesn't work because this is a mix of rewriting and not rewriting. I personally can't help you as don't know well the peace of code.:cry:

Posted by: Roger Martin - Tuesday, 21 September 2010 19:02:06
Why would I need to know the code? Isn't it possible to use URL rewriting without modifying the code? I assumed all one had to do was set YAF.EnableURLRewriting = "true" in app.config. That worked for me under 1.9.1.

Posted by: Roger Martin - Monday, 4 October 2010 20:08:27
This is still an issue. Can anyone help me? Roger

Posted by: Jaben - Monday, 4 October 2010 21:45:01
I'll take a quick look...

Posted by: Jaben - Monday, 4 October 2010 21:48:10
The problem is .NET v4 and v1.9.4 issues -- it wasn't 100% designed for .NET v4 and there is QueryString issues. v1.9.5 works much better with v4 (including URL rewriting).

Posted by: Roger Martin - Monday, 4 October 2010 23:37:44
Thanks. Is 1.9.5 stable enough to use in prod? And where do I get it? I can't seem to find a download page for it.