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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0error with packaging a moduleerror with packaging a module
Previous
 
Next
New Post
7/26/2007 6:25 AM
 

Hi,

I have successfully created a module and works fine when testing it on my dev machine.  However, I want to create a module package so it's easy to deploy to the live servers.  I followed the steps shown here - http://adefwebserver.com/DotNetNukeHELP/DNN_PackageModule/Default.htm - and have created the .zip file.  But when I go to run the website again from VS2005, it keeps giving me errors along the lines of cannot load assembly xxxx.dll, make sure it is compiled before accessing the page.  Where xxxx is the name of my module.  Why is this happening??

When I then try to install the zip file with the dll's I get the following error -

StartJob Starting Installation
StartJob Reading files
Failure ExceptionICSharpCode.SharpZipLib.ZipException: Wrong Local header signature: 0x21726152 at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.ReadZipStream() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()

 

I then tried installing the zip without the dll's and that installed correctly but whenever I tried to navigate to any page I get the following error -

Server Error in '/DevNet' Application.

The files '/DevNet/App_Code/SBJ.VideosWatched/SqlDataProvider.cs' and '/DevNet/App_Code/HTML/HtmlTextController.vb' use a different language, which is not allowed since they need to be compiled together.

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.Web.HttpException: The files '/DevNet/App_Code/SBJ.VideosWatched/SqlDataProvider.cs' and '/DevNet/App_Code/HTML/HtmlTextController.vb' use a different language, which is not allowed since they need to be compiled together.

 

I have added <add directoryName="VideosWatched"/> to the config file, so what's happening here??!!!

 
New Post
7/26/2007 10:22 AM
 

It looks like your subdirectory is called SBJ.VideosWatched, so you'd need <add directoryName="SBJ.VideosWatched"/> in your web.config.  Or is that just a typo?


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
7/26/2007 10:29 AM
 

Yep cheers, that seems to have been the problem, it added SBJ. in front when I installed the package...  I still can't get it to use dll's though, any ideas about that???

 
New Post
7/26/2007 2:29 PM
 

We have dnn 4.3.7 but in my .dnn file it won't load unless I have <dotnetnuke version="3.0 type="module">

any idea why that is?

Also I have a module asp2.0 and have gotten it to load through the Module 'Install New Module' - (gotten past several errors on the way) - but now when I try to run it accessed through a page it is loaded on I get:

DotNetNuke.Services.Exceptions.ModuleLoadException: Unable to cast object of type 'ASP.desktopmodules_dnnweb2_dnnwebdefaultltk_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.desktopmodules_dnnweb2_dnnwebdefaultltk_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

Please help - I'm so frustrated!

 
New Post
7/26/2007 3:04 PM
 

ltklein,

All module have to inherit from DotNetNuke.Entities.Modules.PortalModuleBase.  It seems like your control doesn't do that, so there's an error when DNN tries to put it on the page.

So far as the version in the .dnn file, so far as I know, it doesn't effect anything.  It's always been at 3.0 since I've done module development (for any version of DNN).

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0error with packaging a moduleerror with packaging a module


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