Pergunta

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?

Foi útil?

Solução

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

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top