1

I have a virtual machine running windows 2003 server running MOSS 2007. This virtual machine is not being run on my dev machine, but on a different machine on the network. I can ping both the host and guest OS from my dev machine. I just need to know, if it is possible, how to configure visual studio 2008 to deploy the web parts/projects/etc to the remote VM when I do this:

Right Click, Deploy

Any input will be greatly appreciated! Thanks.

Anders
  • 12,088
  • 34
  • 98
  • 146
  • Well, I have not been able to figure anything out as of yet. I set up FTP services on my server and I am transferring the files manually for the moment. – Anders Aug 11 '09 at 14:31

4 Answers4

2

Your screenshot suggests that you're using Visual Studio Extensions for Windows SharePoint Services. VSeWSS as of now does not support deployment to a remote machine.

Sorry we weren't able to support remote development. There are a few options of course but all of them need Visual Studio 2008 and Windows SharePoint Services 3.0 on the same machine.

That is what Paul Andrew said in first reply of this thread.

Only tool that I know of, which does this, is SPDeploy. Though I haven't tried it.

user153605
  • 166
  • 4
0

On our test and debugging system we have the problem that our web application is not reachable under http://localhost, which is the normal path VSeWSS uses to deploy a solution.

To solve this problem we've changed the URL within the "Start Action" option from http://localhost to http://our machine's name. You find this setting under "Project"-Menu >> "Properties" >> "Debug"-Tab >> "Start Action" settings.

In or case we still deploy the solution from and to the same machine, but under a different name than http://localhost, so this might also solve your problem.

Alex Angas
  • 59,219
  • 41
  • 137
  • 210
Flo
  • 27,355
  • 15
  • 87
  • 125
0
  • put your MySolution.WSP in a common share
  • remote in
  • run stsadm like this

stsadm -o addsolution -filename ..\MyPath\MySolution.wsp

stsadm -o deploysolution -name MySolution.wsp -url MyUrl -immediate -allowGacDeployment

0

I am assuming that you are wanting to do this as part of your development process, i.e. quickly update the web part after you've made some changes and compiled it.

If not then ignore the rest of this!

  • The first time only - Deploy to the BIN directory manually using STSADM/tool of your choice
  • Ensure when you build that the Assembly Version doesn't change, but the File Version does
  • Create a batch file to run on the PostBuild step to copy your web part dll over to //YOURMOSSSERVER/c$/inetpub/wwwroot/wss/80site/bin , or wherever they are in your setup.

In this way each time you build the web part dll will be copied over and automagically picked up by SharePoint on the next page load.

Obviously you wouldn't want to do this on a test/qa/production server.

Community
  • 1
  • 1
Ryan
  • 23,871
  • 24
  • 86
  • 132