I'm working on a website to manage some database things for my company. I am using Visual Studio 2013 and the MVC framework.
I have the site working under the http://localhost:275333/Home/PricingList URL but my boss is old and crotchety and doesn't understand that he can't use that URL to view the site from his computer.
He wants to see the work i've done on the site but I'm not sure how to send him a link that will work on his machine.
Any help?
Are you using IIS Express? If so, read this Scott Hanselman post - one of the items he discusses is allowing access from other PCs
IF your machine is visible from their machine you can do the following:
Install IIS Express on your machine:
open Windows Explorer
click on the system drive (C:) in the folder panel
find the "Uninstall or change a program" button above the files list, click
find "Turn Windows features on or off" on the left of the window that pops up, click - check everything "Internet Information Services"
click ok, possibly restart
From Visual Studio set your project to use IIS Express, publish it locally. See MSDN for further assistance with that.
Find the IP of your machine by running ipconfig in a console
Send a link that looks like this: 'http ://(your_ip_here)/(optional_site_name)/index.html'
IF your machine is not visible you would have to make your own VPN, which is a subject of another post.
Related
I am using Windows 10 and Visual Studio 2015 community. I am having trouble finding my ASP.NET MVC sites in my IIS Manager after I create the virtual directory in the Properties window.
I originally was unable to view the IIS manager on my Windows 10 and had to search for "Windows Features" or "Turn Windows Features On or Off". I then selected the "Internet Information Services" checkbox.
I want to be able to host the site such that when I open it up from IIS Manager it should show up under the default web sites.
In the tutorial he was able to make the app do this by going to the Project's properties, the windows tab and check the Local IIS selection as below:
enter image description here
Unfortunately I don't have his version of visual studio and all I see is:
enter image description here
When I try to create the virtual directory anyway it doesn't show up in the IIS Manager. What do I do?
The tutorial that you are following is of Visual Studio 2012 or prior as it is giving you development server option.
In your current version on the project properties => web screen there is a Servers section in that you can see a drop down that has value IISEXPRESS . Change it to Local IIS , Click on Create Virtual Directory next to it and this will create an application in your local IIS under the default web site (which ever is on port 80)) which you can see using IIS manager.
Make sure you are running visual studio in Administrator mode
I faced the same problem with the visual studio 2017 . Right click the VS tab and open it in admin mode , and it will show the option of local host under server dropdown.
This seems to be so easy that it is documented nowhere.... I have finished my first MVC3 project and now I want to host it on my own IIS7 (W2008) server. How is it done?
There are two options. If you have control of the server and can install on it, the easiest is to install the ASP.NET MVC 3 Framework on it and then install and configure the MVC app as any other web application.
If the runtime cannot be installed on the server, option called Bin Deployment can be used.
This is what I did to install get MVC running on Windows 7 Professional or greater. For Windows Server 2008, please see this link. The IIS management component should be the same for Windows 7 / Server 2008. The install process will be a little different.
Start > Control Panel > Programs and Features > Turn Windows features on of off
Expand Internet Information Services and check off all that you need (FTP, World Wide Web)
Specifically I use FTP (FTP Service), and WWW Services with Application Development (.NET Extensibility, ASP, ASP.NET, ISAPI Extensions, and ISAPI Filters) enabled. Under security you should at least enable Basic Authentication.
After this is done, go to here to get the Web Platform Installer, which will allow you to easily install .NET 3.5/4.0, MVC, and other features you might need such as MS SQL Express.
Once this is done, go to Start > Control Panel > Administrative Tools > Internet Information Services Managger
Expand COMPUTERNAME, expand sites, right click Default Web Site (unless you want to use a different folder, if so, right click sites and click "Add New"), whichever site you choose, you can right click and choose "Add FTP Publishing". From there just follow the prompts, and allow access to whichever users you want. Now you can FTP in from Microsoft visual Studio 2010 (Using Publish).
In Visual Studio - right click the MVC application you want to publish, go to Publish, enter the ftp site settings (most likely ftp://localhost if its a local install), user, password, and whether or not to replace or delete files. You can save this profile so you don't have to re-enter this information every time.
This question/answer might even be more geared toward serverfault, or superuser, not sure? If so I'm sure it will be moved.
Just installed Sharepoint2007 and VS2010.
Made an empty Sharepoint project, and opened the server tab in VS.
I saw an option to make a Sharepoint connection.
I tried to, but it gave an error, saying that a Sharepoint server is not installed on the machine.
I can surf to Sharepoint's Central Admin, and all is well.
Do I need to have a website running, beside Central Admin, to connect VS, or should VS connect to Sharepoint as I have it (just after an installation)?
John is right, you do need SharePoint 2010.
Check out this msdn thread:
http://social.msdn.microsoft.com/Forums/en/sharepointdevelopmentprerelease/thread/da8de480-778b-4150-bd1b-c66bb75db042
I have an interesting situation where I need to deploy an ASP.NET MVC app to a (pseudo-boss's) local desktop machine so they can run it locally for data entry purposes. What would be the best way to get the app running on a vista machine without Visual Studio installed?
Ideally, It would be a one click that started a development web server and opened the page up in the browser.
I considered installing Visual Web Developer and then tricking it's dev web server into running the app, or even installing mono, since it has the nice 'start xsp here' feature that even a non-technical person can understand. The big thing is that this person is not very technical, so it needs to be easy for them to start and stop the application.
You need IIS installed, which should be available for Vista. Then just set up a working directory and put your app there, it's not 1 click but maybe.,.. 5.. :)
What about the Microsoft Web Platform Installer? You'd still have to add your own application, but it takes care of .NET, IIS, and dependencies.
Could you use something like UltiDev Cassini: http://www.ultidev.com/products/Cassini/ and build your own installer to set everything up for your user?
I am not able to create new web application through Visual studio 2003. when i am trying to create web application i am getting an error like "Cannot find the components for communicating with the FrontPage server extensions". Bu at the same time i can create windows application.
Please help me on this...
I would check you definately have Front-Page extensions installed on your web server. In the control panel go to Add/Remove Programs and switch to the Add/Remove Windows Components. Double click Internet Information Services (IIS) and you will see Front Page Server Extensions listed. It should be checked, if not then check it and accept changes, you will need your install media to complete the update unless they were copied to your hard drive.
You could try reinstalling Visual Studio 2003. It sounds like some DLLs might have disappeared.
I have uninstalled both IIS and VS2003 and then installed IIS followed by VS 2003...
now it is working fine..
Problem was because of i installed VS2003 first and then IIS...
so make sure we have to insatll IIS first..
Thanks