vip2cool

Hi there,

i have many problems, but i'll state my first problem first:

my development computer is Windows XP and has Visual Studio 2005. i was trying to run ProjectWorkspace sample code project from the Project 2007 SDK, and i got 2 errors:

Error 1 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) C:\Documents and Settings\mlu\Desktop\ProjectWorkspace\ProjectWorkspace\WorkspaceTest.cs 10 17 Workspaces
Error 2 The type or namespace name 'Server' does not exist in the namespace 'Microsoft.Office.Project' (are you missing an assembly reference ) C:\Documents and Settings\mlu\Desktop\ProjectWorkspace\ProjectWorkspace\WorkspaceTest.cs 9 44 Workspaces

i was trying to install SharePoint on my computer, and it didn't work because it required Windows Server 2003 OS...

so does anyone know how to solve this problem

Thank a lot
michael


Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

Becky Isserman

You can copy the dll files for Sharepoint from a server that has MOSS 2007 and reference them or you can create a VPC on VPC 2007 with MOSS 2007. If you have never used a VPC before it is not so bad here is a link on how to create a VPC in MOSS 2007: http://www.pptspaces.com/sharepointreporterblog/Lists/Posts/Post.aspx ID=28.




Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

raewrvagaergaz

Hi

thx for the reply,

i'm pretty new, so i don't know what is MOSS and VPC stands for and what they are. but i'm going to look into the link you posted

thanks
michael




Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

Becky Isserman

Sorry I am used to acronyms it is Virtual PC. You can create a virtual like environment. It is great for testing.




Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

raewrvagaergaz

setting up VPC is pretty long progress..lol

which is better tho copying dll's or VPC

if copying dll's, which are the dll's that required

thanks
michael




Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

JpFortin

You will need

Microsoft.Sharepoint.dll

Microsoft.Sharepoint.Search.dll

Microsoft.Sharepoint.Security.dll

You can find them all on the server you installed Sharepoint Services or Sharepoint Server in the folder

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI\





Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

raewrvagaergaz

Thanks!

Now i was trying to go File-Open-Web site --> Remote Website, and i typed in my website location and click open, hoping to connect to the server so i can do development from my development machine. but i got the follow error popping up: "Visual web developer does not support opening SharePoint web sites. See Help for more details."

I'm complete stuck, any one have ideas

thanks
michael




Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

JpFortin

You can only open the remote website using Sharepoint Designer (as i know of).

Now, assuming your are trying to build a webpart, you need to compille your project to a .dll and put it in sharepoint BIN directory (something like C:\inetpub\wwwroot\wss\bin) or in the GAC, if you choose the GAC the assembly must be strong-named.

Then you need to edit the web.config file of your sharepoint site (the one at the root of your website, probably somewhere in Inetpub), to add a Safe Control entry, something like :

Code Snippet

<SafeControl Assembly="[Assembly Name]" Namespace="[Namespace]" TypeName="*" Safe="True" />

You can get those informations using .net Reflector...

Then you go to the Sites Actions -> site settings -> web part and click on new. Your Web part should be there, check the box and click populate gallery...





Re: SharePoint - Development and Programming Visual Studio and SharePoint [HELP ASAP, THX]

raewrvagaergaz

kind of complicated..

so there's no way to use Visual Studio

thanks