IIS displaying folder content list instead of running website (mvc application) - asp.net-mvc

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.

Related

My browser cannot find localhost when running VS2017 project and says 'Cannot reach this page'

I've been making some changes to my MVC project which earlier today was running fine. However, I installed some new software including PostGreSql and npgsql for Visual Studio and now when I run my project it seems IIS can no longer find localhost. The actual message is 'Cannot reach this page. Make sure the web address http://localhost:4068 is correct'.
I've checked that my IIS is running and I've tried deleting my IISExpress folder, deleting the config file in .vs/config but so far nothing seems to work and I don't even know what it was that caused it. If anyone has had this issue, please let me know how you resolved it.
The most likely scenario is that your project's properties have changed.
Have you checked the web settings? (right click on project -> properties)
You need to put an entry in your c:\Windows\System32\Drivers\etc\hosts File like
127.0.0.1 localhost
Or simply try http://127.0.0.1:4068 as url
Editing the file needs administrative rights so you might run your editor as administrator.

Deploying asp.net mvc app to folder

I have a hosting running windows, lets say the root domain is xxx.com. On xxx.com there should be website running on php (since IIS can run PHP, right?) or asp.net. I really dont know yet.
I am now responsible of making a asp.net mvc app, which should be running only inside a folder like xxx.com/myaspapp.
I've tried to publish the app straight to the folder via visual studio and it fails with an error:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application in IIS.
What is a solution for this? Is this scenario even possible?
Thank you.
WebDeploy can create a virtual application under an IIS site automatically. Check it out:
THE ANATOMY OF A WEBDEPLOY PACKAGE
It is simple to host an application in a sub folder. Follow the below steps.
Create a folder (myaspapp) under the root site path.
Open IIS Manager (inetmgr) and expand till the new folder.
Right the newly created folder and click on Convert to Application.
Deploy/Upload the application files directly to this folder.
Now you will be able to access the site from the sub folder.

IIS and MVC show folder structure

i have tried to deploy an mvc application in an windows server 2008 with iis7.
i have copied all the content to the inetpub/wwwroot folder
i changed the framework version of the application pool to v4.0
i ran the aspnet_regiis.exe
the project was properly released because i have deploy succesfully to my desktop dev (iis) and one arvixe hosting, but i cant make it work on the server.
but i can only see the folder structure, i tried creating virtual directorys and everything, but nothing works. am i missing something.
thx

how to deploy a mvc4+EntityFrame6 applicatin to iis?

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.

Glassfish doesnot start from Eclipse Helios SR2

I am trying to run Glassfish V3 Opens source edition from eclipse using the glassfish adapter.It gives me port conflict error.I have checked both 8080 as well as 4848 and both are free and not used by any process.I have disabled my firewall(NOD 32).
No matter what i do the external server just wont start.I deleted everything under the OSGI folder under the domain,i tried different verison of driver,nuthing seems to work.
I even downloaded Indigo and tried using the same, but i get the same error.
Somebody please Help!!
Ok this problem got solved when i placed the glassfish directory right beside the eclipse folder.The server started immediately after i copied the glassfish right beside the eclipse folder.As a precaution i created the workspace also on the same drive.Not sure if this is a bug.
The best is always to check if you have the latest plugin from this download center:
http://download.java.net/glassfish/eclipse/helios
Relative path of a GlassFish server should not matter at all...

Resources