Cannot open/create ASP.NET applications in Visual Studio

SaranRajen 1 Reputation point
2020-12-07T11:59:28.787+00:00

I'm having trouble opening my projects in Visual Studio. I get the following error and the project does not load.

Creation of virtual directory failed with the following error: Filename: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config

Line number: 24

Error: The configuration section 'fulltrustassemblies' cannot be read because it is missing a section declaration.

my application is configured to use local IIS

I tried creating a new ASP.NET webform application with target framework 4.7.2 (same as the ones of the project that does not load) and get the same issue. Any help is appreciated.

Thanks

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,193 questions
{count} votes