服务器上 运行 DotNetNuke 9 时出错

Error While running DotNetNuke 9 on a server

您好,当 运行 DotNetNuke 9 在 Windows server 2012 r2 with iis

上的服务器上时出现以下错误

找不到文件D:\Inetpub\vhosts\accuratedatabases.in\*****\DotNetNuke.config

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 find file 'D:\Inetpub\vhosts\accuratedatabases.in\finance2.berozgaribhagao.com\DotNetNuke.config'.

来源错误:

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.

堆栈跟踪:

[FileNotFoundException: Could not find file 'D:\Inetpub\vhosts\accuratedatabases.in\finance2.berozgaribhagao.com\DotNetNuke.config'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +11794191
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1326
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +65
   DotNetNuke.HttpModules.RequestFilter.RequestFilterSettings.GetSettings() in E:\Websites\Developing\DotNetNuke\DNN_Platform3\Dnn.Platform\DNN Platform\HttpModules\RequestFilter\Config\RequestFilterSettings.cs:78
   DotNetNuke.HttpModules.RequestFilter.RequestFilterModule.FilterRequest(Object sender, EventArgs e) in E:\Websites\Developing\DotNetNuke\DNN_Platform3\Dnn.Platform\DNN Platform\HttpModules\RequestFilter\RequestFilterModule.cs:86
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

我在互联网上搜索但找不到任何解决方案。我尝试在共享和专用 windows 服务器上托管,但问题是一样的。 为了您的信息,我的 bin 目录中有 DotNetNuke.HttpModules.dll

我使用 DotNetNuke_install 包解决了这个问题。我之前在 Visual Studio 2015 年打开它,然后尝试在本地 运行。但现在我直接部署到 iis 并在 visual studio

中作为网站打开进行编辑