Solved

C# Clipboard.setdataobject throwing error

Posted on 2012-12-25
6
1,259 Views
Last Modified: 2013-03-02
Requested Clipboard operation did not succeed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.ExternalException: Requested Clipboard operation did not succeed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[ExternalException (0x800401d0): Requested Clipboard operation did not succeed.]
   System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay) +1198
   System.Windows.Forms.Clipboard.Clear() +144
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
0
Comment
Question by:Prak290679
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38720518
Is this an ASP.NET application (you have it tagged as such). If so, you realize that when referring to the "Clipboard" you are dealing with that on the server, not the client machine, yes?
0
 

Author Comment

by:Prak290679
ID: 38720527
Yes. You are right.
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38720551
Does that mean you were attempting to set the clipboard on the client's machine? I believe there is a way to do this with a Flash plugin, but I haven't done so myself. I'm sure you could find an example of it online.
0
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

 
LVL 15

Accepted Solution

by:
Ess Kay earned 500 total points
ID: 38721798
You can use showave flash to do it on client machine. close question and open a new one
0
 

Author Comment

by:Prak290679
ID: 38722277
I am sorry. I am not setting clipboard in the client machine. I am settin it in the server code.
It worked pretty well in the development server since both client and server are same machine.But, when I installed in UAT server, it does not work.

Also, curious to know if I can use execcommand("Copy") using javascript..its just like using copy and paste of right click in any screen..

thanks.
0
 

Author Comment

by:Prak290679
ID: 38945819
I've requested that this question be deleted for the following reason:

NA
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question