Click here to Skip to main content
15,850,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys,

I'm trying to publish a webSite that I've built using .NET 4.5 and it works fine on my development machine. Though when I publish it on Server I get error "500 - Internal server error."
Before that I have been receiving some other error:
"Unrecognized attribute 'targetFramework'"
I solved this by setting the .NET Framework version in Application Pools to my site from 2.0 to 4.0 ... but now this comes up with meaningless error 500. Anyone have encountered this issue before?

Thanks in advance!

1 solution

Solved it myself.... should have struggled a bit more to save useless post in CodeProject.
The problem was somewhy crapped up .NET Framework installation or this got improperly registeres....
On the server I did this:
1. Went to C:\Windows\Microsoft.NET\Framework\
2. Opened folder with the .NET version number the same as set in my Application Pool.
3. Found a file called aspnet_regiis.exe and started it via cmd with a "-i" parameter.

That solved my problem flawlesly....

Hope it helps anyone.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900