I have uploaded my asp.net MVC project to my server (hostek) using Visual Studio FTP.
Do I need to configure anything else? Because when I try to run the website, it displays:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Most likely causes:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
Does anyone know why?
Thanks
Related
I have project which don't have .sln file as well. I am trying to run but facing error.
I am trying to resolve this issue by going into IIS manager. IIS manager don't have list of sites and unable to add site.
Please give me solution.
Thanks
You are most likely using IIS Express while launching the program and that is why you don't see a website in IIS.
I think you want to enable directory browsing, so look here:
How to enable Directory browsing by default on IIS Express
Just a small side note: by careful with directory browsing on public websites as it can be a huge security risk.
The IP of the machine is suppose 104.68.125.105
In this machine, I configured the IIS server and successfully opened my web app http://merchantcalc/content/lateFine.aspx from inside this machine. This app has default port i.e. 80
But when I tried to open the same web app from remote computer, via url
http://104.68.125.105/merchantcalc/content/lateFine.aspx
I am getting error as ::
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
when I open
http://103.69.125.101/ from remote machine, its showing the IIS page.
But why can't I open the web apps? What configuration should I make in IIS to open my web app ?
As Mark said, if you can access http://merchantcalc/content/lateFine.aspx, then you should try http://103.xx.xxx.xxx/content/lateFine.aspx.
Did you host the web site under another website or you just publish the web app as a virtual application under your Default web site? It seems that when you access the website, http.sys is routing the request to Default Web Site. So if this is not the right site that should be routed. You could try to disable Default Web Site and bind your ip address to your web app.
Since there are various kinds of 404 error. You could check the sub-status code by enabling IIS detailed error or failed request tracing.
PS: Expose your public IP address is not recommended.
If you could provide more information, we may get to know how to fix this 404 error.
The URL 'http:localhost:8081' for Web project 'XXX project name' is configured to use IIS Express as the web server but the URL is currently configured on the local IIS web server. To open this project, you must use IIS Manager to remove the bindings using this URL from the local IIS web server.
It's not allowing me to reload the project..May some thing went wrong while doing IIS set up...
I am having an issue i get 2 IIS errors when accesing
domain.com and another when accessing domain.com/default.cshtml
I am trying to upload with WebMatrix.
I have no configuration in Webmatrix but making "starter site" from the page template.
When i upload it to my server and access.
Do i need to change something in server configurations or?
To enable uploading files to your server, you need to make sure the permissions are set up properly. The user account under which your app pool is running needs to have write permission to the directory where you're trying to upload files. This is no different from configuring a normal ASP.NET application to have upload rights to IIS, so here's a good question to look at:
Windows Server 2008 - Give my ASP.NET website write permission to a folder
Good luck!
i recently uploaded an asp.net website to web server and the publish fails.
Now when i open the site on internet it says 403 - Forbidden: Access is denied.i don't have permission to view this.. i tried filezilla to uplaod the files again. they uploaded but again the same message is displayed on browser.can you tell me where am i doing something wrong?i am using framework v4.0.
403 is a forbidden error.
Try checking the authentication settings for the website, you may need to enable Anonymous access in IIS for the website, otherwise it will just deny access.