我有一个干净的项目,我正在努力开始。我还创建了一个干净的数据库。
两者都在我的电脑上本地运行。
我可以使用linqpad连接到我的数据库,没有任何问题。 但是,当我尝试"定制"并设置了一个微软SQL服务器,它说
:62164/install/api/PostValidateDatabaseConnection
在控制台中,我收到了500内部服务器错误:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Umbraco.Web.Install.Controllers.InstallApiController.ExecuteStep(InstallSetupStep step, JToken instruction)
2017-09-12 09:16:22,389 [P1996/D2/T11] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 32ms)
2017-09-12 09:16:22,390 [P1996/D2/T11] ERROR Umbraco.Web.Install.Controllers.InstallApiController - An error occurred during installation step DatabaseConfigure
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Core.DatabaseContext.SaveConnectionString(String connectionString, String providerName)
at Umbraco.Core.DatabaseContext.ConfigureDatabaseConnection(String connectionString)
at Umbraco.Web.Install.InstallSteps.DatabaseConfigureStep.ConfigureConnection(DatabaseModel database)
at Umbraco.Web.Install.InstallSteps.DatabaseConfigureStep.Execute(DatabaseModel database)
--- End of inner exception stack trace ---
我该怎么办?
修改 当我尝试使用自定义连接字符串时,我得到了这个:
Dim i As Long
For i = 1 To 10
If i = 5 Then GoTo Skip
MsgBox i
Next i
Skip:
答案 0 :(得分:1)
如果,即使使用自定义连接字符串,您仍然会收到500错误,我认为您的安装很糟糕,您应该尝试从头开始重新安装Umbraco