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...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...How to create WebHttpApplication inherits from DotNetNukeHttpApplicationHow to create WebHttpApplication inherits from DotNetNukeHttpApplication
Previous
 
Next
New Post
11/26/2013 3:47 AM
 

Hi All,

I want to create WebHttpApplication which inherits from DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication. Because I want to turn on some Application Variables. But I don't create it. So, I need your support for my problem.

Thank you very much

 
New Post
11/26/2013 9:24 AM
 
What exactly are you trying to achieve ? As a rule you should avoid directly accessing internal objects inside the dnn api - they have a habit of getting changed over time.

In addition - what you are trying to do is not really possible - DotnetNukeHttpApplication is a core element of the dnn lifecycle and the asp.net lifecycle. Creating a new webHttpapplication that inherits from it would not have any effect since it would still not be loaded as part of the lifecycle - you would physically need to change internal code in the dnn api to make it recognize a new application.

 
New Post
11/26/2013 8:53 PM
 

Thank you,

Now, DNN is built and developed on .Net Framework 4. I try to add DLL of .Net Framework 4.5, but error.  how way to add DLL of .Net Framework 4.5 to DNN core

 
New Post
11/27/2013 2:31 AM
 
DNN 7 works on .Net 4.0, 4.5 and 4.5.1, but just adding DotNetNuke.dll won't provide a benefit for you.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/27/2013 3:12 AM
 
dnn is compiled against the asp.net 4.0 framework - and is forward compatible with 4.5.

Just recompiling the dll against the later framework would not get you very far.

You would need to first completely update the web.config for all asp.net elements including the compiler i would suspect.
Also you would need to deal with any breaking platform issues - when MS creates a new framework it keeps compatibility
by forcing each application to reference the correct versions of itself - this means when you run an asp.net 4.0 application on a server
with asp.net 4.5.1 installed - it still RUNS the application in asp.net 4.0 mode.

Trying to switch an application forward to a new version without fully understanding any breaking changes in libraries and the runtime is asking for trouble.
A large part of DNN is compile at runtime - any number of issues could occur if the runtime elements dont all match up in terms of versioning

But really - I cant reinforce strongly enough how BAD an idea it is to alter the DNN core
- you will wind up with a site that is not compatible with future versions
- and possibly break compatibility with 3rd party modules and even core forge modules.

Westa
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...How to create WebHttpApplication inherits from DotNetNukeHttpApplicationHow to create WebHttpApplication inherits from DotNetNukeHttpApplication


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out