单击ASP.NET应用程序中的按钮后 process.start() 使用参数运行Edmgen工具。我发现错误: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();

如何解决这个问题?

有帮助吗?

解决方案

您需要将完整的路径传递到已写入输出的文件夹。

其他提示

好吧,错误表明您无法访问“ C: Program Files Common Files Microsoft共享 DevServer 10.0 nwd.ssdl”。

检查您的过程是否在文件和树上的所有文件夹上都具有必要的权限。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top