Pubilsh my wbsite - visual-studio

I have created a website using visual studio 2008. Now i want to run this website in my friend PC. His PC does not has Visual studio installed. How can i run that web site in his PC.
I have given my website folder him in PenDrive.

You need to install IIS and ASP.NET on your friend's machine.
You can do this using the Web Platform Installer, a free (and awesome) Microsoft tool that should give you everything you need including IIS, ASP.NET, .NET Framework and anything else you may require.

This is very easy.
you should install IIS in your system. and make a virtual directory.
store your application intpub/www.

Related

Visual Studio & SharePoint distant Server

I have VisualStudio 2015 on my computer and i would like to connect it in SharePoint Server which is put on another computer (Using VM)
I know that, VS works only with SP in local.
Is it possible?
Thanks :)
One option is to publish the solution locally. For a farm solution, publishing from Visual Studio will produce a .wsp file.
You can then copy that file to the computer with SharePoint installed on it, and use Powershell (running on the remote computer) to deploy it in to SharePoint via the add-spsolution and install-spsolution cmdlets.
For more detailed information and instructions, you can refer to Microsoft's documentation here: Install and manage solutions for SharePoint 2013.

Sharepoint Development without Windows Server

Short question: Can I develop for Microsoft Sharepoint, using Visual Studio, without using a Windows server machine?
I'm trying to do work for a Sharepoint site that requires me making custom web parts but from what I've read, I won't be able to develop in visual studio without having Sharepoint installed. As well, I can't install Sharepoint without running a Microsoft Server OS.
Here is a link to a similar question asked from a couple years ago. I would love to know if there have been any fixes since then.
I am running Windows 7, and Visual Studio 2013. I don't think that the version of VS really matters, since the equivalent Sharepoint version is available for free.
If you are developing for SharePoint 2010, then you can install it on Windows 7 or 8 but with a modification http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx, For SharePoint 2013 you need to have Windows server
To setup SharePoint 2010 on Windows 7 or 8 machine:
Copy the SharePointFoundation.exe (or setup.exe) installation file to a folder on the computer where you are installing SharePoint and doing your development, such as in the following path:
c:\SharePointFiles
Extract the installation files by opening a Command Prompt window, and then typing the following command at the directory location of the folder where you copied the installation files in the previous step.
For SharePoint Foundation 2010:
c:\SharePointFiles\SharePoint /extract:c:\SharePointFiles
For SharePoint Server 2010:
c:\SharePointFiles\OfficeServer /extract:c:\SharePointFiles
Using a text editor such as Notepad, open the installation configuration file, config.xml, located in the following path:
c:\SharePointFiles\files\Setup\config.xml
Add this line inside the tag:
<Setting Id="AllowWindowsClientInstall" Value="True"/>
Yes, you can use Sharepoint Foundation or install sharepoint server. But, if you wanna do this you have to remove the sharepoint check SO check on the setup.
Install sharepoint in windows 7

Where are inetpub folder and IIS?

I have Visual Studio 2010 installed in my machine. But, there is no inetpub folder created. I was not able to find the IIS when I typed out inetmgr in the Run command. Where is the IIS? And why was the inetpub folder not created?
"By default, Visual Studio 2010 SP1 uses the Visual Studio Development Server for Web site projects and Web application projects."
http://msdn.microsoft.com/en-us/library/58wxa9w5(v=vs.100).aspx
You would need to install IIS to use the traditional IIS with inetmgr.
As already noted in the other answer, Visual Studio 2010 uses its own Development Server and not the IIS for your web application projects.
You'll need to set up IIS on your system as per instructions detailed here.
Once that's done, verify the installation by pointing your browser to http://localhost

Developing for sharepoint 2010 without it installed locally

I am currently looking into developing some WebParts for Microsoft Sharepoint 2010. I have set up a Windows 2008 Server virtual machine running Sharepoint 2010, and I have Visual Studio installed on my local machine (Windows 7 32 Bit).
However, it seems that I need to have Microsoft Sharepoint installed locally in order to access the templates in VS. I have found a couple of tutorials online saying you can develop Webparts locally without Sharepoint 2007 installed, but all 2010 tutorials insist on having Sharepoint installed locally.
Do the methods of deploying a sharepoint 2007 web part work under 2010, or alternatively, are there any good tutorials on how to develop a Sharepoint 2010 Web Part without having Sharepoint installed on the development machine?
There is a post here that describes what you are looking to do. As Gavin mentioned below, you need to add the path to the registry.
Since you already have the VM on your local machine, my suggestion is to install a copy of Visual Studio installation there as well. I have the same set-up with an instance of VS local for web development and one on my VM for SP development.

I am setting up a SharePoint Development environment. Can I setup Sharepoint on a VM and Visual Studio on my production computer?

I am going to be learning how to do SharePoint 2010 development and as such I am setting up my environment? I have a couple of questions about that.
First, I am following a couple of helpful articles on how to do it as follows...
http://geekswithblogs.net/manesh/archive/2010/05/28/building-the-ultimate-sharepoint-2010-development-environment.aspx
and
http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx
Both of these article recommend setting up Sharepoint on a server environment or VM and THEN setup Visual Studio on that same environment.
I was wondering if it will work to setup Sharepoint on a VM Guest and use my existing installation of Visual Studio (my VM host) to do the work. To do Sharepoint development do you HAVE to install Visual Studio on the VM Guest with Sharepoint? What do I lose if I just use my production install of Visual Studio (or will it just plain not work?).
It just seems counter-productive to have two development environments (and I refuse to install Sharepoint on my production machine...at least right now.)
Also, will SharePoint Foundation edition (rather than full server version) function just fine for learning and development or will I find that I am eventually going to hit barriers and limitations with it.
Thanks in advance for your help.
Seth
In order for many of the SharePoint features Visual Studio 2010 to work, both must be installed on the same machine (or VM). Visual Studio can't deploy to another machine, and the debugger (F5 Debugging) won't work remotely. If you choose to not install VS on the VM, then you will have to package and deploy the solutions yourself, as well as debug them yourself, either through the remote debugger, or trace logs on the machine. Its worth installing VS on your VM.
The SharePoint Foundation will work fine for learning, unless you are trying to learn about some of the features specific to SharePoint Server. Here is a good chart showing the differences.
You need to have SharePoint installed on your development machine so that you can write code utilizing the SharePoint assemblies.
As for just using SharePoint Foundation, I would recommend that you identify what sort of functionality you want to work with and let that determine if you can get away with just using SharePoint Foundation or not. Personally, I would use the full version so that you can learn about the the functionality it offers as well. Otherwise, you won't really be learning everything that SharePoint can provide for you.

Resources