i created an asp.net web app and it works fine with the compiler.
i would like to try it now with IIS server.
i installed the IIS server succesfully on my machine and was wondering if i can have some guidance on redirecting the application to work on it,
how would i get it to work on IIS?
just open IIS configuration manager and create a Virtual Directory that points to the folder where you have the web.config and the bin subfolder.
After that you can do right click on the virtual directory on the left treeview, under My Web Site and click browse to open the site with the default browser.
this in twp sentences, to configure security, application pools and much more you should just google and read a bit of basic IIS doc.
Related
This could be a very simple thing, but still I am not able to do this. And there is no similar question on SO
I just want to host my asp .net web api over the IIS. I was working with web application years back and this used to be a trivial thing to host a web application (not sure how to host web api).
Please note that when I hit F5 and directly run it from visual studio, then it is correctly getting hosted on IIS express at this address : http://localhost:40343/api/values
I have the default web api created from the asp .net 5 web api template and I have the controller class the following location:
C:\NewLaptopWorkspace\ExRestAPI\src\ExRestAPI\Controllers
Steps I am following:
Enabling IIS on my system.
Publishing my web api from visual studio using the right click and publish option (I am not sure if this step is even required, I followed this from some of the web tutorial). I am giving the path to publish as : C:\NewLaptopWorkspace\ExRestAPI
Adding a website from the IIS. Giving the physical path as the same path where I published my website, i. e. C:\NewLaptopWorkspace\ExRestAPI
Changing the .net framework version from the Application Pool to .net 4
Now when I try to browse, I get the following error (Please check url, path etc in screen shot below):
Could someone please help out with this!
Try giving the following users access to the physical path:
IIS_USRS
IUSR
By right click on the folder > security tab > edit.
You are navigating to the root. You need to put in a valid address i.e. localhost:8080/api/user. Or whatever controller you have setup.
please try follow these steps:
Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
In IIS Manager, expand server name, expand Web sites, and then click the website that you want to modify.
In the Features view, double-click Directory Browsing.
In the Actions pane, click Enable.
I have an already compiled web application on Visual Studio 2012.
I want to show it on my browser, using IIS, without open again VS. Is there this possibility?
If you don't want to go back into VS and assuming this is a ASP.NET MVC or Web API application, then in IIS:
Right click on Sites, and Add Web Site
Set the site name, physical path (C:/inetpub/wwwroot/applicationName), and host name etc (be sure to add to the hosts file)
Once you've created the site, go to your application pool and make sure you're on the right version of .NET (by going through advanced settings)
In the applicationName directory, put in your bin, app_start, app_data, fonts, scripts, views, etc folders. Also, you will need the Global.asax and obviously Web.config
As you have a compiled Web Application in VS I assume you used IIS Express during development.
In case you want to run in on local IIS go to the project properties (right click the project node in the Solution Explorer), select the Web Tab, choose Local IIS and create a virtual directory (Button on the right side).
If you want to run the Web Application on another server, right click the project node and choose Publish... You can export via FTP or to a directory, from where you can copy/paste to your target server.
i can not reload the WebApplication project, i got this message error
i moved the server to another place, so the IP is changed.
i already change the ip on IIS and WebApp config
i already uninstall IIS and reinstall
i already use aspnet_reggis -i
but still i, can not reload the WebApplication.
thanks you in advance
PS: i m sure is because the IP configuration. it work well at my home, now i bring the computer to office...it not work anymore....nothing change just the IP my home is not the same like IP in my office
the error message says: the project web ESPTEMPS_WebApp is configured for IIS, the website is not found.
You most likely need to configure your IIS for your website.
here's a helpful link to do this: http://msdn.microsoft.com/en-us/library/cek8kw6e.aspx
Good luck,
Your application is configured to work with IIS, in your case, IIS is not installed in your system or maybe the developer used IIS Express when developing. (You need to install VS 2010 sp1 to get IIS Express 7.5 integration with VS)
What you can do is:
Close your solution and open the csproj file in notepad (of the project that is giving problems)
Find and set these values:
<UseIIS>False</UseIIS>
<UseIISExpress>False</UseIISExpress>
Then reopen your solution again with visual studio. You will be able to debug with the web developer web server.
I found a very good reference for you. It will walk your through set of steps to help you configure your IIS. Here is the link. Please ignore the steps that are not applicable to you. But basic idea is:
Open Project Properties and go to Web tab
Select local IIS web server. If it is already selected, it will show you a virtual directory. If it doesn't already show selected, then mention the virtual directory.
I have been using the embedded server that visual studio has to test my ASP.NET MVC 3 application and it has been working fine. I decided that I want to start using IIS on my local machine for my personal development environment as that is how the application is going to have to be deployed.
I installed IIS through the control panel on Windows 7 (so I am assume it is version 7/7.5) and enabled basically every option. I then open up the IIS Manager and added the website. I also added an entry in my hosts file so that the domain I gave the IIS Manager maps to 127.0.0.1.
I then started Visual Studio (as administrator) and opened up the solution. I changed the properties for a few of the references as mentioned in a "How to Web Deploy ASP.NET Applications" article (like System.Web.MVC, System.web.Routing, and a few others). I then went to the main project, right-clicked and clicked publish. I set everything in there for Web Deploy and published it. To double check I when to the folder that I set as the path for the website in IIS Manager and they was a folder called app as excepted (when publishing I gave it website/app so I was excepting that folder) and it had a number of different files.
Edited
At first I was getting a blank page. After restarting my server, I now get a page with the message:
Error Summary
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
It tells me the most likely issue is that directory browseing is not enable but I would have though that my application would be access from the url (sb.website.com/app). The only files that publish copied over into that folder is the Web.config and Global.asax (it also copied the folder Areas, bin, and Views). Is there some setting in IIS Manager I am missing something else that should be copied over in the publish?
Figured out the issue.
I had to do was run aspnet_regiis -i in command line.
to start - Add a test.html page in your solution just to exclude any extension issues. Try even adding it to your wwwroot folder as well and see if you can hit it from localhost/test.html
I have created a web application using Visualstudio 2008 using C# on my computer.
I am using windows server 2003.
I have now published the webapplication and put those contents in the server.. with a field called inetpub\wwwroot.
i have created a root directory for it in the IIS with the name "super".
Now i need to see this in internetexplorer how do i do this...
I am new to this so please help me..
Thanks
Is there a Procedure on how to do all this from the start...
If you have created a .net website or .net web application, you can follow these instructions on Deploying ASP.NET Applications in IIS 6.0. In overview, when you do a publish from visual studio, you're compiling the application down to it's assemblies, you're stripping out the code behind files, and only moving over what is needed to run the site/application. Your webserver should be setup with a virtual directory pointing to the published folder, and it would be a good idea to have a Default.aspx page in the folder since the webserver looks for this page as it's starting point. Usually the default website is the site used inside of IIS for websites (at least when you've only got one). You should be able to right click on a file and browse the file if you have followed all of the setup instructions found in the referenced link.
Good luck, and hope this helps.
Within IIS, you could right click on default.asp and select browse.