Geeks With Blogs

News
MSN search
Technorati search

PDC'05 - Developer Powered

Disclaimer

This posting is provided "AS IS" with no warranties, and confers no rights of any kind. All opinions included here are mine and do not represent the opinions of my employer or any of its other employees.

Edgardo Vega's Blog Making it through the day one post at a time

So if you are having problems programming for Sharepoint 2003, then here is some help.

First to you need to reference Microsoft.SharePoint.dll. You should be able to do most of what you need using this dll. Now if you cannot find this dll on your box you must retrieve it from the server with Sharepoint installed. Using the command prompt, access the GAC and copy the file to where you can access it.

Now if you get the error below:

Preparing resources...
Updating references...
The dependency 'Microsoft.SharePoint.Security' could not be found.
The dependency 'Microsoft.SharePoint.Dsp' could not be found.
The dependency 'Microsoft.SharePoint.Library' could not be found.

Performing main compilation...
Building satellite assemblies...

Then you are most likely developing on a remote box. So here is the issue, you cannot run code of from a remote machine. The code must run on the Sharepoint server. After thinking for a bit, it seems reasonable that you would not want remote code running around your Sharepoint sites, especially if it was exposed to the Internet. So you must run code that references the Sharepoint dlls directly on the box with Sharepoint installed. So you may be asking but i need to use Sharepoint API functionality from a remote box, the answer here is create a web service to service your needs.

Hope this helps and save you a lot of frustration.

Posted on Wednesday, November 10, 2004 9:00 AM | Back to top


Comments on this post: Problems programming for Sharepoint 2004 and the Microsoft.SharePoint dlls

# re: Problems programming for Sharepoint 2004 and the Microsoft.SharePoint dlls
Requesting Gravatar...
I just noticed this. I'm developing on a remote box, but it runs on the sharepoint server. Is it a problem if it's coded and compiled on a remote box?
Left by rick on Dec 02, 2004 2:48 PM

# re: Problems programming for Sharepoint 2004 and the Microsoft.SharePoint dlls
Requesting Gravatar...
Not a problem. Just have those dll on the remote box so you get intellisense. After that just put you code on the sharepoint 2k3 box and it should run. It is just difficult to do debugging.
Left by Edgardo Vega on Dec 02, 2004 2:52 PM

# re: Problems programming for Sharepoint 2004 and the Microsoft.SharePoint dlls
Requesting Gravatar...
any web service snippets or links that can put me in the right direction?
Left by anony-mouse on Jan 27, 2005 2:37 PM

# re: Problems programming for Sharepoint 2004 and the Microsoft.SharePoint dlls
Requesting Gravatar...
I was driving alone fine, making extensive use of a web service that runs on the same box as the SharePoint job server with SSO service running. All of a sudden, one fine day... I get "Error in application" and "Exception at Credentials.getCredentials(...)" when going through this web service. I still have a web part that uses Sharepoint SSO API, and I have no problems here.

Also, I am running into some SSOCanary issues as well.
Left by webuser on May 02, 2005 12:30 PM

# re: Problems programming for Sharepoint 2004 and the Microsoft.SharePoint dlls
Requesting Gravatar...
What shall I do to make my remote development work.
I get the following error while building the solution.

Any help is appreciated.
Thank you.
------ Build started: Project: Northwind, Configuration: Debug .NET ------

Preparing resources...
Updating references...
The dependency 'Microsoft.SharePoint.Security' could not be found.
The dependency 'Microsoft.SharePoint.Dsp' could not be found.
The dependency 'Microsoft.SharePoint.Library' could not be found.
Performing main compilation...
Building satellite assemblies...



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped
Left by srk on Nov 29, 2005 9:57 AM

# re: Problems programming for Sharepoint 2004 and the Microsoft.SharePoint dlls
Requesting Gravatar...
You can go into C:\Windows\Assembly\GAC, these Assembly stay there.
Note : Browse the file from the Computer that installed Sharepoint Portal Server.

You use windows command line to copy these file.

Regard
Left by Long, Cao Thanh on Oct 19, 2006 10:29 PM

Your comment:
 (will show your gravatar)


Copyright © Edgardo Vega | Powered by: GeeksWithBlogs.net