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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Switching to Net4Switching to Net4
Previous
 
Next
New Post
10/20/2010 7:34 PM
 
I tryed to say that your installation needs to be greater than 5.4.x to run asp.net 4.
 
New Post
10/20/2010 7:37 PM
 
ok, i do run the latest version. Strange thing is that i switched to Net4 and no change was made to my web.config. None. Still the website seem to work, i can login/logout and add things. very strange.
 
New Post
10/20/2010 7:45 PM
 
If yor webconfig did not change maybe the bug occured.
Look in webconfig or you could test if you get the captcha image to work with the feedback module just as an example.
 
New Post
10/20/2010 8:22 PM
 
Ok, it seems that the

<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192" requestValidationMode="2.0" />

works (for me) under Net4. If i remove the " requestValidationMode="2.0" " ALSO works. Seems kinda strange for me.

Anybody running Net4 and also has this requestValidationMode="2.0" included and working with no problems ?

thanks
 
New Post
10/20/2010 11:25 PM
 
Have you verified in Host Settings or the Host Dashboard that your site is actually running under ASP.Net 4.0?

There should actually be three changes made to web.config when switching the site's AppPool to ASP.Net 4.0 as indicated in the Install\Config\Net40.config   XmlMerge source file. These include the one related to the setting of the requestValidatioMode which you found plus two in the configuration/runtime/assemblyBinding section relating to bindingRedirects for System.Web.Extensions and System.Web.Extensions.Design.

Another change which should be made but is not and to which Jan is referring is found in the system.webServer/handlers section of web.config. Any appearance of

preCondition="integratedMode,runtimeVersionv2.0"

should be changed to

preCondition="integratedMode,runtimeVersion4.0"

If that is not done, any attempt to reference for examle the LinkClick or Captcha handlers will result in either a 404 resource not found error or a missing Captcha image.

Regarding the addition of requestValidationMode="2.0" in the httpRuntime section, the need for that will not be noticed except when certain resources other than .aspx pages are accessed - in particular web services and some HTTP handlers.

Here are a couple of resources for ASP.Net 4.0 migration issues:

http://msdn.microsoft.com/en-us/libra...
http://msdn.microsoft.com/en-us/libra...
http://www.asp.net/learn/whitepapers/...

In some of the older modules which I developed I have run into several issues with invalid html markup (particularly mismatched quotes), code access security violations (im implementation of ISerializable interface), and the change in request validation.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Switching to Net4Switching to Net4


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