How to run DotNetNuke 6.2 in asp.net 4.0

I just installed dnn 6.2 fresh as a .net 3.5 application on Windows 7 under iis 7.5 using the default application pool. Then I switch and change the default application pool to .net 4.0, load my site and get an iis 7.5 error - detailed information about IIS 7.5 - 500.21:

... ...

Most likely, the reasons:

A managed handler is used; however, ASP.NET is not installed or is not fully installed.

There is a typographical error in the configuration of the list of handler modules.

What you can try:

Install ASP.NET if you are using a managed handler.

Verify that the handler module name is spelled correctly. Module names are case sensitive and use format modules = "StaticFileModule, DefaultDocumentModule, DirectoryListingModule".

All that I read says only about two steps:

  • change the application pool to run in .net 4.0 (restart the application pool)

  • raise your site and dnn will make the necessary changes to the web.config file

Note. By default, the application pool has permissions to change in the folder of my website and all subfolders / files.

How can I fix this error and run dnn under asp.net 4.0?

Thanks for any help!

+4
source share
1 answer

This happens to me quite a bit when setting up a new machine. You need to register ASP.NET 4.0 using IIS, which you do using

aspnet_regiis

http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx

So, go to your .net 4 directory from the command line, the path will be something like this. cd C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ then run in this directory

aspnet_regiis.exe -ir

This will re-register 4.0 using IIS and you must be configured.

+4
source

All Articles