OSQL [Shared Memory] error from C#

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.
 
W

Willy Denoyette [MVP]

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

Willy.
 
Z

Zeya

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top