Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using C# Module TemplateUsing C# Module Template
Previous
 
Next
New Post
11/21/2011 1:43 PM
 

Hello,

I am very new to DNN, and I am having some problems just getting a bare module to install.  I get 23 warnings when I build module? 

These warnings are as follows:

Rebuild All started: Project: MyThirdModule, Configuration: Debug Any CPU ------
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\DataProvider.cs(76,37): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.DataProvider.GetMyThirdModules(int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\DataProvider.cs(77,37): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.DataProvider.GetMyThirdModule(int, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\DataProvider.cs(78,30): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.DataProvider.AddMyThirdModule(int, string, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\DataProvider.cs(79,30): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.DataProvider.UpdateMyThirdModule(int, int, string, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\DataProvider.cs(80,30): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.DataProvider.DeleteMyThirdModule(int, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\MyThirdModuleInfo.cs(48,16): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.MyThirdModuleInfo.MyThirdModuleInfo()'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\MyThirdModuleInfo.cs(53,20): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.MyThirdModuleInfo.ModuleId'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\MyThirdModuleInfo.cs(59,20): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.MyThirdModuleInfo.ItemId'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\MyThirdModuleInfo.cs(65,23): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.MyThirdModuleInfo.Content'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\MyThirdModuleInfo.cs(71,20): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.MyThirdModuleInfo.CreatedByUser'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\MyThirdModuleInfo.cs(77,25): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.MyThirdModuleInfo.CreatedDate'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\MyThirdModuleInfo.cs(83,23): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.MyThirdModuleInfo.CreatedByUserName'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\ViewMyThirdModule.ascx.cs(107,43): warning CS0618: 'DotNetNuke.Common.Utilities.CBO.GetPropertyInfo(System.Type)' is obsolete: 'Obsolete in DotNetNuke 5.0.  Replaced by GetProperties(Of TObject)() '
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(60,16): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.SqlDataProvider()'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(135,37): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.GetMyThirdModules(int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(140,37): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.GetMyThirdModule(int, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(145,30): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.AddMyThirdModule(int, string, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(150,30): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.UpdateMyThirdModule(int, int, string, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(155,30): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.DeleteMyThirdModule(int, int)'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(97,23): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.ConnectionString'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(102,23): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.ProviderPath'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(107,23): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.ObjectQualifier'
C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\MyThirdModule\Components\SqlDataProvider.cs(112,23): warning CS1591: Missing XML comment for publicly visible type or member 'YourCompany.Modules.MyThirdModule.SqlDataProvider.DatabaseOwner'


Compile complete -- 0 errors, 23 warnings
  MyThirdModule -> C:\Inetpub\wwwroot\DotNetNuke\bin\MyThirdModule.dll
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


If I ignore these warnings and try to install into DNN Community edition 6:

Error: MyModule 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\desktopmodules\mythirdmodule\web.config line 13) ---> System.Configuration.Configurati sException: 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\desktopmodules\mythirdmodule\web.config line 13) at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName) at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index) at System.Web.Configuration.RuntimeConfig.get_Compilation() at MTConfigUtil.GetCompilationConfig(VirtualPath vpath) at System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) at System.Web.Compilation.BuildManager.EnsureFirstTimeDirectoryInit(VirtualPath virtualDir) at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.WebFormsModuleControlFactory.CreateModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---

Man it looks so easy when Chris Hammond does his video - lol?

Any Ideas ?


 
New Post
11/21/2011 4:39 PM
 
And I just switched from the templates from the Visual Studio starter package to Chris Hammonds templates. They compile without warnings but same problem with module on page. Just big red screen?????? Unavailable.
 
New Post
11/21/2011 5:14 PM
 
make sure to install your module in the web site, it should not posess its own web.config and your web site should not reside inside a subfolder of an IIS web site.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/11/2012 8:12 PM
 

I am getting the same warnign when I buld using Chris Hammonds C# template. I have a web.config in the project where I have defined an external database source. The module installs fine on and most of the time show up but once in a while, specially if I am logged in and swith to edit mode I am getting the following error

Error: is currently unavailable.DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.XubexModule.View.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

If I open another browser different from the current one  (FireFox for example) the control show up fine but on the original browser (IE9 While editing or even after, I get the error above.

 
New Post
2/11/2012 9:04 PM
 

Mo, you shouldn't have a web.config file in your module project. if you need to define a new connection string put it into the  web.config for your development website itself. http://dnndev/ 


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using C# Module TemplateUsing C# Module Template


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out