PWA 中的新项目回报 "InvalidProjectName"
new project in pwa reurn "InvalidProjectName"
我正在尝试在 PWA 中创建一个新项目,但收到此错误:
"ProjectNameInvalid".
这是我的代码:
projContext = new ProjectContext(pwaPath);
projContext.Credentials = new System.Net.NetworkCredential(username, pass, domain);
ProjectCreationInformation newProj = new ProjectCreationInformation
{
Id = Guid.NewGuid(),
Name = "1.1. سفارشات",
Description = "تولید شده به صورت خودکار",
Start = DateTime.Today.Date,
EnterpriseProjectTypeId = GetEptUid("Enterprise Project")
};
PublishedProject newPublishedProj = projContext.Projects.Add(newProj);
QueueJob qJob = projContext.Projects.Update();
JobState jobState = projContext.WaitForQueue(qJob, timeoutSeconds);
it is not because of persian characters, i created many projects
with persian characters before.
姓名有标准格式吗?或任何禁止使用的字符?
似乎不允许使用句点。查看 Project Server error codes,在错误代码 GeneralInvalidCharacters = 20012
下显示:
Some characters are not valid. In addition to the TAB character, the
following characters are not valid in a project name: \ / " : ; < > |
, . ' ? * #
我正在尝试在 PWA 中创建一个新项目,但收到此错误: "ProjectNameInvalid".
这是我的代码:
projContext = new ProjectContext(pwaPath);
projContext.Credentials = new System.Net.NetworkCredential(username, pass, domain);
ProjectCreationInformation newProj = new ProjectCreationInformation
{
Id = Guid.NewGuid(),
Name = "1.1. سفارشات",
Description = "تولید شده به صورت خودکار",
Start = DateTime.Today.Date,
EnterpriseProjectTypeId = GetEptUid("Enterprise Project")
};
PublishedProject newPublishedProj = projContext.Projects.Add(newProj);
QueueJob qJob = projContext.Projects.Update();
JobState jobState = projContext.WaitForQueue(qJob, timeoutSeconds);
it is not because of persian characters, i created many projects with persian characters before.
姓名有标准格式吗?或任何禁止使用的字符?
似乎不允许使用句点。查看 Project Server error codes,在错误代码 GeneralInvalidCharacters = 20012
下显示:
Some characters are not valid. In addition to the TAB character, the following characters are not valid in a project name: \ / " : ; < > | , . ' ? * #