简体   繁体   中英

Enable / Install .net 4.5 on IIS?

I'm pretty new to using C# and IIS and have been having a hard time getting my .net updated to 4.5. My application as of right now is just a single handler page with no solution hosted on a url controlled by Iis. The current version my IIS is running for that application pool is v4.0 . I want to enable v4.5 but don't know where to start. I've been searching google for the past few hours now but none of it makes any sense to me.

.Net 4.5 still uses the 4.0 CLR and that's what you're picking. You won't see an option for 4.5 here. Just ensure whatever version you want is installed and compile your application against the newer .Net versions (which go up to 4.6.2 right now) and it will be just fine.

To learn more about the difference check out this blog post: https://blogs.msdn.microsoft.com/karinm/2008/11/10/whats-the-difference-between-clr-and-net-framework/

Try following what's in the link. It should work :)

https://technet.microsoft.com/en-us/library/hh831475(v=ws.11).aspx

Note: you can use any .Net 45 application with v4.0 app pool

IIS屏幕截图

In the above screen shot click on the "application pool" and check the framework version you application is running on you can double click and change as appropriate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM