Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我在dotnetnuke 6中创建模块时,只需创建以下错误_Dotnetnuke - Fatal编程技术网

当我在dotnetnuke 6中创建模块时,只需创建以下错误

当我在dotnetnuke 6中创建模块时,只需创建以下错误,dotnetnuke,Dotnetnuke,错误:pp当前不可用。DotNetNuke.Services.Exceptions.ModuleLoadException:在应用程序级别之外使用注册为allowDefinition='MachineToApplication'的节是错误的。此错误可能是由于未在IIS中将虚拟目录配置为应用程序造成的。(C:\inetpub\wwwroot\dnn523\desktopmodules\dnnsamplemodule\web.config第45行)--->System.Configuration.C

错误:pp当前不可用。DotNetNuke.Services.Exceptions.ModuleLoadException:在应用程序级别之外使用注册为allowDefinition='MachineToApplication'的节是错误的。此错误可能是由于未在IIS中将虚拟目录配置为应用程序造成的。(C:\inetpub\wwwroot\dnn523\desktopmodules\dnnsamplemodule\web.config第45行)--->System.Configuration.ConfigurationErrorsException:在应用程序级别之外使用注册为allowDefinition='MachineToApplication'的节是错误的。此错误可能是由于未在IIS中将虚拟目录配置为应用程序造成的。(C:\inetpub\wwwroot\dnn523\desktopmodules\dnnsamplemodule\web.config第45行)位于System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(布尔ignoreLocal)位于System.Configuration.BaseConfigurationRecord.GetSectionRecursive(System.Configuration.BaseConfigurationRecord.GetSection(String configKey)、System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)的System.Configuration.BaseConfigurationRecord.GetSection(String configKey)中的字符串configKey、Boolean getLkg、Boolean checkPermission、Boolean getRuntimeObject、Boolean RequestsHere、Object&result、Object&resultRuntimeObject和resultRuntimeObject)位于System.Web.Configuration.RuntimeConfig.GetSection(String sectionName,Type,ResultIndex)的System.Web.Configuration.RuntimeConfig.get_Compilation()的System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath配置路径,布尔支持本地化,字符串输出AssemblyName)位于System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir、CodeDirectoryType dirType、String assemblyName、StringSet excludedSubdirectories、Boolean IsDirectoryLowed)的System.Web.Compilation.BuildManager.CompileCodeDirectoryDirectory位于System.Web.Compilation.BuildManager.EnsureFirstitMiddirectoryInit(VirtualPath virtualDir)的System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey,Boolean keyFromVPP,VirtualPath VirtualPath,Int64 hashCode)位于System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile),位于System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert位于DotNetNuke.UI.ControlUtilities.LoadControl(VirtualPath VirtualPath)的System.Web.UI.TemplateControl.LoadControl(VirtualPath VirtualPath VirtualPath)、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile)中在DotNetNuke.UI.Modules.WebFormsModuleControlFactory.CreateModuleControl(TemplateControl containerControl,ModuleInfo moduleConfiguration)在DotNetNuke.UI.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl,ModuleInfo moduleConfiguration)在DotNetNuke.UI.ModuleHost.LoadModuleControl()处---内部异常堆栈跟踪结束---

您的问题应该来自位于模块文件夹(即dnnsamplemodule文件夹)中的web.config。如果它不包含任何特定信息,我建议您删除它。
更确切地说,问题在于此web.config中包含的某些设置将覆盖DNN根文件夹的web.config设置。但是,计算机的当前配置不允许此配置