Question

after clicking on button in asp.net application process.start() runs edmgen tool with arguments. And I catch error : alt text

var cs =ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;

    string myArgs="/mode:fullgeneration /c:\""+cs+"\"  /project:nwd /entitycontainer:SchoolEntities /namespace:SchoolModel /language:CSharp ";
    string filename= GetFrameworkDirectory() + "\\EdmGen.exe";

    ProcessStartInfo startInfo = new ProcessStartInfo(filename,myArgs);
    startInfo.UseShellExecute = false;

    //startInfo.RedirectStandardError = true;
    Process myGenProcess = Process.Start(startInfo);

    //genInfo.Text = myGenProcess.StandardError.ReadToEnd();

How to fix this?

Was it helpful?

Solution

You need to pass the full path to a folder that you have write access to for the output.

OTHER TIPS

Well the error indicates that you don't have access to "C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\nwd.ssdl".

Check that your process has the necessary permissions on the file and all the folders up the tree.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top