Click here to Skip to main content
15,881,600 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multiple Classes, same name Pin
#realJSOP21-Jun-20 1:35
mve#realJSOP21-Jun-20 1:35 
GeneralRe: Multiple Classes, same name Pin
Bohdan Stupak29-Jun-20 4:05
professionalBohdan Stupak29-Jun-20 4:05 
AnswerRe: Multiple Classes, same name Pin
Bohdan Stupak29-Jun-20 4:03
professionalBohdan Stupak29-Jun-20 4:03 
QuestionAuthentication Error After migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH14-Jun-20 23:42
Rohith PH14-Jun-20 23:42 
AnswerRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming15-Jun-20 0:22
mveRichard Deeming15-Jun-20 0:22 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH15-Jun-20 0:32
Rohith PH15-Jun-20 0:32 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming15-Jun-20 0:47
mveRichard Deeming15-Jun-20 0:47 
QuestionRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH15-Jun-20 20:45
Rohith PH15-Jun-20 20:45 
I checked with this code with empty web Form to check if authentication is working .
I received this error ,even after configuring the applicationHost.config (handler = Allow).Could you please help with this


Error:


"HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:
Module WindowsAuthenticationModule
Notification AuthenticateRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File \\?\C:\Users\rharishpr\source\repos\WebApplication3\web.config
Requested URL https://localhost:44386/WebForm1.aspx
Physical Path C:\Users\rharishpr\source\repos\WebApplication3\WebForm1.aspx
Logon Method Not yet determined
Logon User Not yet determined

Config Source:
18: <authentication>
19: <windowsauthentication enabled="true">
20: <basicauthentication enabled="true">
"

Method used to check Windows authentication part:


" protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Application code executed using ");
Response.Write(System.Security.Principal.WindowsIdentity.GetCurrent().Name + "
");

Response.Write("Is User Authenticated: ");
Response.Write(User.Identity.IsAuthenticated.ToString() + "
");

Response.Write("Authentication Type, if Authenticated: ");
Response.Write(User.Identity.AuthenticationType + "
");

Response.Write("User Name, if Authenticated: ");
Response.Write(User.Identity.Name + "
");

}
"
Web.config:


"



<configuration>
<system.web>
<compilation debug="true" targetframework="4.7.2">
<httpruntime targetframework="4.7.2">
<authentication mode="Windows">
<authorization>
<deny users="?">


<system.webserver>
<security>
<authentication>
<windowsauthentication enabled="true">
<basicauthentication enabled="true">
<anonymousauthentication enabled="false">



<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:default /nowarn:1659;1699;1701">
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+">




"

modified 16-Jun-20 3:33am.

AnswerRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming15-Jun-20 22:24
mveRichard Deeming15-Jun-20 22:24 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH15-Jun-20 22:56
Rohith PH15-Jun-20 22:56 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming15-Jun-20 23:35
mveRichard Deeming15-Jun-20 23:35 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH16-Jun-20 1:02
Rohith PH16-Jun-20 1:02 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming16-Jun-20 1:10
mveRichard Deeming16-Jun-20 1:10 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH16-Jun-20 1:31
Rohith PH16-Jun-20 1:31 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming16-Jun-20 2:29
mveRichard Deeming16-Jun-20 2:29 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH16-Jun-20 23:40
Rohith PH16-Jun-20 23:40 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming16-Jun-20 23:49
mveRichard Deeming16-Jun-20 23:49 
QuestionProblem with serial port Pin
DanTheBest14-Jun-20 5:48
DanTheBest14-Jun-20 5:48 
AnswerRe: Problem with serial port Pin
OriginalGriff14-Jun-20 8:27
mveOriginalGriff14-Jun-20 8:27 
QuestionHow To Write And Comsume An Async Method Pin
Kevin Marois12-Jun-20 6:47
professionalKevin Marois12-Jun-20 6:47 
AnswerRe: How To Write And Comsume An Async Method Pin
Richard Deeming12-Jun-20 8:09
mveRichard Deeming12-Jun-20 8:09 
GeneralRe: How To Write And Comsume An Async Method Pin
Kevin Marois12-Jun-20 9:54
professionalKevin Marois12-Jun-20 9:54 
GeneralRe: How To Write And Comsume An Async Method Pin
Richard Deeming14-Jun-20 23:44
mveRichard Deeming14-Jun-20 23:44 
GeneralRe: How To Write And Comsume An Async Method Pin
Kevin Marois15-Jun-20 7:31
professionalKevin Marois15-Jun-20 7:31 
GeneralRe: How To Write And Comsume An Async Method Pin
Richard Deeming15-Jun-20 7:38
mveRichard Deeming15-Jun-20 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.