Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute to a C# exe fails - Access is denied
Message
From
12/10/2006 16:54:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
ShellExecute to a C# exe fails - Access is denied
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01161572
Message ID:
01161572
Views:
135
Why? Some sort of security as it seems but where to adjust?

Reproducing:
using System;
using System.IO;

class test
{
  [STAThread]
  static void Main()
  {
     using (StreamWriter wr = new StreamWriter(@"c:\temp\test.txt"))
      {
         sw.WriteLine("Hello from C#");
      }
  }
}
Compile with csc and try to ShellExecute from say VFP. Fails with error code 5.
PS: Executing account is member of Administrators. Tried ngen install too.
TIA
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Next
Reply
Map
View

Click here to load this message in the networking platform