Deploying database from a web app
scootdawg
Posts: 5
Ok, so I'm trying to create an application that a sales person can go and fill out a form with some info and then it creates a database from that info.
Here's the code I use:
when I run the code, I get the following error:
"Red Gate SQL Packager 'ImageDB' Error: File or assembly name ImageDB.exe, or one of its dependencies, was not found. "
I verified that the file is in the correct directory and that my process is pointing to that directory.
Does anyone know what's going on?
Thanks in advance!
Here's the code I use:
Process myProcess = new Process(); ProcessStartInfo myProcessStartInfo = new ProcessStartInfo(); myProcessStartInfo.FileName = Server.MapPath("ImageDB.exe"); myProcessStartInfo.WindowStyle = ProcessWindowStyle.Hidden; myProcessStartInfo.CreateNoWindow = true; myProcessStartInfo.UseShellExecute = false; myProcessStartInfo.RedirectStandardOutput = true; myProcessStartInfo.Arguments = "/server:dblocation /database:customerdb /username:user /password:password /quiet"; myProcess.StartInfo = myProcessStartInfo; myProcess.Start(); myProcess.WaitForExit(); StreamReader myStreamReader = myProcess.StandardOutput; string myString = myStreamReader.ReadToEnd(); Response.Write(myString); myProcess.Close();
when I run the code, I get the following error:
"Red Gate SQL Packager 'ImageDB' Error: File or assembly name ImageDB.exe, or one of its dependencies, was not found. "
I verified that the file is in the correct directory and that my process is pointing to that directory.
Does anyone know what's going on?
Thanks in advance!
Comments
Strapping fileMon to the ASP .NET worker process or using Fusion logging will probably tell you exactly which file it is trying to load.
How do I get the latest version? I think my license is still up to date.
thanks again