Authentication Error while migration of .net web application project

  • Thread starter Thread starter Rohith_PH 20104673
  • Start date Start date
R

Rohith_PH 20104673

Guest
Hi,

Not sure which forum I need to use for this issue. Currently we are using visual studio 2012 ,Community edition ,net framework 4.0. On our workstations, we installed Visual Studio Enterprise 2019 version. We Should migrate our project to.net framework 4.7.2 in VS2019. When I open project in VS 2019 with .net framework 4.7.2, it is giving the run time error as Authentication error (Project was successfully build without any error). Where the same project worked good on VS2012.

It is showing

"

Exception Details: System.UnauthorizedAccessException: Windows Integrated Security is not enabled

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:


Line 115: {
Line 116:
Line 117: throw new UnauthorizedAccessException("Windows Integrated Security is not enabled");
Line 118: }
Line 119:


"

Where i have enabled windows integrated security .

windows authentication as enables and anonymous authentication as disabled.

Can anyone please help me what changes i need to make over here?

Continue reading...
 
Back
Top