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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCompiling Modules without Website Compiling Modules without Website
Previous
 
Next
New Post
8/3/2012 6:14 AM
 
Hi,I've recently inherited a DNN portal with a lot of custom modules. I did the original install, and was provided the modules by the development company. This was a straight forward install of version 05.02.02. Once up and running, I simply installed the modules and added them to pages. The current site works perfectly, and has done for 2 years!Using the full source code provided which is the DNN website and modules, I have tried to make a few tweaks and changes. When I publish the site, build the modules and try and update them, they do not work as there is a dependency for the global_asax file, which is compiled, but the within the current site it isn't compiled.I've read all sorts of stuff over this, with the main conclusion that this can't be done.HOWEVER...The company who originally wrote these modules MUST have found a way to do it, as within their compiled modules, based on the source code I have been provided, there is no dependency on the compiled global_asxa file!When I look within two DLL's, the old one working perfectly, and the new one I've created there is a difference:Mine:protected global_asax ApplicationInstance { get { return (global_asax) ((Control) this).Context.ApplicationInstance; } }The original work module: protected HttpApplication ApplicationInstance { get { return ((Control) this).Context.ApplicationInstance; } }So, it must be possible, but how?!There are no other Visual Studio projects that I've found. This is a Website project, not a Web Application, and there is a lot of shared code within the App_Code folder.So, my question is, can anyone think of a way, or has anyone managed what I'm trying to do?Any pointers would be greatly appreciated!Cheers,John
 
New Post
8/3/2012 6:48 PM
 
you can't use publish as that precompiles the files and dotnetnuke does not support that. Instead compile the site and physically copy the files over.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/13/2012 3:18 AM
 
Hi Cathal,Thank you for your reply.I'm not sure I understand the method you suggest.If I compile a site, (Build, not publish) where are the DLL files? They're not in the bin folder within the site.Please can you explain this process?Cheers,John
 
New Post
8/29/2012 9:03 AM
 

*BUMP*

Can anyone explain how to get a compiled module DLL without a Global.asax dependency?

I know it has to be possible, as I have modules from a previous supplier without it. But I can not understand how it is possible.

There are far too many shared controls within the modules to convert this into a web application. 

Unfortunately "Instead compile the site and physically copy the files over." doesn't provide much to go on.

Some one... any one?

Thanks,

John

 
New Post
8/30/2012 6:55 AM
 
I've created modules as part of a DNN install and w/o one and I never use the global.asax file.

Normally I start with an empty asp.net web project and there's no global.asax file. There is a web.config but I delete that. Afterwards, I can compile the module and upload it to my DNN website.

Try that and see if it helps.

Mark
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCompiling Modules without Website Compiling Modules without Website


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