How can i run a website locally developed using .NET
I've developed a website in .NET using Visual Studio 2008. I gave this website to my friend using USB pendrive. Now he wants to开发者_Python百科 run that website locally on his PC in which Visual Studio is not installed. Please suggest me how can i run locally that website in my friend pc. Where should i save that website on his PC?
You can install .NET runtime, and host it in his local IIS. The requirement is that IIS has the website set up pointing to the appropriate folder. (For example, save the website in 'c:/inetpub/website name' and point IIS's website directory to that same folder. You will also need to make sure that IIS_USR has read access to this folder.)
For example, the hosted server I use does not have Visual Studio installed, we simply ship the code up and run it through IIS and .NET installed without visual studio.
You can't do that, really. You'll need at least IIS to be installed on your friend's computer. It can be obtained by visiting http://www.microsoft.com/ and looking for it in the Downloads section. From there, set it up and move your project into the root directory.
Your friends' computers need to be installed with IIS. Once that's installed, your friends need to move your web 'materials'(pages and executables) to the virtual directory that can be specified in the IIS services tab
精彩评论