Welcome Guest Search | Active Topics | Log In | Register

2 Pages <12
YAF v1.9.1 RC1 for .NET v2.0 Framework (Dated 5/15/2007) Options · View
taicho
#16 Posted : Thursday, May 31, 2007 2:30:28 AM
Rank: Member


Joined: 5/28/2007
Posts: 21
Location: Los Angeles
PS wrote:
I realy suxs at regexp, but this works... for now...

But it strips the returnurl parameter away, so the user will always be redirected to the startpage when login in...

Code:
<rewrite url="^~/(.+)?yaf_login.aspx*" to="~/$1Default.aspx?g=login" processing="stop" />


Thanks, this is good enough for now Smile.

One additional note: This line by PS should go before the lines
<rewrite url="^~/(.+)?yaf_([-0-9a-z_]+)\.aspx\?(.+)?$" to="~/$1Default.aspx?g=$2&amp;$3" processing="stop" />
<rewrite url="^~/(.+)?yaf_([-0-9a-z_]+)\.aspx$" to="~/$1Default.aspx?g=$2" processing="stop" />

Or at least, I had to put it before them in order for it to work (which kinda makes sense, if you look at what these two lines do...).
hargreaves
#17 Posted : Thursday, May 31, 2007 3:08:27 AM

Rank: YAF Forumling




Joined: 5/31/2007
Posts: 3
Location: china
come on baby,i love u
yaf,i love you
pinkit21092003
#18 Posted : Thursday, May 31, 2007 7:43:06 AM

Rank: YAF Forumling


Joined: 5/12/2007
Posts: 1
Location: Vietname
Hello! every body!
I download forum version 1.9.1. When I setup no erorr.But I enter Addmin---> forum---> add new forum--> dispaly blow error.


Server Error in '/forumhoitu' Application.
Could not find stored procedure 'yaf_forum_listall_fromCat'.
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.Data.SqlClient.SqlException: Could not find stored procedure 'yaf_forum_listall_fromCat'.

..........help me!...
bigtoga
#19 Posted : Thursday, May 31, 2007 11:37:47 AM

Rank: YAF MVP



Joined: 3/10/2006
Posts: 330
Location: Dallas, TX
pinkit21092003 wrote:
Hello! every body!
I download forum version 1.9.1. When I setup no erorr.But I enter Addmin---> forum---> add new forum--> dispaly blow error.


Server Error in '/forumhoitu' Application.
Could not find stored procedure 'yaf_forum_listall_fromCat'.
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.Data.SqlClient.SqlException: Could not find stored procedure 'yaf_forum_listall_fromCat'.

..........help me!...
Why would you put this in the "Announcements" forum? I'm not answering this just for that reason - this is just threadjacking. There are better places for this, like the "Bugs & Problems" forum.

Post this in the right place and you might get more participation.
Check out my implementation of YAF: http://Forums.LearnSqlServer.com/. You can also check out my SQL Server 2005 tutorials at http://www.LearnSqlServer.com/ and my C# tutorials at http://www.LearnCSharp.com/
Jaben
#20 Posted : Thursday, July 05, 2007 5:47:42 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,022
Location: Honolulu, HI
Fix for the URL rewriting issue with login:

Replace in web.config section with this:
Code:

  <rewriter>
    <rewrite url="^~/(.+)?yaf_topics([0-9]+)p([0-9]+)(_([-a-z0-9]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=topics&amp;f=$2&amp;p=$3&amp;$7" processing="stop" />
    <rewrite url="^~/(.+)?yaf_topics([0-9]+)(_([-a-z0-9]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=topics&amp;f=$2&amp;$6" processing="stop" />
    <rewrite url="^~/(.+)?yaf_forum([0-9]+)(_([-a-z0-9]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=forum&amp;c=$2&amp;$6" processing="stop" />   
    <rewrite url="^~/(.+)?yaf_postst([0-9]+)p([0-9]+)(_([-a-z0-9]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;p=$3&amp;$7" processing="stop" />
    <rewrite url="^~/(.+)?yaf_postst([0-9]+)(_([-a-z0-9]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;$6" processing="stop" />
    <rewrite url="^~/(.+)?yaf_postsm([0-9]+)(_([-a-z0-9]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;m=$2&amp;$6" processing="stop" />
    <rewrite url="^~/(.+)?yaf_profile([0-9]+)(_([-a-z0-9]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=profile&amp;u=$2&amp;$6" processing="stop" />   
    <rewrite url="^~/(.+)?yaf_login?\.aspx\?returnurl\=(.+)$" to="~/$1Default.aspx?g=login&amp;returnurl=$2" processing="stop" />
    <rewrite url="^~/(.+)?yaf_([-0-9a-z_]+)\.aspx\?(.+)?$" to="~/$1Default.aspx?g=$2&amp;$3" processing="stop" />
    <rewrite url="^~/(.+)?yaf_([-0-9a-z_]+)\.aspx$" to="~/$1Default.aspx?g=$2" processing="stop" />
  </rewriter>
"When you are grateful, fear disappears and abundance appears”."

Neven
#21 Posted : Thursday, July 05, 2007 8:42:19 AM

Rank: YAF MVP



Joined: 11/26/2004
Posts: 509
Location: Zagreb, Croatia
Jaben wrote:
Fix for the URL rewriting issue with login:

Replace in web.config section with this:
Code:
I hate to be the first to brake it to you, but it is not doing the trick for all the pages....
It works with: Search | Active Topics | Members | Register, yaf_activeusers.aspx, yaf_activeusers.aspx.
yaf_topics, yaf_postsm, yaf_forum produce this
Code:
Server Error in '/yaf-191-RC1' 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: /yaf-191-RC1/yaf_login.aspx

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
... But trust me on the sunscreen!

test2005 wrote:
There not bugs(in YAF)...it's either un-defined features or exceptions to expected behavior!!
Jaben
#22 Posted : Friday, July 06, 2007 2:06:36 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,022
Location: Honolulu, HI
Oh... interesting. It's working on my setup on the topic, post and forum pages. I'll play with it a bit more...
"When you are grateful, fear disappears and abundance appears”."

Jaben
#23 Posted : Friday, July 06, 2007 11:17:24 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,022
Location: Honolulu, HI
This one is so strange because it *works* on my install (Vista IIS7 and ASP.NET 3.0)...

Maybe it's an ASP.NET v2.0 bug?
"When you are grateful, fear disappears and abundance appears”."

Neven
#24 Posted : Friday, July 06, 2007 12:01:31 PM

Rank: YAF MVP



Joined: 11/26/2004
Posts: 509
Location: Zagreb, Croatia
Jaben wrote:
This one is so strange because it *works* on my install (Vista IIS7 and ASP.NET 3.0)...

Maybe it's an ASP.NET v2.0 bug?
It's on my localhost, so I cannot post the link Sad
... But trust me on the sunscreen!

test2005 wrote:
There not bugs(in YAF)...it's either un-defined features or exceptions to expected behavior!!
wtilton
#25 Posted : Wednesday, July 25, 2007 6:11:32 AM

Rank: YAF Developer


Joined: 4/27/2005
Posts: 314
Location: Huntington Beach, CA
Just found the same error. Click on any thread and then click the Login link. It works on the main forum page, just not in other places. Example:
http://forum.yetanotherf...work-Dated-5152007.aspx

Guessing the error path starts with line 528 on pages/ForumPage.cs if that's any help.

header.AppendFormat( String.Format( " | <a href=\"{0}\">{1}</a>", Forum.GetLink( Pages.login, "ReturnUrl={0}", Server.UrlEncode( Utils.GetSafeRawUrl() ) ), GetText( "TOOLBAR", "LOGIN" ) ) );
Lord Devil
#26 Posted : Saturday, July 28, 2007 9:25:06 AM
Rank: Member


Joined: 3/9/2007
Posts: 25
Just a question... I wonder if I shall upgrade a public installation of V1.9.0 now to V1.9.1 RC1 ? I first wanted to wait for the full release but it looks like it doesnt come out too soon? So is it still worth it (RC1) or do you think the next official release is just around the corner?

Thanks in advance,
LD
Test
darkcom
#27 Posted : Friday, August 17, 2007 8:21:22 AM

Rank: YAF Forumling


Joined: 8/17/2007
Posts: 2
Location: nantong
Sad
I install yaf_dnn4 on my dnn site,and I followed the "install.txt",when visit the page which has the YAF moudle ,it goes to the install process . but now I'm facing a big problem.
here it means:


Server Error in '/DesktopModules/YetAnotherForumDotNet' Application.


Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件(The system can't find the appoint file)。 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.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace:


[FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +70
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +378

[HttpException (0x80004005): Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +521

[HttpException (0x80004005): Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3540923
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +275





Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
darkcom
#28 Posted : Monday, August 20, 2007 5:59:01 PM

Rank: YAF Forumling


Joined: 8/17/2007
Posts: 2
Location: nantong
darkcom wrote:
Sad
I install yaf_dnn4 on my dnn site,and I followed the "install.txt",when visit the page which has the YAF moudle ,it goes to the install process . but now I'm facing a big problem.
here it means:


Server Error in '/DesktopModules/YetAnotherForumDotNet' Application.

Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

I just made a stupid mistake on my database spelling.
I found I made a spelling mistake in my database setup.haha,what a lunatic decision!
Thanks for such an excellent YAF!Thanks a lot for all!
Techknow
#29 Posted : Friday, August 31, 2007 4:02:48 PM
Rank: Advanced Member



Joined: 8/15/2007
Posts: 62
Location: I'm Right Here ...
Is this suitable for a production env?
Best Regards,

Techknow

"Behind every successful man is an astonished mother-in-law" -Anon

"I'd like to meet this 'Anon' guy, he must be brilliant" -Anon


http://myinternetfunnies.com <- Funny Pictures & such nonsense. Stop by and upload a few of your own!
Users browsing this topic
Guest
2 Pages <12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.183 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET