Upload Document
From: Kaandy (Kaandy_at_discussions.microsoft.com)
Date: 02/15/05
- Next message: Mike Walsh: "Re: Upload Document"
- Previous message: Mike Walsh: "Re: Display file extensions in Sharepoint 2003 document library"
- Next in thread: Mike Walsh: "Re: Upload Document"
- Reply: Mike Walsh: "Re: Upload Document"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Feb 2005 00:13:02 -0800
Hi,
i'm trying to upload the document to the sharepoint service 2003 site from
a
remote machine {desktop application}. I'm using the following code..
SPWeb site = new SPSite("http://server01:81/SampleES").OpenWeb();
FileStream fStream = File.OpenRead(txtUrl.Text);
byte[] contents = new byte[fStream.Length];
fStream.Read(contents, 0, (int)fStream.Length);
fStream.Close();
I have added all the dependend dlls like
using Microsoft.SharePoint;
using Microsoft.SharePoint.Library;
using Microsoft.SharePoint.Dsp;
using Microsoft.SharePoint.Security;
but its giving the following error...
An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in microsoft.sharepoint.dll
Additional information: COM object with CLSID
{BDEADEBD-C265-11D0-BCED-00A0C90AB50F} is either not valid or not registered.
Note: the machine ruuning this programm is not having the WSS..
Please can anybode help me...
Kaandy...
- Next message: Mike Walsh: "Re: Upload Document"
- Previous message: Mike Walsh: "Re: Display file extensions in Sharepoint 2003 document library"
- Next in thread: Mike Walsh: "Re: Upload Document"
- Reply: Mike Walsh: "Re: Upload Document"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|