C# code is giving errors
Hello,
Having downloaded the example code from Wrox, I hoped to experience somethin better than my own code, but I always get this error below trying to add the module to a page in DNN - in version 05.02.00 (275):
Error: Guestbook CS is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException : It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\inetpub\wwwroot\DotNetNuke\Tangegolf\desktopmo dules\guestbookcs\web.config line 25) ---> System.Configuration.ConfigurationErrorsException: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\inetpub\wwwroot\DotNetNuke\Tangegolf\desktopmo dules\guestbookcs\web.config line 25) at System.Configuration.ConfigurationSchemaErrors.Thr owIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey) at System.Web.Configuration.RuntimeConfig.GetSectionO bject(String sectionName) at System.Web.Configuration.RuntimeConfig.GetSection( String sectionName, Type type, ResultsIndex index) at System.Web.Configuration.RuntimeConfig.get_Compila tion() at System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) at System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) at System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) at System.Web.Compilation.BuildManager.EnsureFirstTim eDirectoryInit(VirtualPath virtualDir) at System.Web.Compilation.BuildManager.GetBuildResult FromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode) at System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualP ath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl () --- End of inner exception stack trace ---
What/Why?
TIA
Henrik
|