Deploy asp.net on IIS 8 - asp.net

I'm trying to deploy a asp.net site on iis 8 but i'm getting an error.
Site is working in visual studio, deployment is done without error using a custom profile with file system as publish method. (Here is actually my first question, should I use file system?)
Build->publish site->(Custom profile, file system, release)
Well, the site is added to selected folder which I've set up in IIS. I host several php pages from this folder whithout problem. But when I try to url forward to the new site I get this error: Given URL returns 500
I'm using IIS8, .tk adress through a dlinkddns.com adress
Any ideas?
Edit: added picture
What should I choose here if i'm hosting the page on the same computer? (I tried File system for now)
The error I get when I'm opening default.aspx

To deploy a website into IIS8 from Visual Studio, use 'File System' instead of 'Web Deploy', and put in the directory of where you want to publish your site.
Right-click your site name on your IIS 8 manager, select 'Add Application', and select the folder where you published your website in your physical path.
Click on the application under the website, then click browse, and you should view the website on your browser.
You can look at my question on how to create new website under the title, 'New website not showing default page in IIS 8.5'.

Related

trouble publishing app on IIS, always landing on welcome page

I'm trying to publish a C# app on my windows PC but cant succeed using IIS,
I've been publishing my app with with visual studio no problem,
When i add a new website on IIS and only specify the name and physical path the app is indeed working on localhost,
But when i add my IP to the host name, i can connect, but always land on IIS Welcome Page...
I've tried to move my published folder inside the default website folder but it does'nt seem to work either.
default page for reference

How to configure IIS 7 for localhost website?

I am new in Asp.Net
I have enabled features of IIS 7 on my windows system and able to see IIS manager.
I created an application but build/run application through visual studio it goes to browser and run the application with different port number. When i stop build/run application through visual studio and again i refresh browser application could not run.
I want to run application without visual studio. How to do this.
It gives this : http://localhost:9864/
To configure IIS with a new website follow these instructions:
Open IIS manager, right click Sites (At the right menu) and click Add Website
Give the site a Site Name, The physical path on your machine, and a Host Name
There are some conventions as for what website physical path to choose you can read about it in this SO question
In Windows Explorer go to C:\Windows\System32\drivers\etc and Edit the hosts file
Add this line at the end of the file:
127.0.0.1 your-chosen-host-name-from-iis-ie-localhost.testsite.com
And save the file
Thats about it. You can open your browser and browse the Host Name you chosen for your website or in IIS right click your site and click Manage Website - Browse
Important note
If you wish to use the same address as your VS uses (http://localhost:9864/) then on step 2 leave the Host Name textbox blank and instead change the Port textbox to your desired port (9864). In this case you can also ignore step 3.
As a site note:
If you installed IIS on your machine after the VS installation you might get some conflicts. You might be able by this stage to browse to static content as html but not .NET resources like aspx files. If by browsing to .NET files you get a message saying The page you are requesting cannot be served because of the extension configuration you can solve it with this SO question

Installing .net site locally results in "This page can't be displayed"

I've received some files for a site I'd like to update and am trying to get it running in IIS locally. IIS is working - if I go to http://localhost I get the index.htm file - but if I go to http://localhost/aspxsite/ (their files) I get "This page can't be displayed".
I'm very unfamiliar with this stuff - any suggestions would be appreciated.
I'm running IIS 7.5.7600.16385 on Windows 7 Pro.
1.Open IIS Manager.
In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
3.In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system to find the folder.
Go to C:\Windows\System32\drivers\etc\hosts.txt and add this line:
127.0.0.1 aspxSiteName
Type in browser http://aspxSiteName

Publishing ASP.NET MVC 4 Application to server IIS6

In the office we have a server on the 'N' drive and we use IIS6 to create folders on our current domain which are then used as test directories for website building. Our website's domain is 'www.example.com' and sometimes, when I want to create a test environment for a new website, I'll go into IIS6, create a new directory e.g. 'test', make into into an application and then upload the website files and navigate to 'www.example.com/test' to find the website that I've built.
I've recently finished building a new website using ASP.NET MVC 4 platform, but I'm having a bit of trouble actually publishing it to a new directory that I've created e.g. 'test2'. I'm currently trying to publish it by right licking the project in VS 2012 and clicking publish before electing to publish the project using the 'file system' method and selecting the directory I wish to public to 'test2'. After clicking okay, the files are published okay but when navigating to 'www.example.com/test2', I get a 403 error message.
I'm obviously doing something wrong, so if anyone has any idea of what's going wrong I'd appreciate your help.
Thanks
I don't believe IIS 6 supports MVC

Configure IIS for upload multiple website under same domain

I have classic asp project uploaded in the IIS 7 with ApplicationPool set to .Net framework 2.0.Now I have develop admin site for that but its in the asp.net 3.5.So I want to insert this application inside this classic asp project which is deployed.
i.e.
old classic asp have url
http://192.168.1.159:8888/profile/
and now my admin site will reflect to
http://192.168.1.159:8888/profile/admin/
but I am getting some error when I try to look in the browser and its failed to load.
How can I configure this or what setting I have to do in IIS 7 so that this will work fine ??
Thanks in advance.
You will want to configure your /admin folder as a new application.
Open IIS Manager
Expand your computer node
Expand the sites node
Expand the site you want this new application under
Right click on the /admin folder
Select convert to application
Fill in the alias box and check the physical path box
Click OK and you're done.
See here for a picture of the dialog that opens after step 6.

Resources