We deployed an e-commerce site based on nopcommerce 3.10 and have developed a couple of plugins for the particular case. Everything was working properly.
Once version 3.20 was out, we downloaded the full source version, added our plugins and re-compiled the site making any required changes for the plugins as well.
It worked perfectly fine on the development environment (as is usualy the case ) but once we deployed it to the production server there were errors when trying to configure the plugins. Not just ours, almost all plugins.
The error was
Error executing child request for handler
'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
System.Web.HttpException (0x80004005): Error executing child request
for handler
'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
---> System.InvalidOperationException: The view 'Nop.Plugin.Shipping.CSTM.Views.ShippingCSTM.Configure' or its master
was not found or no view engine supports the searched locations.
This was not an issue of the views not being marked as embedded resource, because they were, and worked perfectly with version 3.10.
We even downloaded Visual Studio 2013 and re-compiled the project from a fresh code download while making sure that all the libraries (e.g. Razor, MVC) were in the correct version etc, but we had no luck.
Any ideas on what might the problem?
The Production server is on a shared hosting provider.
We have exactly the same issue as you, just to add information if you deploy debug not release you can't access the admin panel (404 - Page not found).
We where able to build nopCommerce 3.20 from source with VS 2013 and manually copy the content from Presentation\Nop.Web folder to our testing server and it works fine. But the Nop.Web folder contains csproj, cs and other unnecessary files.
(sorry i cannot add a comment because i don't have 50 reputation so i posted an answer)
Related
I'm developing in ASP.NET Core Blazor WebAssembly.
Originally I had made a Blazor wasm project in Visual Studio 2019 where client, server, and shared were all part of the same project.
The project grew and I decided to split up the project into separate git repos.
I'm using Serilog.Sinks.BrowserHttp and it was working fine before I split up the project.
Now I'm getting an error in Console (Chrome):
Before the project was split up into two separate git repositories, all logging was saved in the database, but after the split, only the server-side logs are being stored in the database.
Is there a way I can store the logs straight into my Microsoft SQL database after having split up the Blazor project?
Here is my Program.cs logger configuration:
Logger Configuration
I just figured since both server and client were both in the same project and everything worked fine, the problem must be that the logger is assuming they still are in the same folder.
The problem was an old Nuget packet Serilog.Sinks.BrowserHttp 1.0.0-dev-00012. When selecting to manage nuget packets for my solution in Visual Studio, under package description the only version available is the installed version. But from the command line I was able to update to the lastest version 1.0.0-dev-00021.
I am working on existing angular and .Net MVC application. In Web Project, I used angular and HTML pages. I want to run this application through CLI. II try to use ng serve option but it's giving above error.
I used following steps to run. Please let me know If anything is missing
1)Open Cmd prompt and went to my web project folder in which angular and package.json exist. 2)run ng serve --open in that location
getting above mentioned error.
I hope your project is a demo, because it is incorrectly managed, your app folder should be inside src folder. For using Visual Studio to make Angular App.
Here is a video tutorial/playlist to follow.
Setting up Angular 2 in Visual Studio . Here, you will see correct architecture to keep your files/folders, and method to run your application. Although, it is not my recommendation.
1). Recommendation => Use VS Code for making Angular App, and .Net Core for making Web API. For making http calls, you will have CORS at your service. Following this architecture will keep your application well-maintained.
OR
2). Recommendation => If You want to use Visual Studio for both sides, make .Net Core Web Application, there you will find ANGULAR, make project from there, and compare its architecture with your own.
You need to go inside the Angular CLI project directory to run this command.
(Probably where your package.json file exist)
Trying to run locally a Web MVC application using Docker. Application compiles and runs fine when Set as StartUp Project outside of the docker-compose project but fails when docker-compose is Set as StartUp Project during the build when it comes to Target DockerGetServiceReferences: with
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(195,5): error : The given path's format is not supported.
I have added the docker-compose through Visual Studio 2017 to an existing application as described here:
How to containerize the .NET Framework web apps with Windows Containers and Docker
I appreciate this might be quite vague so if there are any more details I could provide please let me know.
EDIT:
Adding docker-compose to just default MVC template in a new project works fine so the problem seems to be with the legacy solution. Also noticed I can't navigate docker-compose project General Properties, I get the URI formats are not supported popup error
EDIT:
Adding a brand new MVC project from the template to the solution without any references to other projects also generates the error. Could this indicate that the problem might be somewhere on the solution level?
EDIT:
I have created a new Solution file and started to migrate all the projects. This way I am successfully able to compose docker image. Once I am finished migrating all of the project I will do a comparison on .sln files and try to see what is different.
I have created a brand new ASP.NET MVC 5 project in VS2015 Enterprise (update 3). It runs as expected on that machine. However, when I copy/paste the whole project to a different machine running VS2015 community edition (update 3), the site fails to load and I get the error message:
The program '[1648] iisexpress.exe has exited with code 0 (0x0).
Here's the kicker - Creating a new ASP.NET MVC 5 project in VS community edition and copy/pasting and running it in VS2015 enterprise in the same way, however, works normally without any configuration changes. I have recreated the files in the users\documents\IISExpress folder as pointed out by other SO questions, tried changing ports, but to no avail.
EDIT: IIS immediately fails on launching, by the way. It sounds like a config issue, but I'm not sure what to check in this case.
I got the same issue, what i did is just close all the visual studio instances and in your project folder clear the .vs file(mostly it's Hidden). after that open your project.
I am really confused i have a directory structure as follows.
/foo/bar/project/
under project is the python environment via virtualenv.
I have two additional folders live, and beta.
Live is served via apache wsgi and beta is served using paster.
Some how the live site is serving templates from the beta directory. To make sure i wasn't losing my mind I renamed the beta directory to wtfbeta expecting the server to throw an error helping me track down what went wrong.
Nope, instead it just falls back to loading the correct template from the live directory. (after service apache2 restart).
I am really stuck here.
This issue was related to both sites using the same virtualenv.