IIS Blazor JS Error CircuitOptions.DetailedError - asp.net

I have a problem with deployment of my project on IIS.
In visual studio 2019 everything work properly but when i send it to server, blazor part stop working.
I received Error from web browers:
Error: There was an unhandled exception on the current circuit, so this circuit will be terminated. For more details turn on detailed exceptions by setting 'DetailedErrors: true' in 'appSettings.Development.json' or set 'CircuitOptions.DetailedErrors'.
blazor.server.js:1 DELETE http://webserver/_blazor?id=fR_6PmknQXUvrw2NAbvt2g 405 (Method Not Allowed)
Error: HttpConnection.transport.stop() threw error 'Error: Method Not Allowed'.
I am little confused.
Project is asp.net MVC .net Core 3.

OK, I finded solution.
I instaled Http Activation for .net Framework 3.5.

Related

How to resolve IIS 500.19 with Error Code 0x8007000d to run .net core 2.2

I am not able host the asp.net core 2.2 web api on windows server 2019 iis 10.
I get HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid. I created self contained deployment and even install url rewrite also. But still i am not able to resolve this error. Please help me resolve this issue
Detailed Error Information:
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File \?\F:\Publish\Renault\web.config
Requested URL http://localhost:9095/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Finally i got the resolution. After installing ASP.net core 3.1.7 hosting model my problem got resolved.
https://download.visualstudio.microsoft.com/download/pr/21a5322f-cf9c-40e0-af41-4cdf14b3fb17/ff1390906525099bcd6b322279e09938/dotnet-hosting-3.1.7-win.exe

IL Rewrite to mscorlib crashing w3wp.exe

I have built the IL Rewriter to monitor any file is being opened in ASP.Net WebApp. To do so, I am rewriting IL for a private method called 'Init' in FileStream class in mscorlib. Here, I inject the epilogue/prologue to register a custom callback.
Injection is working fine. Custom callbacks are also getting called whenever a file is getting opened in Windows Application.
But, when I do the same for ASP.Net web application, it keeps crashing with the following error -
System.ExecutionEngineException was unhandled
Message: An unhandled exception of type 'System.ExecutionEngineException' occurred in System.Web.dll
I don't understand if it is working fine with .Net-based Desktop Application, then why it does not work with .Net-based web application i.e. ASP.Net. What is the difference between Web and desktop application?
Googled for above error does not yield any solution :(

HTTP Error 500.19 - Internal Server Error - what is the cause?

I have created an Angular2/.NETCore application in Visual Studio, which when debugged works fine. I published this on my local IIS, and this also is running fine. However when I moved everything to a remote server, I got the following error:-
HTTP Error 500.19 - Internal Server Error
Detailed Error Information:
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
I checked that I have the correct permissions on the remote IIS, however I cannot understand why I am getting this error.
I already tried the following link
but no luck so far.
Anyone has any idea what the problem might be?
Thanks for your help and time.
Install the .NET Core Windows Server Hosting bundle on the hosting system. The bundle will install the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module.
For more information refer this link.

ASHX Page Compilation Error

I have a simple .net site built in 4.5 and I have added one web service reference to a SOAP endpoint. The ASHX page works fine in visual studio test server but when I copy to server 2012 server I get this 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: BC30002: Type 'QTWebService.VehicleInfo' is not defined.
I am confused because this type is contained inside the service reference. What am I doing wrong here? The site runs fine with the dev web server but copy to server 2012 and boom.
Thanks

IIS: Parser Error Message: Could not create type

I am trying to build a simple web service in C# using VS2015 to be hosted on Windows Server 2012R2.
I have the code written and it works properly when hosted in the Visual Studio debugger. The debugger will launch IE and give me the UI to test the simple methods in my code. I can enter a temperature in Celsius and get back the temperature in Farentheit. So my understanding is that my code itself is working.
However, when I publish my project and attempt to load it in IE, I get:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'TestAutomation.AutomationInterface'.
Source Error:
Line 1: <%# WebService Language="C#" CodeBehind="~/App_Code/WebService.cs" Class="TestAutomation.AutomationInterface" %>
Source File: /TestToolsAutomation/AutomationInterface.asmx Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.81.0
I am publishing my project by going to Build -> Publish Web App. I am selecting "File System" as my publish method and am publishing to "C:\inetpub\wwwroot\MyAppName" in the Debug configuration with no check boxes in the File Publish Options. When I publish, I have the following files in the MyAppName folder:
-AutomationInterface.asmx
-Web.config
\App_Code
WebService.cs
The obvious issue I see here is that there is no .dll file created with my compiled code. I'm far from an IIS expert, but isn't this supposed to be created the first time a user requests the page?
I then re-published and checked "Precompile during publishing" in the file options. When I do this, a \bin folder is created with files "App_Code.compiled" and "App_Code.dll" files. However, I get the same error in the browser.
Because my code works in the VS debugger but not when hosted in IIS, I suspect the problem is on the IIS side of things, but I'm not 100% certain of that.
When I request the IIS page in IE, I get an event 1310 with source "ASP.NET 4.0.3.30319.0" in the application event log that says "Event code: 3006
Event message: A parser error has occurred" along with a stack trace that shows a bunch of System.Web.Compilation functions.
I have searched for this error on Stack Overflow and other sites, but none of the suggested solutions appear to solve my particular problem.
I would appreciate any help the community could offer.
UPDATE: I enabled failed request tracing on the server. It appears that the error happens here:
154. view trace
Warning
-MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName
ManagedPipelineHandler
Notification
MAP_REQUEST_HANDLER
HttpStatus
500
HttpReason
Internal Server Error
HttpSubStatus
0
ErrorCode
The operation completed successfully.
(0x0)
ConfigExceptionInfo
ManagedPipelineHandler
I lack the background to fully understand what IIS is trying to tell me. Any tips would be appreciated.
After struggling with this for hours and making all kinds of settings changes, and uninstalling and reinstalling IIS several times, I finally solved this.
I had to right-click on the folder in which I published my files in IIS Manager and select "Convert to Application." It's now working!
Here are a few possible ideas to explore:
Have you looked at the permissions for the account that the Application Pool in IIS is using to run this? There can be ASP.Net Temporary files that aren't being generated that could be an issue here.
Is ASP.Net registered with IIS? I've remembered more than a few times to have to run "aspnet_regiis -i" on servers to install the ASP.Net part so that it'll be present within IIS.
Is IIS configured to allow ASP.Net requests? In the IIS Manager on the machine level there is an "ISAPI and CGI Restrictions" to note.
Update: Perhaps you could look at the configuration for the Application Pool and see which .Net version it is using and whether it is integrated or classic mode. Those would be the next level of things to examine.

Resources