YAFLogo

johnnynine
13 years ago
Ok I upgraded again and this time it did populate the membership tables but I still get the following handled error:

Quote:

Failure
There's been a system error processing your request. Please contact the forum admin explaining what you were doing when it happened.
Continue...



This error does not show up as a normal asp.net error so changing the web.config customError element has no effect. It shows up under the heading of "Forum » Failure".

I looked in the Window Event Viewer and found the following:

Quote:

Event code: 3007
Event message: A compilation error has occurred.
Event time: 12/9/2009 8:42:53 PM
Event time (UTC): 12/10/2009 3:42:53 AM
Event ID: 2ea568bd73304fc0a43d3900370e65f1
Event sequence: 3
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/4/ROOT/forum-5-129018901732301111
Trust level: Full
Application Virtual Path: /forum
Application Path: C:\Inetpub\c\forum\
Machine name: MACHINE1

Process information:
Process ID: 2032
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: HttpCompileException
Exception message: C:\Inetpub\c\forum\App_Code\YAF\Modules\PageLogoHandlerModule.cs(59): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)

Request information:
http://c.com/forum/Default.aspx?g=rsstopic&pg=topics&f=8 
Request path: /forum/Default.aspx
User host address: ...
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 6
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed)
at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)
at System.Web.Compilation.BuildManager.CompileCodeDirectories()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)


Custom event details:



FOLLOW UP: OK this looks like a compile error and since the error is on "var" which is a c# 3.x keyword I would guess that IIS is not set up to use the cs 3.x when compiling? I found the compilers section in the web.config and it specifies a compiler version of v3.5 so I assume that is set correctly and since other people get the release to work I assume the source code is correct. Any ideas?

FOLLOW UP 2: I modified the PageLogoHandlerModule.cs file and changed the two "var" keywords to the method return types and I no longer see the error in the event log, but I still get the Failure error listed at the top of this message. Is there any way to find out what specifically failed?
johnnynine
13 years ago
In addition to the above issue, when I try to create a new user I get the following error:



Quote:

[SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_yaf_CheckEmail_yaf_User". The conflict occurred in database "Forum", table "dbo.yaf_User", column 'UserID'.
The statement has been terminated.]

Line 321:
Line 322: // save verification record...
Line 323: DB.checkemail_save(userID, hash, user.Email);
Line 324:
Line 325: var verifyEmail = new YafTemplateEmail("VERIFYEMAIL");


System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1948826
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844747
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +204
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
YAF.Classes.Data.YafDBAccess.ExecuteNonQuery(SqlCommand cmd, Boolean transaction) +138
YAF.Classes.Data.DB.checkemail_save(Object userID, Object hash, Object email) +160
YAF.Pages.register.CreateUserWizard1_CreatedUser(Object sender, EventArgs e) in c:\Inetpub\c\forum\pages\register.ascx.cs:323
System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e) +111
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +354
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565



UPDATE: I restored version 1.9.1.6 and then upgraded to v1.9.3 and it works fine, but I never got v1.9.4 to work right.
midwestSS
13 years ago
i might be an idiot,but is there a doc to read of "whats new in RC1" ?
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
13 years ago
johnnynine wrote:

Ok I upgraded again and this time it did populate the membership tables but I still get the following handled error:

Quote:

Failure
There's been a system error processing your request. Please contact the forum admin explaining what you were doing when it happened.
Continue...



This error does not show up as a normal asp.net error so changing the web.config customError element has no effect. It shows up under the heading of "Forum » Failure".

I looked in the Window Event Viewer and found the following:

Quote:

Event code: 3007
Event message: A compilation error has occurred.
Event time: 12/9/2009 8:42:53 PM
Event time (UTC): 12/10/2009 3:42:53 AM
Event ID: 2ea568bd73304fc0a43d3900370e65f1
Event sequence: 3
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/4/ROOT/forum-5-129018901732301111
Trust level: Full
Application Virtual Path: /forum
Application Path: C:\Inetpub\c\forum\
Machine name: MACHINE1

Process information:
Process ID: 2032
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: HttpCompileException
Exception message: C:\Inetpub\c\forum\App_Code\YAF\Modules\PageLogoHandlerModule.cs(59): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)

Request information:
http://c.com/forum/Default.aspx?g=rsstopic&pg=topics&f=8 
Request path: /forum/Default.aspx
User host address: ...
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 6
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed)
at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)
at System.Web.Compilation.BuildManager.CompileCodeDirectories()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)


Custom event details:



FOLLOW UP: OK this looks like a compile error and since the error is on "var" which is a c# 3.x keyword I would guess that IIS is not set up to use the cs 3.x when compiling? I found the compilers section in the web.config and it specifies a compiler version of v3.5 so I assume that is set correctly and since other people get the release to work I assume the source code is correct. Any ideas?

FOLLOW UP 2: I modified the PageLogoHandlerModule.cs file and changed the two "var" keywords to the method return types and I no longer see the error in the event log, but I still get the Failure error listed at the top of this message. Is there any way to find out what specifically failed?


Your host is not .NET v3.5. Please contact them... don't bother trying to covert YAF code to .NET v2.0.

v1.9.3 is .NET v2.0.
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
13 years ago
midwestSS wrote:

i might be an idiot,but is there a doc to read of "whats new in RC1" ?


Don't have one right now... It's a lot of work to put together, honestly. Maybe someone else can do it? Everything is in the SVN log.
johnnynine
13 years ago
Jaben wrote:

Your host is not .NET v3.5. Please contact them... don't bother trying to covert YAF code to .NET v2.0.

v1.9.3 is .NET v2.0.



I personally installed .Net 3.5 SP1 on the server and verified that it is installed. It must be something else?
johnnynine
13 years ago
Jaben wrote:

midwestSS wrote:

i might be an idiot,but is there a doc to read of "whats new in RC1" ?


Don't have one right now... It's a lot of work to put together, honestly. Maybe someone else can do it? Everything is in the SVN log.



I've had this same question about previous releases.

A short major new features list would be very helpful. The list could exclude any bug fixes or minor changes.

Johnny
Hydra
  • Hydra
  • 62% (Friendly)
  • YAF Camper
13 years ago
johnnynine wrote:

Jaben wrote:

Your host is not .NET v3.5. Please contact them... don't bother trying to covert YAF code to .NET v2.0.

v1.9.3 is .NET v2.0.



I personally installed .Net 3.5 SP1 on the server and verified that it is installed. It must be something else?




From IIS Manager, ensure that yaf is not running in the default Application Pool if you have other .NET 2.x applications running.
I just created a new Application Pool named .NET 3.5, which I use for .NET 3.5 apps.
cct
  • cct
  • 58.4% (Neutral)
  • YAF Forumling
13 years ago
Are there any db differences from beta 3, if so, will the RC release upgrade correctly from beta 3?
johnnynine
13 years ago
Hydra wrote:

johnnynine wrote:

Jaben wrote:

Your host is not .NET v3.5. Please contact them... don't bother trying to covert YAF code to .NET v2.0.

v1.9.3 is .NET v2.0.



I personally installed .Net 3.5 SP1 on the server and verified that it is installed. It must be something else?




From IIS Manager, ensure that yaf is not running in the default Application Pool if you have other .NET 2.x applications running.
I just created a new Application Pool named .NET 3.5, which I use for .NET 3.5 apps.



Good thinking, as I recall the forum was in the same application pool as a different 2.0 app.

But I decided to just upgrade to v1.9.3 since I don't really know what is new in v1.9.4 and v1.9.3 is working. :)

Johnny
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Jaben wrote:

I just want to reiterate: I really appreciate the help with YAF from Kamyar and Bbobb on this release. You guys made this release like Christmas with some wonderful additions to YAF!


Thank you Jaben. Actually YAF is like a free programming class for me. Just paying my debts. :wink:

If at first you don’t succeed, call it version 1.0
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
13 years ago
Really, Jaben as always made the bulk of the work for the RC:wink:.
I'm personally very happy with Kamyar' buddy list. Currently YAF has almost everything what I need as user.



Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Jaben wrote:

midwestSS wrote:

i might be an idiot,but is there a doc to read of "whats new in RC1" ?


Don't have one right now... It's a lot of work to put together, honestly. Maybe someone else can do it? Everything is in the SVN log.


I'll be glad to do some part of it. Where should I put the doc? If in YAF wiki, then in what part? And what is the svn build no. for the first build of YAF 1.9.4.

If at first you don’t succeed, call it version 1.0
midwestSS
13 years ago
bbobb wrote:

Really, Jaben as always made the bulk of the work for the RC:wink:.
I'm personally very happy with Kamyar' buddy list. Currently YAF has almost everything what I need as user.




AGREED!
The only thing i think i wish I had, was a user photo gallery so users can upload thier own pictures, and you access them by clicking on thier name.
or .. in my case, maybe a 'garage' if you will so they can put up the pics of thier trucks, and maybe a little section for 'notes' or in my case 'stats' on what they have there.
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
midwestSS wrote:


The only thing i think i wish I had, was a user photo gallery so users can upload thier own pictures, and you access them by clicking on thier name.


That's EXACTLY what I plan to add to YAF next. Just after going to my 2months mandatory military service.:(
If at first you don’t succeed, call it version 1.0
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button