Solved

C# Clipboard.setdataobject throwing error

Posted on 2012-12-25
6
1,142 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
  • 3
  • 2
6 Comments
 
LVL 74

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 74

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now