After deploying an asp.net mvc 5 project on iis 7, and then click browse, i got a blank page!
Hint:
I've checked http static content, http redirection, and http errors.
Any ideas?
Thanks in advance.
The app. run after i run this command; which installed the asp.net on iis.
Then recreated a virtual directory once again for the application on the local iis:
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
To fix IIS mappings for ASP.NET, run the Aspnet_regiis.exe utility.
https://support.microsoft.com/en-us/kb/306005
One idea: your default page is blank.
If there is an existing index.html in root it might be showing that. Can you delete all content from server and deploy again?
Related
I have a web application which uses mvc4+Entityframework 6. It works fine on local machine. However, when I create the website on the production iis, published all files, the site does not come up. It shows 500 error.
If I put a simple index.html file, rename the web.config to something else, the index.html shows up. It tells me the iis is working.
Do I need to install any runtime on production?
thanks
it turns out that the machine is a new machine and nobody installed asp.net 4.5 on it. once installed it and mvc runtime (not sure this is must), it works fine.
I am developing an ASP.NET MVC 4.5 application in C#. It works flawlessly when I run it after compiling on my local IIS Express.
However, when I try to upload it to a remote server it does not seem to recognize anything in its root directory. It only displays the default welcome screen.
I have tried reconfiguring the web.config file to point to Global.asax file, without any success. I am able to load single images by modifying the URL according to the sites structure.
What is the initial "starting file" on ASP.NET MVC 4.5 and how do I configure IIS7 to load it?
Check you server configuration (if possible), first enable Web Server (IIS) role (is posible to add from Server Manager or PowerShell), then install .NET Framework, or use aspnet_regiis.exe from .net framework folder (C:\Windows\Microsoft.NET\Framework\v4.0.30319 and C:\Windows\Microsoft.NET\Framework64\v4.0.30319) if server has configured iis web role and .net framework installed but configured incorrectly. If unsure what role features to add use Web PI and add IIS Recommended Configuration (http://www.microsoft.com/web/downloads/platform.aspx)
Note: In Visual Studio 2012 project template for MVC 4 Web Application references as copy-local MVC Assemblies from NuGet and therefor you don't need to install MVC 4 on web server.
Command to register current .NET version (from folder wich you are executing this utility, execute for both, first for 32-bit and than for 64-bit on 64-bit OS) with IIS:
aspnet_regiis -i
PowerShell to add Web Server role:
PS> Import-Module ServerManager
PS> Add-WindowsFeature Web-Server
If you see the default IIS welcome screen then it's probably because of incorrect website bindings (IP:port:hostheader). Whenever IIS cannot locate a website with specific binding it falls request back to "Default Web Site" with *:80 binding which you probably observe.
can anyone help me. (iis drives me crazy!!)
heres where im at. Ive setup a basic windows server on aws. I used web platform installer to install nopcommerce and dependencies. I first got a 403 error then enabled directory browsing. Now instead of running the site the web browser just displays a list of the contents of the root folder. just a directory listing, instead of starting the webpage.
Disable directory browsing and try.
I got it back up and running by reinstalling the .net framework. Not sure what went wrong but reinstalling seems to have fixed it.
I have an MVC3 website that I am trying to deploy on an existing server with IIS6. The server has .NET 4 installed, but does not have MVC3 installed. I've put all of the referenced dll's in my bin folder on the server.
When I set the wildcard map the server throws 404 errors for every document on my site - even static documents (e.g. /public/images/nav.png). If I get rid of the wildcard map, then I can browse to static images (like nav.png).
Any ideas why 404 errors are occurring for static files that exist when the wildcard map set?
Try to deploy you solution with MVC3 required DLLs: How to Deploy an ASP.NET MVC 3 App to Web Hosting with "\bin Deployment"
right click on project node , build deployment package ,this works for me .
for more [link] http://www.hanselman.com/blog/BINDeployingASPNETMVC3WithRazorToAWindowsServerWithoutMVCInstalled.aspx
I am currently trying to install umbraco to my web server running cpanel
it is uploaded to www.benhussenet.co.uk/build. but when I go to the domain it says 404 nothing found.
Can anyone tell me and help me how to fix this please?
Many Thanks
Ben
http://www.benhussenet.co.uk/build/default.aspx returns the code inside the ASP.NET page, which shows that you're on a server which doesn't have ASP.NET installed. This implies you're running on a *NIX webserver (which, Firebug'ing your site, it returns "Apache/2.2.14 (Unix)"). Umbraco is .NET and requires either a Windows web server, or a Linux server with Mono installed.
HTH,
Benjamin