I am trying to host .NET8 application in IISExpress but facing error.
There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined", this error is because you are running a .NET Framework 3.5-based application in .NET Framework 4. If you are running WebMatrix, to resolve this problem, go to the Settings node to set the .NET Framework version to ".NET 2". You can also remove the extra sections from the web.config file.
3 Replies
ditch IIS Express and use Kestrel
is it any posible with IISExpress ?
I have tried doing this and the longer I tried any reasonable advice I can give you is do not do this. Forget IIS even exists. Use Kestrel and/or deploy using docker.
After this had even more issues trying to deploy it when using libraries with other conflicting libraries and in the end not worth it.