none
error when i start windows application .error found !! timeout expired.

    Question

  • error is comming when i start windows application .

    error found !! timeout expired. the timeout period elapsed prior to completion of the operation or the server is not responding

    but if i copy folder from c:/program file/myapplication and paste it on D:/ drive and start the application its working. fine but not from start menu and desktop shortcut.

    please help it's urgent.

    thank u very much. in Advance.

    error is comming when i start windows application .

    error found !! timeout expired. the timeout period elapsed prior to completion of the operation or the server is not responding

    but if i copy folder from c:/program file/myapplication and paste it on D:/ drive and start the application its working. fine but not from start menu and desktop shortcut.

    please help it's urgent.

    thank u very much. in Advance.

    Wednesday, September 14, 2011 11:15 AM

Answers

  • Does the application work correctly when right-clicking the shortcut and selecting "Run as administrator"? If it does, then your application needs to request elevation when launched. This can be done through a manifest: http://msdn.microsoft.com/en-us/library/bb756929.aspx


    Cosmin Pirvu
    My blog | Contact me
    Please remember to mark the replies as answers if they help.
    • Marked as answer by Shinde San Friday, September 16, 2011 4:43 AM
    Wednesday, September 14, 2011 1:32 PM
  • The normal solution is an elevation manifest, as Cosmin says. Here's another link:

    http://community.bartdesmet.net/blogs/bart/archive/2006/10/28/Windows-Vista-_2D00_-Demand-UAC-elevation-for-an-application-by-adding-a-manifest-using-mt.exe.aspx 

    If the program requires admin privilege then it requires admin privilege. If your boss insists that you find another way then:

    a) If he's asking you how a non admin can run a program elevated to access items that are not available to limited users, then he's asking you to find a way to break Windows security. Good luck, and your boss needs some education.

    b) Find out why the program needs admin privilege and change it so it doesn't, and hopefully it will still work if it really does not require access to secured items.


    Phil Wilson
    • Marked as answer by Shinde San Friday, September 16, 2011 4:42 AM
    Thursday, September 15, 2011 5:29 PM
    Moderator
  • i got another soltuion here is the very perfect to my requirement to me

     

    http://stackoverflow.com/questions/2282448/windows-7-and-vista-uac-programatically-requesting-elevation-in-c

    • Marked as answer by Shinde San Friday, September 16, 2011 4:47 AM
    Friday, September 16, 2011 4:46 AM

All replies

  • Does the application work correctly when right-clicking the shortcut and selecting "Run as administrator"? If it does, then your application needs to request elevation when launched. This can be done through a manifest: http://msdn.microsoft.com/en-us/library/bb756929.aspx


    Cosmin Pirvu
    My blog | Contact me
    Please remember to mark the replies as answers if they help.
    • Marked as answer by Shinde San Friday, September 16, 2011 4:43 AM
    Wednesday, September 14, 2011 1:32 PM
  • Does the application work correctly when right-clicking the shortcut and selecting "Run as administrator"? If it does, then your application needs to request elevation when launched. This can be done through a manifest: http://msdn.microsoft.com/en-us/library/bb756929.aspx



    hai Cocmin pirvu,

    i checked in msdn but not helped can u tell me othere solution.

     

     

    Thursday, September 15, 2011 5:31 AM
  • Did you try the "Run as administrator" option?
    Cosmin Pirvu
    My blog | Contact me
    Please remember to mark the replies as answers if they help.
    Thursday, September 15, 2011 6:13 AM
  • yes

    its working.... with "Run as administrator" option

    but boss want another solution....

    Thursday, September 15, 2011 7:13 AM
  • The normal solution is an elevation manifest, as Cosmin says. Here's another link:

    http://community.bartdesmet.net/blogs/bart/archive/2006/10/28/Windows-Vista-_2D00_-Demand-UAC-elevation-for-an-application-by-adding-a-manifest-using-mt.exe.aspx 

    If the program requires admin privilege then it requires admin privilege. If your boss insists that you find another way then:

    a) If he's asking you how a non admin can run a program elevated to access items that are not available to limited users, then he's asking you to find a way to break Windows security. Good luck, and your boss needs some education.

    b) Find out why the program needs admin privilege and change it so it doesn't, and hopefully it will still work if it really does not require access to secured items.


    Phil Wilson
    • Marked as answer by Shinde San Friday, September 16, 2011 4:42 AM
    Thursday, September 15, 2011 5:29 PM
    Moderator
  • i got another soltuion here is the very perfect to my requirement to me

     

    http://stackoverflow.com/questions/2282448/windows-7-and-vista-uac-programatically-requesting-elevation-in-c

    • Marked as answer by Shinde San Friday, September 16, 2011 4:47 AM
    Friday, September 16, 2011 4:46 AM
  • Hi sandipraj21,


    Thank you for posting in the MSDN forum.

    And I’m glad to hear that you resolve this issue. And thank you for sharing your solutions and experience here. It will be very beneficial for other community members who have similar questions.

    If you have any difficulty in future programming, we welcome you to post here again.


    Helen Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, September 16, 2011 5:50 AM