Click here to Skip to main content
15,499,430 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multiple Classes, same name Pin
#realJSOP21-Jun-20 2:35
mva#realJSOP21-Jun-20 2:35 
GeneralRe: Multiple Classes, same name Pin
Bohdan Stupak29-Jun-20 5:05
professionalBohdan Stupak29-Jun-20 5:05 
AnswerRe: Multiple Classes, same name Pin
Bohdan Stupak29-Jun-20 5:03
professionalBohdan Stupak29-Jun-20 5:03 
QuestionAuthentication Error After migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH15-Jun-20 0:42
MemberRohith PH15-Jun-20 0: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 1:22
mveRichard Deeming15-Jun-20 1: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 1:32
MemberRohith PH15-Jun-20 1: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 1:47
mveRichard Deeming15-Jun-20 1: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 21:45
MemberRohith PH15-Jun-20 21: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 23:24
mveRichard Deeming15-Jun-20 23: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 23:56
MemberRohith PH15-Jun-20 23:56 
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 0:35
mveRichard Deeming16-Jun-20 0: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 2:02
MemberRohith PH16-Jun-20 2: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 2:10
mveRichard Deeming16-Jun-20 2: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 2:31
MemberRohith PH16-Jun-20 2: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 3:29
mveRichard Deeming16-Jun-20 3:29 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Rohith PH17-Jun-20 0:40
MemberRohith PH17-Jun-20 0:40 
GeneralRe: Authentication Error while migration of .net web application from VS2012 (.net 4.0) to VS2019 (.net 4.7.2)project Pin
Richard Deeming17-Jun-20 0:49
mveRichard Deeming17-Jun-20 0:49 
QuestionProblem with serial port Pin
DanTheBest14-Jun-20 6:48
MemberDanTheBest14-Jun-20 6:48 
AnswerRe: Problem with serial port Pin
OriginalGriff14-Jun-20 9:27
mveOriginalGriff14-Jun-20 9:27 
QuestionHow To Write And Comsume An Async Method Pin
Kevin Marois12-Jun-20 7:47
professionalKevin Marois12-Jun-20 7:47 
AnswerRe: How To Write And Comsume An Async Method Pin
Richard Deeming12-Jun-20 9:09
mveRichard Deeming12-Jun-20 9:09 
GeneralRe: How To Write And Comsume An Async Method Pin
Kevin Marois12-Jun-20 10:54
professionalKevin Marois12-Jun-20 10:54 
GeneralRe: How To Write And Comsume An Async Method Pin
Richard Deeming15-Jun-20 0:44
mveRichard Deeming15-Jun-20 0:44 
GeneralRe: How To Write And Comsume An Async Method Pin
Kevin Marois15-Jun-20 8:31
professionalKevin Marois15-Jun-20 8:31 
GeneralRe: How To Write And Comsume An Async Method Pin
Richard Deeming15-Jun-20 8:38
mveRichard Deeming15-Jun-20 8: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.