C
C#13mo ago
Richard

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.
No description
3 Replies
Patrick
Patrick13mo ago
ditch IIS Express and use Kestrel
Richard
RichardOP13mo ago
is it any posible with IISExpress ?
Artis Vilciņš
Artis Vilciņš13mo ago
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.

Did you find this page helpful?