I created the Hello World app, in the same vein as http://giantflyingsaucer.com/blog/?p=409 . It works fine on my development computer using the embedded web server.
I followed Phil Haack's advice for using Bin Deployment at http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx . I used the Publish function to get the output directory and copied all the files to the right places in ISP (Network Solutions).
When I go to the site, I get a welcome page, but when I do http: // mydomain / hello , I get 404 error.
What could be the problem?
Here is the fix. Network Solutions seems to be running IIS6. I got what I need from http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/ . New routing
{controller}.aspx/{action}/{id}
Note the addition of .aspx after the controller placeholder. IIS6 needs this because it always thinks that it is talking to a real web page, not a controller.
I'm not addicted to extra characters in the url, but I may have to live with it.
Are you sure you deployed it to the IIS7 server? If the server starts IIS6, check this and this post .
. , ASP.NET MVC ? , MVC- BIN.
This is a long shot, but it happened very honestly with me today. Are you sure IIS is fully configured? In the node web service Extensions section, enable / enable ASP.NET. If this is not allowed, you will get a 404 error.
I had problems with 404 errors until I copied "PrecompiledApp.config"
Source: https://habr.com/ru/post/1713299/More articles:Updating TreeViewer # (Object, String [] properties); What do properties refer to? - javaPaste images in Silverlight - copy-pasteExpanded form advanced GWT - javaКак развернуть приложение ASP.NET MVC, если интернет-провайдер не использует каталог BIN? - c#Python Wiki Style Doc Generator - pythonHow to initialize an ASP.NET user control with a parameter? - asp.netUsing Eclipse C ++ CDT on Linux - c ++Download the image from the URL in the iPhone only if - objective-cHow to configure the "assign parameter to new field" quickfix behavior in eclipse? - javaIn Cocoa, what is the best way to change the cursor while hovering around in a circular view? - cocoaAll Articles