|
-
April 4th, 2003, 03:32 PM
#1
running c# app remotely from sql server sp
I'm getting an error when i try to run a c# application from a sql server procedure.
It runs with out a problem when i run the app by double clicking. It just errors out when im attempting to run it with xp_cmdshell.
Any ideas?
Here's part of the exception that im getting:
Unhandled Exception: System.TypeInitializationException: The type initializer for "System.Drawing.SafeNativeMethods" threw an exception. ---> System.Runtime.InteropServices.ExternalException: Failed to create system events window thread.
-
April 4th, 2003, 03:40 PM
#2
I ran into the exact same issue myself yesterday; I discovered that xp_cmdshell would not let me run any app that had a GUI, but I can run a console app just fine.
-
April 4th, 2003, 04:07 PM
#3
That fixed it... it's just annoying that the whole app didn't run just because it couldn't draw the form. I guess i should have caught the exception and ignored it....
Thanks!
-
April 7th, 2003, 11:30 AM
#4
yes, its better to use messagebox with exceptions or console write. since they are the most usefull stuffs with debuging exceptions.
Paresh
- Software Architect
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|