AssetTranslationException: During translation of SCSS code MVC - c#

After I deploy my MVC Application on server i got this error , and this is first time that my project do this during deployment . My Application locally is working and in previous time i deployed and it was working also but i deployed again after updates to show this error , also this error appears for any old working version before updates

Related

Runtime Error with Deployed ASP.NET Core MVC app; doesn't occur during debugging in VS '19

I have an app that I've been building and running in Visual Studio. I've been doing fine, until today when the deployed app suddenly won't load a specific page. When I run the app through VS in debug mode, all is well.
But when I run the app and try to load a specific page, I see the following error in the Application Event Logs:
ActionName: MapItGo_Web_App.Controllers.ShippingSchedulesController.EditRelayCalendar >(MapItGo Web App)
The view 'EditRelayCalendar' was not found.
Searched locations:
/Views/ShippingSchedules/EditRelayCalendar.cshtml,
/Views/Shared/EditRelayCalendar.cshtml,
/Pages/Shared/EditRelayCalendar.cshtml
The page exists. And like I said - when I run the app in the debugger, it runs fine. This is totally bizarre to me. It was running completely fine this morning, when I had a colleague testing that particular page out.
This app is being deployed to MS Azure.
Any ideas?
I had tried with Asp.net core MVC application deployed using Visual Studio 2019. I am not facing any issue like Runtime Error.
Please try to clear cache the solution, rebuild the solution and try to deploy into azure. If you still have an issue please raise a support ticket New support request - Microsoft Azure
Refer for more info here

"Cannot GET / " after initial running of project

My angular 7 , .net core project is getting error "Cannot GET /" on first running of project.
After server started when i just save any of my angular 7 files in editor, the browser reloads and working fine, but on initial starting its getting error.
There are no Errors found on client side or server side.
Did anyone came across such a problem?
“Cannot GET / ” after initial running of project
I have encounter this issue everytime when I run ASP.Net Core and Angular template. It's because when we run ASP.Net Core server it will run 2 port 1 port for ASP.Net Core server and 1 port for Angular.
The Angular port will have to build and bundle everything so it may take time to bootstrap angular app and sometime we will have time out issue lead to “Cannot GET / ” after initial running of project. So my recommend is you navigate to ClientApp folder run
ng serve
and wait until everything is done build then you can run ASP.Net Core using visual studio by ctrl + f5

Running ASP.NET MVC 6 Web API from IIS

I create a MVC 6 Web API project that is running as expected from Visual Studio, when I'm however deploying to production I'm getting a
An error occured while starting the application
error.
I did the following on the production machine
Installed ASP.NET 5 from https://get.asp.net
Made sure that the production environment is running the same dnx version
that the application was published with
Installed HttpPlatformHandler 1.2
Set the application pool .NET CLR Version to No Managed Code
Pointed the root location to the wwwroot folder
Is there anything else that I'm missing?
When you run into 500 errors, remember that ASP.NET 5 application can be self hosted,
Open a command prompt
Browse to the application directory
Type in web.cmd
I had some reference problems within my application that was listed in my command prompt which I subsequently fixed and everything worked as expected.
500 can be thrown by different failures. Take a look on http://docs.asp.net/en/latest/publishing/iis.html what u've missed in your configuration.
And you should call it ASP.NET Core 1

Error: Sys.WebForms.PageRequestManagerServerErrorException in ASP.NET 4.5.1

I have asp.net application which is developed in asp.net 3.5 and i recently upgraded the application to new framework which is .NET Framework 4.5.1 and previously it was a web site and I converted it into Web Application now. Every things work fine expect one thing all I am facing below mentioned error on all those pages where Update Panel of Microsoft AJAX are used
Details of Error is:
Error: Sys.WebForms.PageRequestManagerServerErrorException:
An unknown error occurred while processing the request on the server.
The status code returned from the server was: 502
This is the error which is occurring when ever any event is trigger to update the update panel
While working in Visual Studio it is working fine but when i publish this web application and host it on IIS only than i encounter the error no matter on production server or on my dev machine. I have no idea what is wrong ...

Inquiry on debugging an IIS web application

I developed a web application which is working perfectly on my local (laptop), now, when I copied-pasted the .dll (which came from my laptop) and other .aspx files on another PC and browsing the web application on the localhost (new machine), I am encountering an error saying Server error in "/" application,
Parser error message: Could not load type 'namespace.of.my.library'
Additional info:
When I build/publish the .dll, it's only producing one dll file, so I am sure that I didn't missed anything when I copy-pasted the code into a different machine.
I also checked the framework version of the generated dll and the framework version of IIS and they are the same with my laptop.
And since the web page is producing this error, I don't know how to debug, I can't get any relevant info out of it.
Did I missed something?
Thanks!

Categories