using the server clipboard

  • Thread starter Thread starter adam
  • Start date Start date
A

adam

I have been using the windows clipboard during some SERVER processing on a
page request. It has worked on another machine but now calling
Clipboard.GetDataObject() returns null. The code is executed in an
impersonation block (currenlty me as a machine admin).

Are there any settings (security?) that I need to set to make it work again.

windows 2000, ISS5, Framework 1.1, VS 2003

adam

p.s. all this is on the SERVER I am NOT trying to move data from the client
to the server.
 
well not quite the worst. I'm sure if we put our heads together we could
produce something more convoluted and fragile :) However the code (that did
work on another machine) uses the clipboard to get some text from an
automated word application (I know this is not recommended and no, I will
never let it happen again). The text is grabbed via the clipboard to get
the HTML fragment which contains more useful information than the Text
property of the selection. This is for an existing product not a new build.

I think I have decided it will be quicker to try another solution that I'm
making up in my head now.

cheers,

adam
 
Hello Adam,

I think firstly we need to find the difference between working machine and the erroneous machine. Please check IIS setting,
IIS servcie setting in control panel... to make sure that all are the same.

Kevin is right here that using clipboard is not so convenient. If you just want to get some text and don't want its format, you
could store the data into disk files, filemap, or even socket.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Reply-To: "adam" <[email protected]>
!From: "adam" <[email protected]>
!References: <[email protected]> <[email protected]>
!Subject: Re: using the server clipboard
!Date: Thu, 7 Aug 2003 08:30:58 +0100
!Lines: 56
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <#[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: 62.254.210.110
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:165648
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!well not quite the worst. I'm sure if we put our heads together we could
!produce something more convoluted and fragile :) However the code (that did
!work on another machine) uses the clipboard to get some text from an
!automated word application (I know this is not recommended and no, I will
!never let it happen again). The text is grabbed via the clipboard to get
!the HTML fragment which contains more useful information than the Text
!property of the selection. This is for an existing product not a new build.
!
!I think I have decided it will be quicker to try another solution that I'm
!making up in my head now.
!
!cheers,
!
!adam
!
!!> If all this is on the server, why are you using the ClipBoard? You have
!all
!> kinds of memory space to store and retrieve data from. The ClipBoard is
!> about the worst possible one I can think of to use.
!>
!> --
!> HTH,
!>
!> Kevin Spencer
!> Microsoft MVP
!> .Net Developer
!> http://www.takempis.com
!> Complex things are made up of
!> lots of simple things.
!>
!> !> > I have been using the windows clipboard during some SERVER processing on
!a
!> > page request. It has worked on another machine but now calling
!> > Clipboard.GetDataObject() returns null. The code is executed in an
!> > impersonation block (currenlty me as a machine admin).
!> >
!> > Are there any settings (security?) that I need to set to make it work
!> again.
!> >
!> > windows 2000, ISS5, Framework 1.1, VS 2003
!> >
!> > adam
!> >
!> > p.s. all this is on the SERVER I am NOT trying to move data from the
!> client
!> > to the server.
!> >
!> >
!>
!>
!
!
!
 
Back
Top