Upload Document

From: Kaandy (Kaandy_at_discussions.microsoft.com)
Date: 02/15/05


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...



Relevant Pages

  • Uploading the document..
    ... i'm trying to upload the document to the sharepoint service site from a ... remote machine. ... SPWeb site = new SPSite.OpenWeb; ...
    (microsoft.public.sharepoint.windowsservices)
  • Uploading the Document
    ... i'm trying to upload the document to the sharepoint service site from a ... remote machine. ... SPWeb site = new SPSite.OpenWeb; ...
    (microsoft.public.sharepoint.portalserver.development)
  • how to test in a remote machine
    ... I now use to upload the BIN directory fully to ... the remote machine and test the exe there. ...
    (microsoft.public.dotnet.general)

Loading