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.0Could Not Load the Assembly Error With a Custom ModuleCould Not Load the Assembly Error With a Custom Module
Previous
 
Next
New Post
1/29/2008 3:03 PM
 
Hi Folks,
 
I have a problem with a module that I created and installed using In-Place deployment or what Michael Washington calls WSP. This type of deployment includes the source code for the module and not the dll. JIT compilation takes care of the rest. Why? – Because I was getting a BC30456 error. This thread explains it if you are interested - http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/137621/scope/posts/threadpage/1/Default.aspx.
 
The In-Place or WSP compile was working just fine. However, I added a text box to two of my pages for an additional filter on a GridView. The module project compiled OK so I packaged it up in a zip file and uploaded it to the test DNN site on my local machine where I check things out before uploading to the host. That worked but when I tried to add the module to a page I got a “Could not load the assembly” error. Strangely if I use the dll and web page deployment without the source files method (sometimes called WDP) the module can be added to a page and it works! Unfortunately due to the BC30456 error I can't use that method on my host site! I have tried clearing everything including the temporary internet files built by ASP.NET 2.0. I think this might be a JIT compile problem but I can’t determine why. Has anyone had a problem like this with a custom module? Do you think this is a DNN or an ASP.NET 2.0 issue?
 
Any advice would be most appreciated.
 
Thanks,
G. M.  
 
New Post
1/29/2008 3:19 PM
 

I working with the WSP style of doing things (which I prefer due to convenience), I have noticed that many times errors like this have occurred to me due to namespace import conflicts.  For instance, it is easy to import namespaces on your WSP project to make programming go quicker, but then when that some code is put on another instance, things break.  It is for this reason that I nearly always use full namespace when calling a method or property.

This may not fix your issue, but it helped me.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
1/29/2008 4:34 PM
 
Thanks for the quick reply. I don’t think that is the problem but maybe it could be. I am working with a test installation. Possibly I added something or did an upgrade since I last worked on this module. I’ll check out the namespace conflict angle. If it isn’t that, it could be something similar.
 
Thanks,
G. M.
 
New Post
1/30/2008 10:52 AM
 

hismightiness wrote

I working with the WSP style of doing things (which I prefer due to convenience), I have noticed that many times errors like this have occurred to me due to namespace import conflicts.  For instance, it is easy to import namespaces on your WSP project to make programming go quicker, but then when that some code is put on another instance, things break.  It is for this reason that I nearly always use full namespace when calling a method or property.

This may not fix your issue, but it helped me.

Here’s an update. It was a namespace issue! I’ve learned my lesson.   I am going to be very careful from now on. Your comment about fully qualified names is good advice.

 
New Post
1/30/2008 10:46 PM
 

I am glad to help!  :)


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Could Not Load the Assembly Error With a Custom ModuleCould Not Load the Assembly Error With a Custom 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