我有一个方法,它通过在我们的服务器上运行一个exe程序来生成许可证:
/// <summary>
/// Generate a new license
/// </summary>
public static void GenerateLicense(string Name, string EmailAddress, Licensing.Types.LicenseType Type, Licensing.Types.ProductTypes Product)
{
string Params = "\"" + Licensing.Types.LicenseTypeToString(Type) + "\" \""
+ Licensing.Types.ProductTypeToString(Product)
+ "\" \"" + Name + "\" \""
+ EmailAddress + "\"";
// Start license executable and pass in all the params
Process.Start(Settings.LicenseExecutableLocation, Params);
}
没有任何错误提示,似乎也没有执行程序(应该在服务器上生成一些文件)。可执行文件的位置(Settings.LicenseExecutableLocation)是C:\inetpub\wwwroot\licensegen.exe
,这是正确的,并且参数也是正确的(我已经打印出来了)。
我正在运行IIS7,它完全没有抛出任何错误,我需要在IIS7中更改一些设置吗?