OSQL [Shared Memory] error from C#

  • Thread starter Thread starter Zeya
  • Start date Start date
Z

Zeya

I am executing OSQL using System.Diagnostic.Process with the following
parameters:

-S <servername> -E -Q "BACKUP DATABASE <databasename> to
DISK='E:\Temp\Now.bak'"

This works from command line but when I execute this from my ASP.Net
app it shows this error:

[Shared Memory]SSL Security error

[Shared Memory]ConnectionOpen (SECDoClientHandshake()).

Picked the message from StandardOutput.ReadToEnd()

Exit code for the process is 1.

Tried this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;309398

But did not help.

ASP.Net app is running under windows authentication mode.

Web.config:
<authentication mode="Windows" />
<identity impersonate="true" />

Any suggestions?

Thanks.
 
use osql's [-U login id] [-P password] command line flags to specify
valid credentials.

Willy.
 
Thanks Willy. That did not work either. That in combination and
independent impersonation did not help either.
 
Back
Top