Developer forum

Forum » Development » RE: .NET 4.6 error

RE: .NET 4.6 error

Rasmus Andersen
Reply

Hi DW, 

I've updated my VS Professional from 2013 -> 2015, at first everything was fine.
 
I then wanted to use the new string interpolation in C# 6 as this was a cleaner solution then string.Format(). Because of this I had to set the target framework to 4.6, this posed a problem with all my DW installations throwing me the screen attached. 

Full error message: http://pastebin.com/pVcRx5U9

Other projects (non DW and IIS express) seems to work as expected. 

Trying to go back to .NET 4.5.1 does not fix the problem. Any ideas?

Capture.PNG

Replies

 
Nicolai Høeg Pedersen
Reply

Hi Rasmus

In the end of your compilation message, it says asp.net 4.0 - it should say asp.net 4.5.1 or 4.6.

A quick Google search indicates that it might be a wrong application pool identity - try changing it from "Local system" to "ApplicationPoolIdentity" if not already: http://www.iis.net/learn/manage/configuring-security/application-pool-identities

We compile DW with 4.5.1 which compiles to .NET 4 CLR - you should also be able to compile using 4.6 as it does the same thing. So I do not think it is .NET version related.

Also verify your compillation section in web.config

Let me know if any of this is the issue.

BR Nicolai

 
Rasmus Andersen
Reply

Hi Nicolai, 

It was set to "ApplicationPoolIdentity". 
I tried this on a new test project and the same error occoured (targeting any framework), my colleague had the same problem friday so it seems like something is off.

It takes down every DW site when the error occours, so it seems like it is in IIS. 

 
Nicolai Høeg Pedersen
Reply

You are running local? Then you have 4.6 installed.

If your are on a server, make sure it is installed.

Also try to run the "aspnet_regiis -i" command from the .net 4.6 folder.

BR Nicolai

 
Rasmus Andersen
Reply

I was running local, so it should be installed. 

I will try "aspnet_regiis -i" if I get the error on my clean install, fingers crossed I wont. 

 

You must be logged in to post in the forum