System.Windows.Drawing not working on server Environment (Windows 2008 and 2012 server) ?

HI All,
I am facing a problem from past few days on server environment. I have created the code for taking the screen shot of the windows as follow...This code is perfectly working in Run time environment. While running and debugging the application it is working
fine. 
But once i configured this website on Windows server 2008 or Server 2012 it is not working it hangs out the application at the method graphics.CopyFromScreen().
I am unable to find out the solution for this from last few day's.  please help me to fix it. The code is as follow.
Bitmap bitmap = new Bitmap(600, 500);
Graphics graphics = Graphics.FromImage(bitmap as System.Drawing.Image);  // The application hangs at this pt
graphics.CopyFromScreen(160, 235, 0, 0, bitmap.Size);
string mappath = Server.MapPath("~/dimurl/image/");
bitmap.Save(mappath + "myfile.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
Please help me to resolve this.
Vaibhav Bhutkar, Jr. .Net Developer, Pune India.

Hello Vaibhav,
Welcome to MSDN forum.
Your issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
If  your issue is on ASP.NET website, I suggest that you can consult your issue on ASP.NET forum:
http://forums.asp.net/
 for better solution and support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Bluetooth not working properly Z10 with Subaru 2010 and 2012

    From the start approx 6 weeks ago, Z10 would not automatically pair (discover) had to manually connected everytime. Sometimes had to turn Bluetooth off and on several times to connect. Once connected Music and phone worked fine thru car speakers.
    Every Blackberry I had in the past worked perfectly.
    Now in the last week it shows on the screen in the Subaru that it is paired/connected.
    Phone rings through car speakers, but goes to the phone speaker when answered. Also music plays thru the phone speakers!!
    Any ideas?

    I occasionally have to manually switch mine to BT Audio on the Z10 when a call comes in. There should be a button on the phone screen for it. Kind of annoying.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How to stop booting windows in recovery mode (for windows 2008 and 2012 editions)

    Hi ,
    we are configure hyper-v cluster contain about 100 VM , if a host is down (unplanned failover )  its VM restarted but in the recovery mode on another hosts.
    pls tell me How  to disable  booting in recovery mode ?
    thanks,
    Ramy Shaker

    These two should sort it.
    bcdedit /set {default} recoveryenabled No 
    bcdedit /set {default} bootstatuspolicy ignoreallfailures
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How do you repair ntoskrnl.exe error or system error in windows server 2008 and 2012

                              
    hi,
    can you repair system file errors like  ntoskrnl.exe in windows server 2008 and 2012  like   like before  in windows server 2003 ?
     the steps were  repairing ntoskrnl.exe  error in windows server 2003
    1- have a 2003 cd and from that cd  start recovery console and copy from i386 directory ntldr and ntdetect.com to  windows /system32 directory on the  server and then repairing
    2- MBR with fixmbr command  and then  rebuild BOT.INI file  with bootcfg/rebuild . 
    now my question  is how you repair or solve such problem with ntoskrnl.exe error  in windows server 2008 and windows server 2012
    thanks
    johan
    h.david

    first this wil take a lot of time for windows 2008 and 2012 ,
    and what about windows 2003 I thing this has no startup repair
    thanks
    johan
    h.david
    What will take a lot of time? Repair or clean install? These days one can standup a new VM and have an operating system on it in around 20 minutes or so.
    Correct server 2003 is file based deployment and completely different OS from repair perspective as well.
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • HP Pavilion dv6-6181TX. System Recovery is not working From HP Recovery Manager.

    HP Pavilion dv6-6181TX
    Product No. A3U49PA
    Genuine Windows 7 Home Premium 64
    (but i upgraded it to windows 7 ultimate)
    System Recovery is not working From HP Recovery Manager. so i cant restore my laptop to its original factory condition. (Genuine Windows 7 Home Premium).
    so when i restart my computer and press Esc and then choose F11 i get this message :
    "Windows failed to start. A recent hardware or software change might be the
    cause. To fix the problem:
    1. Insert your Windows installation disc and restart your computer.
    2. Choose your language settings, and then click "Next."
    3. Click "Repair your computer."
    If you do not have this disc, contact your system administrator or computer
    manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000225
    Info: An error occured while attempting to read the boot configuration data."
    i saw this from the forum
    http://h30434.www3.hp.com/t5/Notebook-Recovery/Hp-recovery-manager-problems/m-p/2395473/highlight/tr...
    Had the C partition been split/shrunk to form a new partition previously?
    Does disk management show the HDD as basic or dynamic? (Start>Right-click Computer>Manage>disk management on the left).
    If it has been switched to dynamic (Windows does this automatically when more than 4 partitions are present on the disk), then the F11 recovery partition won't function until it is restored to basic, but I would like to confirm that is the scenario before providing those steps.
    The Disk management shows that my HDD as Dynamic, what should i do then if this is the case and the possible solution to my problem?
    please help me & Thank you for your time,
    This question was solved.
    View Solution.

    If you have more than 4 partitions you will need to delete the extra partition/partitions, then convert the hdd back to Basic.
    Older versions of Partiton Wizard Free work: 
    http://www.sevenforums.com/tutorials/26829-convert-dynamic-disk-basic-disk.html
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • System restore is not working

    System restore is not working for my Itouch. I am getting a picture of a white cord and and arrow pointing to Itunes logo... any suggestions?

    It sounds like there is definitely a system problem. The whole OS seems to be messed up.
    Do you have an MS Windows 7 disk?
    In such case you could start the Windows 7 Startup Repair process using the MS Win 7 disk.
    Boot from Win 7 disk, after the temporal files has been load, you should get and window where you could choose between the OS installation and other options. The second option called Repair you Computer is the one which would be needed to get the system repaired.
    Then wait for System Recovery Options to locate Windows 7 on the HDD.
    Then choose the Windows 7 installation and then the next window should appear providing the option to repair the system Startup Repair
    But in case this workaround would not help you, the system should be reinstalled once again using Toshiba Recovery disk

  • DbControl not working in clustered environment

    Hi all,
    I have a situation here with Oracle dbcontrol -it is not working in clustered environment. It is working on one node but fails on other node. Any suggestions ?
    Thanks in advance !

    http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm
    in this article Oracle has given example with RAC. so thats why i asked that question.Exactly, with RAC. If you specify -cluster option, you should have a running cluster, isn't it ?

  • In app purchase is not working in testing environment in sandbox for the past 5 days. Please anyone know about this issue.

    in app purchase is not working in testing environment in sandbox for the past 5 days. Please anyone know about this issue.
    What i did
      1 . Added three products more to the existing in-app
      2 . Tested with sanbox
    i am getting the error "cannot connect to itunes store" with error code "0" when trying to purchase product in sandbox.
    Is sandbox is down?Please help guys..

    Apple's sandbox has been down practically all month. You can check the status here:
    http://sandbox.itunes.apple.com

  • System.out.println not working in Tomcat-4.1.x

    System.out.println not working in Tomcat-4.1.24. Any settings has to be enabled??? I am using tomcat for Solaris

    I think u can use ServletContext.log() to output info instased.

  • Systems preferences does not work

    My Systems Preferences does not work, either reminders and messages... since Mavericks(10.9) Programs do not respond and Macbook air is not responding....  Help.....

    Well, you are certainly correct that the fact that the "wired" machines work sure doesn't rule out a faulty router....But that's why (as part of a process of elimination troubleshooting scheme) I hooked up my old Linksys Router, and got the same results. Now...What are the odds of 2 separate routers acting the same way? Especially when both worked fine on my TIPB and even on my MBP until a few months ago. Plus, my 12 year old son can pull a wireless signal from the router on his console games (xbox360, Wii, PS3) with no problem
    Believe me, my first thought was to go out and buy another router, but when I swapped routers and got the same problem, I began to look elsewhere, eventually coming here for help and knowledge.
    I did the SMC reset to no avail. I'm not sure about the stuff in System Configuration....By "pull" do you mean to delete all the files in this folder? Move them to a temporary folder? Should I just deal with the folders that have "IP" in the "bundle" file name?
    Any help would be greatly appreciated!
    G5 Dual / G4 TiPB / MBP 2.0 / 2.0   Mac OS X (10.4.8)   23" Cinema Display and 8 gig on G5 Dual
    G5 Dual / G4 TiPB / MBP 2.0 / 2.0   Mac OS X (10.4.7)   23" Cinema Display and 8 gig on G5 Dual

  • In my system facebook is not working plz hepl me out fast

    sir in my system Facebook is not working plz sir help me out fast plllzz

    At 1st click the Facebook
    button in the toolbar
    and select Remove
    from Firefox.
    Then You will see a
    confirmation dialog
    asking if you are sure
    you want to remove
    the feature. Click
    Remove Facebook
    Messenger to
    completely disable it.
    After that Messenger should be
    completely disabled.
    Then Log in to your
    Facebook account at
    facebook.com and Visit facebook.com/
    about/messenger-
    for-firefox
    then Click the green Turn
    On button. The
    messenger sidebar
    will open and
    confirmation
    message will be
    shown.and Click OK in the
    confirmation
    message to turn the
    feature on.

  • Functions (back & stop ) are not working in production environment

    Hi All ...
    Some functions (back and stop) are not working in production environment, where as those functions are working in QA testing environement..please answer.. what could be the reasons for not working some functions
    in production environement.
    Regards,,
    Krishna

    Hi,
    Based on the error message, it is related to the item in your production environment, then the workflow will occur exception.
    As your workflow worked perfectly in your other environments, I suggest you can check if some item has is valid in the document library.
    You can try to use Fiddler to track the web request and find in which item the workflow occurs exception.
    Here are some detailed articles for your reference:
    https://msdn.microsoft.com/en-us/library/vstudio/ee231573(v=vs.100).aspx
    http://www.andrewconnell.com/blog/SP2013-Workflow-Advanced-Workflow-Debugging-with-Fiddler
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • My bluetooth on my computer will not work.  I have checked 'ON' and DISCOVERABLE in system preferences.  I have restarted the computer.

    My bluetooth on my computer will not work.  I have checked 'ON' and DISCOVERABLE in system preferences.  I have restarted the computer. 

    Since you can get them working, at least temporarily, make those Favorites. If that doesn't help, then go into your home folder library and move the following to the Trash (but don't empty the Trash--if this doesn't help, you can always use File>Put Back to restore it to its original location.)
    In ByHost
    com.apple.Bluetooth.<long string of characters and numbers>.plist
    If you do this, you will need to reconfigure your Bluetooth settings. Might take  screen shots of them first (Cmd-Shift-4) Setting up Bluetooth again will create a brand new preference file.
    EDIT:  That's in your home folder library>Preferences.

  • Home Sharing not working between wireless PC's / devices and ethernet wired PC's on the same router.

    Home Sharing is not working between wireless PC's / devices and ethernet wired PC's on the same router.  I installed a new Verizon FIOS ActionTec  MI424WR GigE wireless / ethernet router, replacing the original FIOS router.  With the old router Home Sharing worked fine across and among all iOS and Windows wired and wireless devices.  With the new router Home Sharing works between and among the Wired PC's but not between the wired PC's and the Wireless connected PC's or iOS devices.  Home Sharing also works between and among the wireless connected PC's and iOS decices but not between them and the wired PC's.
    Only the router was changed.  No changes were made to any of the devices except all were updated with the latest version of iTunes 10.7.0.21 and the iSO devices were updated to iOS vrsion 6.01.  Three PC's are wired and all are running Windows 7.  There also is a Windows Home Server connected to the router by ethernet port.  It does not run iTunes but does provide WebDAV services to my iOS devices.  This works fine.  Two PC's are wireless, one running Windows 7 and one running Windows 8.  All of the PC's are connected to the same (new) router via it's ethernet ports and it's wireless access point.  Two of the wired PC's are connected via a high-speed  ethernet hup that is connected to the router (Home Sharing works fine between the two PC's on the hub and the PC on the router).  All wired and wireless devices on the router are visible and members of the router's Home/Office virtual network.
    All of the PC's are visible in the Windows network and all shared files are accessable from all PC's, both wired and wireless.
    Obviously the router seems to be the issue, something between the ethernet and the wireless access point components.  I checked the settings and found nothing that would prevent Home Sharing between the wired and wireless devices.  There is no setting that isolates the wireless network.  I have done the following:
    Read the router user manual and checked all the settings
    Rebooted the router and tested.
    Turned off the router's firewall and tested.
    Home Sharing is turned on all the devices and all use the same Apple ID.
    Restarted iTunes and tested.
    Verified iTunes is "Allowed" in each PC's firewall.
    Again, I can Home Share between the two wireless PC's but not between either of the wireless PC's and any of the wired PC's.  I can Home Share between my iPads and iPhones and either of the two wireless PC's but not with any of the wired PC's.  I can Home Share between any of the wired PC's but not between any wired PC and a wireless PC or iOS device.
    I hope someone may have had a similar problem and has a fix suggestion.  I'm stumped!  I have a;so contacked ActionTec and awaiting an answer.

    Solution from ActionTec is:
    Log into your router.
    Click the Advanced icon
    Cclick Yes
    Click on the IGMP Proxy
    Select Disable
    Click Apply

  • I turned of iMessage and now I want it back on and it's not working, I have changed my password and now I don't know what to do. Is there something obvious I am doing wrong?

    I turned of iMessage and now I want it back on and it's not working, I have changed my password and now I don't know what to do. Is there something obvious I am doing wrong? I have done this on both of my iPads and it hasn't let me go back on to iMessage on either of them.

    iCloud System Status
    Current
    iCloud: iMessage - Users Affected: Some
    11/18/2012 13:34 PSTUsers are unable to use iMessage. Normal service will be restored ASAP.
    iCloud: FaceTime - Users Affected: Some
    11/18/2012 13:33 PSTUsers may be unable to place FaceTime calls. Normal service will be restored ASAP.
    http://www.apple.com/support/icloud/systemstatus/

Maybe you are looking for