Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where are the libraries located in C#? Pin
Luc Pattyn4-Apr-19 1:07
sitebuilderLuc Pattyn4-Apr-19 1:07 
GeneralRe: Where are the libraries located in C#? Pin
Brian_TheLion4-Apr-19 10:03
Brian_TheLion4-Apr-19 10:03 
GeneralRe: Where are the libraries located in C#? Pin
Luc Pattyn4-Apr-19 11:52
sitebuilderLuc Pattyn4-Apr-19 11:52 
QuestionDetect Samsung Tablet Plugged Into USB Pin
Kevin Marois3-Apr-19 14:34
professionalKevin Marois3-Apr-19 14:34 
AnswerRe: Detect Samsung Tablet Plugged Into USB Pin
Eddy Vluggen3-Apr-19 21:44
professionalEddy Vluggen3-Apr-19 21:44 
AnswerRe: Detect Samsung Tablet Plugged Into USB Pin
OriginalGriff4-Apr-19 5:01
mveOriginalGriff4-Apr-19 5:01 
AnswerRe: Detect Samsung Tablet Plugged Into USB Pin
Gerry Schmitz4-Apr-19 5:21
mveGerry Schmitz4-Apr-19 5:21 
QuestionHow exactly is locking performed with IIS and a web.config? Pin
Xarzu2-Apr-19 16:46
Xarzu2-Apr-19 16:46 
I have a Web Site I am trying to debug and explore. It is used already. It is already in a workable state on the computers of my peers in my development group. I just want to step through the code in debug mode. To do this, according to a peer I work with, I need to start the web site locally and then attack the project I have loaded in Visual Studio to the running project.

This brings me to the error I am stumped on. when I open IIS and click on the option to "Browse *.80 (http)" for the website that is listed and has been validated, it launches the website in a browser but it has an 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
IIS Web Core

Notification
BeginRequest

Handler
Not yet determined

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\....\web.config

Of course I have modified the path to the web.config to keep this anonymous.

The "Config Source:" on the page has a red highlighted line that has the XML node, <handlers> but this does not seem to be useful information.

The "More Information" area at the bottom of the page says:

More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »

Since the HResult code is 0x80070021, the corresponding Error message listed on this hyperlink page, https://support.microsoft.com/en-us/help/942055/http-error-500-19-error-when-you-open-an-iis-7-0-webpage is:

Server Error in Application "application name"

HTTP Error 500.19 – Internal Server Error

HRESULT: 0x80070021

Description of HRESULT
The requested page cannot be accessed because the related configuration data for the page is invalid.

The Cause is: This problem can occur when the specified portion of the IIS configuration file is locked at a higher configuration level.

The Resolution is: To resolve this problem, unlock the specified section, or do not use it at that level. For more information on configuration locking, see How to Use Locking in IIS 7.0 Configuration.

This links to this page https://docs.microsoft.com/en-us/iis/get-started/planning-for-security/how-to-use-locking-in-iis-configuration which describes locking of different elements in a configuration file.

Apparently, according to this document online, I might be able to solve this issue by following the steps described.

The page mentions applicationHost.config but the error page I get references web.config but I assume that if I change

<handlers> to <handlers overrideMode="Allow"> then it might work

and yet, intellisense says that "overrideMode" is not an allowed attribute.
AnswerRe: How exactly is locking performed with IIS and a web.config? Pin
Richard Deeming3-Apr-19 0:11
mveRichard Deeming3-Apr-19 0:11 
QuestionWhat are the settings I need to have in order to run debug in Visual Studio for a program set up in the IIS? Pin
Xarzu2-Apr-19 9:51
Xarzu2-Apr-19 9:51 
AnswerRe: What are the settings I need to have in order to run debug in Visual Studio for a program set up in the IIS? Pin
Ron Nicholson2-Apr-19 11:02
professionalRon Nicholson2-Apr-19 11:02 
QuestionRDLC Report with nested row groups Pin
Member 140571372-Apr-19 8:28
Member 140571372-Apr-19 8:28 
QuestionUpdate User Environment Variable Pin
DavPCode2-Apr-19 4:50
DavPCode2-Apr-19 4:50 
AnswerRe: Update User Environment Variable Pin
OriginalGriff2-Apr-19 5:50
mveOriginalGriff2-Apr-19 5:50 
GeneralRe: Update User Environment Variable Pin
DavPCode2-Apr-19 7:12
DavPCode2-Apr-19 7:12 
GeneralRe: Update User Environment Variable Pin
Richard Deeming2-Apr-19 8:06
mveRichard Deeming2-Apr-19 8:06 
GeneralRe: Update User Environment Variable Pin
DavPCode2-Apr-19 12:07
DavPCode2-Apr-19 12:07 
QuestionValues Sum in a file Pin
Member 1420343029-Mar-19 10:46
Member 1420343029-Mar-19 10:46 
AnswerRe: Values Sum in a file Pin
OriginalGriff29-Mar-19 21:21
mveOriginalGriff29-Mar-19 21:21 
AnswerRe: Values Sum in a file Pin
Member 1420343030-Mar-19 3:29
Member 1420343030-Mar-19 3:29 
AnswerRe: Values Sum in a file Pin
BillWoodruff31-Mar-19 19:25
professionalBillWoodruff31-Mar-19 19:25 
QuestionSplit lines in a file Pin
Member 1420343029-Mar-19 8:34
Member 1420343029-Mar-19 8:34 
AnswerRe: Split lines in a file Pin
OriginalGriff29-Mar-19 9:11
mveOriginalGriff29-Mar-19 9:11 
QuestionException while trying reading a local file using online compiler Pin
Member 1420343029-Mar-19 6:28
Member 1420343029-Mar-19 6:28 
AnswerRe: Exception while trying reading a local file using online compiler Pin
OriginalGriff29-Mar-19 6:42
mveOriginalGriff29-Mar-19 6:42 

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.