HTTP Error 500 19 Internal Server Error - c#

Using visual studio 2015.
.Net Network 4.6.1
Everytime I do a pull from source control I cant run the project I get the following error HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid. (please see image)

Related

C# MVC - Strange compilation error code -2146232576

I published a web app with C# MVC on IIS, but when I try to access the site, the server show this error; But I published the same web app in other Server and this run without issues. (I updated the NugetPackage)
Server Error in '/Outlet' Application.
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code
-2146232576.
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36392
I'm searching for this error code but don't find any solution, someone knows the possible solution for this error code?

Getting an error message "An error occurred while starting the application." after publishing an API app from Visual Studio 2017

I have a class library project based on .NET Framework 4.6.1. And another project is .NET service again based on .NET Framework 4.6.1. When I publish my service from visual studio 2017 to an API app in Azure, I get below error screen.
Few logs found:
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred. IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly. IIS was not able to process configuration for the Web site or application. The authenticated user does not have permission to use this DLL. The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.
Note: Publish is successful without any error, but the application can't start.
Can anyone help me to resolve this error?
As I mentioned in comment, many factors can cause this generic error page, and it is difficult to find the root cause of the issue based on generic error message an error occurred while starting the application. For troubleshooting, you can use CaptureStartupErrors and the detailedErrors key to display details of startup exceptions.
Capture Startup Errors
new WebHostBuilder()
.CaptureStartupErrors(true)
Detailed Errors
new WebHostBuilder()
.UseSetting("detailedErrors", "true")

Prism 5 Sample Project - Error ProxyAuthentication required

I have downloaded Prism 5 sample projects from this link.
https://msdn.microsoft.com/en-us/library/gg406140.aspx
Tried the below project and compiled
Quickstarts\Hello World\HelloWorld.Desktop.
I am using VS2015 Professional.
I got the below error.
Error The remote server returned an error: (407) Proxy Authentication Required. HelloWorldModule
I have tried the solutions mentioned in the below link.
Prism 5 Quickstart build gets the error "The remote server returned an error: (407) Proxy Authentication Required."
Tried the other ways like
1. changing the proxy
2. removing automatically detect settings.
No clue on what's wrong.
Anyone have any idea about this error?

ASP.NET Issues opening web application in Microsoft Visual Studio

I have never dealt with ASP.net and I received a folder from a classmate that I need to open up to see the content of the web application. I have tried everything but can't seem to get this application to load properly. I have asked an instructor at my school for assistance and he told me to make sure the instance is correct for SQL server on my computer and for the database to be loaded.
I have found the instance name for SQL server and have placed it in the location where it was originally my classmates instance under add name = "ConnectionString"connectionString="Data Source=(Minh-PC). As for the database I have loaded it up in SQL server under that instance. Am I doing this correctly?
Error messages in Microsoft Visual Studio.
**Warning 1 The 'targetFramework' attribute is not allowed. C:\Users\Minh\Desktop\PanderamaGaming (3)\PanderamaGaming\Web.config 40 20 C:...\PanderamaGaming (3)**
Error 2 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Users\Minh\Desktop\PanderamaGaming (3)\PanderamaGaming\Web.config 17
Whenever I load it up it's going straight to a directory and I have an error whenever i try to load the pages.
Error when I try to load the website:
Server Error in '/PanderamaGaming (3)' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 15: </connectionStrings>
Line 16: <system.web>
Line 17: <membership>
Line 18: <providers>
Line 19: <clear/>
Source File: C:\Users\Minh\Desktop\PanderamaGaming (3)\panderamagaming\web.config Line: 17
Please help me out. I've been struggling on this for over a week now.

Method not found on a successful build

Using VS2008 I made a build of a C# web application. The build succeeded but for some unknown reason, it did not include one of the methods that used to be there. I got the following error while trying to call a web service that trigger that method:
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ApplicationException: UpdateDataObject failed with message: An error occurred (1000691):
Method "DeprovisionHandling2" could not be found in class "Assignments" --->
As soon as I generated a new build, the method was back there in the DLL and the web service worked as fine as before.
Anyone faced this strange problem? What could the reason be and how to make sure we avoid it in the future?
The build is made by TFS.
Thank you!

Categories