Search results for query: *

  1. Adagio

    Start process with local user

    I don't know the specifics, our system administrators knows more about it and they said it's not possible to only give them permission to do this specific thing. But I agree, in most cases when it looks like something needs admin rights, it doesn't actually need it but just asks for it to be on...
  2. Adagio

    Start process with local user

    Just standalone
  3. Adagio

    Start process with local user

    Except that it's not our application that needs administrator rights, it's a 3rd party application which we trust Which is fine for us, considering we do have the Administrator passwords for all the PC's which needs this application As mentioned above a few times, this is not the case. We do...
  4. Adagio

    Start process with local user

    I know where you're getting at, but the problem is that this app that needs to run with Administrator rights is needed for our users to do their job. The only other option we have is to give our users the Administrator password of their work computer, but for obvious reasons that's not a good...
  5. Adagio

    Start process with local user

    As probably many has done before me, I'm trying to start another application with elevated rights. I have tried many different things, but so far I have only gotten it working with domain Administrators Here's the code I have seen posted most places: Function ConvertToSecureString(ByVal str...
  6. Adagio

    Question How to cast an object into its type?

    Nobody who has any idea?
  7. Adagio

    Question How to cast an object into its type?

    I'm having a bit of a problem here, hoping a nice person here can help me out I have a method which receives an object as parameter. This object is always of a class I have created, it will never be something simple as string, integer, etc In my simple example I have created a class called...
  8. Adagio

    Listview doesn't update selected index count

    Thanks After some more digging I could see the problem only occurred in my specific situation. I still haven't found an explanation, but at least I found a solution The actual situation in my project was like this: I had two forms, frmX and frmY. frmY is the form with the listview and frmX is...
  9. Adagio

    Listview doesn't update selected index count

    Anybody who has any idea on what to do here? When I try to set an item to be selected programmatically, I have noticed that is only visually it is selected. If I set an item to be selected and clicks on the arrow down key, the listview seems to think that it is the first item in the listview...
  10. Adagio

    Console application quits unexpectedly

    Do'h, can't see how I could have missed that :eek2: Thanks, that solved the problem :)
  11. Adagio

    Console application quits unexpectedly

    I just tried to delete pretty much anything in the ExcelTools module and the problem still occurs when calling it In the ExcelTools module I only have the CreateExcelFile sub which now looks like this: Public Sub CreateExcelFile() Try Dim i As Integer = 0...
  12. Adagio

    Console application quits unexpectedly

    I just started working on a new console application (sooner or later it will be changed to a service application, but during test it runs as console application) The problem is the application quits unexpectedly. No exceptions are thrown or anything I have added many breakpoints and I'm trying...
  13. Adagio

    Question Get registry value - x86

    I have found a solution to the problem. On our server we had Office 2010 64bit installed. When installing 32 bit Office it works just fine :)
  14. Adagio

    Question Get registry value - x86

    I have been searching for a way to retrieve the full path for Outlook.exe and have managed to do it like this: Public Function GetOutlookPath() As String Return My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE", "Path"...
  15. Adagio

    Question How to debug when exception is thrown in designer?

    Most people here have probably seen this error before: "to prevent possible data loss before loading the designer, the following errors must be resolved" Currently I'm battling with a situation where I can't seem to find a solution. When I open design view for the form I get the following two...
  16. Adagio

    Interop Outlook not working (Retrieving the COM class factory)

    I have a feeling that this might be because PIA has not been installed I have set the requirements to include Office 2010 PIA, but EVERYTIME I start the setup for my application from my published location, the setup says that PIA needs to be installed. I say yes and the progress bar goes...
  17. Adagio

    Interop Outlook not working (Retrieving the COM class factory)

    After using Google to find a solution I can see that many people have the same problem as I have, but unfortunately I haven't had any luck at all finding a solution :( Here's a quick overview of the situation: I'm developing a ClickOnce application (in vb.net). In my project I have added...
  18. Adagio

    Question Process.Start with local user

    Let's put it this way: If I log onto the computer as the user I'm trying to execute a program as through my program, then I have no problems going to the \temp\ folder and execute TheTimer.exe So the user has all the rights needed. The user also has write permission to the folder, even though...
  19. Adagio

    Question Process.Start with local user

    Thanks for the tip, unfortunately I have already tried setting the WorkingDirectory as you say with UseShellExecute set to false. Gives me the same result And thanks for the tup on how to reduce the code, can't believe I didn't see that myself :)
  20. Adagio

    Question Process.Start with local user

    I have also tried to login on the server with the local username and password. From here there is no problems running C:\Temp\TheTimer.exe But running the above program still gives me the same error
Back
Top