YAFLogo

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
8 days ago
Originally Posted by: tha_watcha 


as I already wrote in Yaf 3.2.2 the upgrade process is broken. You need to use 3.2.3 if you want to upgrade.



And therein lies to issue that I alluded to earlier. The download for the 33.2.3 version on the github page is incorrect. I don't know what it is, but it's not the Sample App.

https://github.com/YAFNET/YAF.SampleWebApplication/releases 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
8 days ago
I tagged the wrong branch. The release did include the YAF 4.0 sample app

I updated the release with the correct version

https://github.com/YAFNET/YAF.SampleWebApplication/releases/tag/v3.2.3 
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
7 days ago
Originally Posted by: tha_watcha 

I tagged the wrong branch. The release did include the YAF 4.0 sample app

I updated the release with the correct version

https://github.com/YAFNET/YAF.SampleWebApplication/releases/tag/v3.2.3 



Okay, tried that. With a fresh install connected to my old database, it gives me the error:

Quote:


Incorrect syntax near ';'.
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: Incorrect syntax near ';'.

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:

[SqlException (0x80131904): Incorrect syntax near ';'.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +2586154 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +6039978 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +297 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4477 System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) +997 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +314 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +297 ServiceStack.OrmLite.OrmLiteWriteCommandExtensions.ExecuteSql(IDbCommand dbCmd, String sql, IEnumerable`1 sqlParams, Action`1 commandFilter) in C:\YAFNET\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteCommandExtensions.cs:364 ServiceStack.OrmLite.c__DisplayClass2_0.b__0(IDbCommand dbCmd) in C:\YAFNET\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteApi.cs:63 ServiceStack.OrmLite.OrmLiteExecFilter.Exec(IDbConnection dbConn, Func`2 filter) in C:\YAFNET\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteExecFilter.cs:180 ServiceStack.OrmLite.OrmLiteReadExpressionsApi.Exec(IDbConnection dbConn, Func`2 filter) in C:\YAFNET\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteReadExpressionsApi.cs:34 ServiceStack.OrmLite.OrmLiteWriteApi.ExecuteSql(IDbConnection dbConn, String sql) in C:\YAFNET\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteApi.cs:63 ServiceStack.OrmLite.OrmLiteSchemaModifyApi.DropForeignKey(IDbConnection dbConn, String foreignKeyName) in C:\YAFNET\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteSchemaModifyApi.cs:439 YAF.Core.Migrations.Migration80.UpgradeTable(IRepository`1 repository, IDbCommand dbCommand) +132 YAF.Core.Migrations.c__DisplayClass2_0.b__1(IDbCommand dbCommand) +1134 YAF.Core.Data.DbAccessBase.Execute(Func`2 execFunc, IDbCommand cmd, IDbTransaction dbTransaction) +144 YAF.Core.Migrations.Migration80.MigrateDatabase(IDbAccess dbAccess) +229 YAF.Core.Services.UpgradeService.Upgrade() +422 YAF.Core.Services.Startup.StartupInitializeDb.RunService() +294 YAF.Core.Services.Startup.BaseStartupService.Run() +28 YAF.Core.Extensions.c.b__0_2(IStartupService service) +10 System.Collections.Generic.List`1.ForEach(Action`1 action) +88 YAF.Core.Extensions.IHaveServiceLocatorExtensions.RunStartupServices(IHaveServiceLocator serviceLocator) +356 YAF.Core.Context.YafHttpApplication.Session_Start(Object sender, EventArgs e) +15 System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +10082212 System.Web.SessionState.SessionStateModule.CompleteAcquireState() +165 System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1126 System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +297 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
7 days ago
Looks like I forgot to add one is null check. Issue will be fixed with next release 3.2.4
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