Snitz MVC install - Postet den (2080 Views)
Junior
SimonE
Innlegg: 53
starstar
I am currently running an older Snitz asp forum and I want to install the MVC version and connect to the database. I have made a database copy and and attempting a clean install connected to the database. I am puzzled as to the install process for MVC; I have created the application in IIS and updated my config files. The only setup page I see in the zip is down in the views folder, but this does not run. I there something I am missing? Thanks for your help / hard work!
 Sortering, for datoer betyr DESC nyeste først  
 Sidestørrelse 
Postet den
Forum Administrator
HuwR
Innlegg: 4614
starstarstarstarstar
can't see that I missed any dll's. I will try setting up a new VM to see if I can replicate the problem
Postet den
Forum Administrator
HuwR
Innlegg: 4614
starstarstarstarstar
will have a quick check in case I missed any dll's
Postet den
Junior
SimonE
Innlegg: 53
starstar
webserver is server standard sp2 2007 and iis7 DB server is the same
Postet den
Forum Administrator
HuwR
Innlegg: 4614
starstarstarstarstar
boggledNo idea
WHat is your server setup? OS/IIS version .net version installed?
Postet den
Junior
SimonE
Innlegg: 53
starstar
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:


[NullReferenceException: Object reference not set to an instance of an object.] WWW.Startup.Configuration(IAppBuilder app) +73

[TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +155
Owin.Loader.<>c__DisplayClass12.<MakeDelegate>b__b(IAppBuilder builder) +66
Owin.Loader.<>c__DisplayClass1.<LoadImplementation>b__0(IAppBuilder builder) +123
Microsoft.Owin.Host.SystemWeb.<>c__DisplayClass2.<InitializeBlueprint>b__0(IAppBuilder builder) +71
Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action`1 startup) +470
Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action`1 startup) +40
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +70
System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +86
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +106
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +418
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9968144
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Postet den
Forum Administrator
HuwR
Innlegg: 4614
starstarstarstarstar
bugger, that's my fault sorry. Open the snitz.config file and change the value of boolRunSetup to 1
(you will need to recycle iis to pick up the change, easiest way to do this is after editing snitz.config, open web.config and just add a space to the end of any line then save it
Postet den
Junior
SimonE
Innlegg: 53
starstar
So I think I corrected the wconnection strings and permissions. I get this error nw - not sure if I am missing a table?
Server Error in '/' Application.
Invalid object name 'webpages_Roles'.
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: Invalid object name 'webpages_Roles'.
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): Invalid object name 'webpages_Roles'.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1787822
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5341894
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +546
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1693
System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +61
System.Data.SqlClient.SqlDataReader.get_MetaData() +90
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +377
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +1421
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +177
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +137
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41
System.Data.Common.DbCommand.ExecuteReader() +12
WebMatrix.Data.<QueryInternal>d__0.MoveNext() +150
System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +189
WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args) +98
WebMatrix.WebData.DatabaseWrapper.QuerySingle(String commandText, Object[] parameters) +14
WebMatrix.WebData.SimpleRoleProvider.FindRoleId(IDatabase db, String roleName) +78
WebMatrix.WebData.SimpleRoleProvider.RoleExists(String roleName) +76
SnitzMembership.WebSecurity.AddRoles() +68
SnitzMembership.WebSecurity.Register() +184

[InvalidOperationException: The ASP.NET Simple Membership database could not be initialized. For more information, please see http://go.microsoft.com/fwlink/?LinkId=256588] SnitzMembership.WebSecurity.Register() +241
WWW.MvcApplication.Application_Start() +214

[HttpException (0x80004005): The ASP.NET Simple Membership database could not be initialized. For more information, please see http://go.microsoft.com/fwlink/?LinkId=256588] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9954277
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): The ASP.NET Simple Membership database could not be initialized. For more information, please see http://go.microsoft.com/fwlink/?LinkId=256588] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9968144
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36415
Postet den
Forum Administrator
HuwR
Innlegg: 4614
starstarstarstarstar
Postet den
Forum Administrator
HuwR
Innlegg: 4614
starstarstarstarstar
Integrated is correct, is it also .net 4.0 ?
I'm a bit confused on the other, snitz00 is the strUniqueId it is nothing to do with the table prefixes, they should be

<add key="forumTablePrefix" value="FORUM_"/>
<add key="memberTablePrefix" value="FORUM_"/>
<add key="filterTablePrefix" value="FORUM_"/>
<add key="customTablePrefix" value="FORUM_"/>
Postet den
Junior
SimonE
Innlegg: 53
starstar
so under application pool it says "Managed pipeline mode" Integrated

So in the table name, (in the snitz config) should I replace the snitz00 or make it blank?