我只需要使用TFS构建创建Web Deployement包,并且不希望在IIS中自动部署它.
我在Build Definition - > MSBuild Arguments中添加了以下两个参数
/ p:CreatePackageOnPublish = true/p:DeployOnBuild = true
问题是我没有在丢弃位置获取ZIP文件并得到以下错误.
C:\ Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1657):"MapUriToIisWebServer"任务意外失败.System.Runtime.InteropServices.COMException(0x80005000):
位于系统的System.DirectoryServices.DirectoryEntry.get_IsContainer()的System.DirectoryServices.DirectoryEntry.Bind()处的System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)中的未知错误(0x80005000)位于Microsoft.Web.Publishing.Tasks.MapUriToIisWebServer.Execute的Microsoft.Web.Publishing.Tasks.MapUriToIisWebServer.get_IisMajorVersion()的System.DirectoryServices.DirectoryEntries.Find(String name,String schemaClassName)中的.DirectoryServices.DirectoryEntries.CheckIsContainer() )在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,taskHost taskHost,ItemBucket桶,TaskExecutionMode howToExecuteTask,布尔逻辑taskResult)
可能是什么问题?
现在我得到了不同的错误
错误:Web部署任务失败.(无法创建"清单"类型的对象和路径'e:\ TFS\Dev\ApplicationName\Binaries\Release_PublishedWebsites\ApplicationName_Package\ApplicationName.SourceManifest.xml'.)
错误:无法创建"清单"类型的对象和路径"e:\ TFS\Dev\ApplicationName\Binaries\Release_PublishedWebsites\ApplicationName_Package\ApplicationName.SourceManifest.xml".
错误:清单'sitemanifest'中的一个或多个条目无效.
错误:站点"默认网站"中不存在应用程序"/ ApplicationName".
我试图在jqgrid列中创建复选框并使用下面的代码
{
name: 'CanDo', width: 50, index: 'CanDo',
edittype: 'checkbox', editoptions: { value: "True:False" },
formatter: "checkbox", formatoptions: { disabled: true}
}
Run Code Online (Sandbox Code Playgroud)
Json对象返回"True"或"False"
但复选框本身不是在网格中创建的.会是什么问题?
请帮忙.
编辑:使用jquery.jqGrid.BasicOnly.min.js 4.1.2
$("#pGrid").jqGrid({
datastr: '@Html.Raw(@Model.PList)',
datatype: 'jsonstring',
colNames: ['id','CanDo' ,'Name'],
colModel: [
{ name: 'id', hidden: true },
{ name: 'CanDo', width: 50, index: 'CanDo',editable: true, edittype: 'checkbox', editoptions: { value: "True:False" }, formatter: "checkbox", formatoptions: { disabled: true},
{ name: 'Name', width: 150 }
],
pager: '#pager',
rowNum: 100,
height: "200",
viewrecords: true,
caption: …Run Code Online (Sandbox Code Playgroud) 按长度排序在 WITH 子句中不起作用。
;WITH Invalids AS
(
SELECT TOP 1 WITH TIES
GroupNumber,
RTRIM(Address1) Address1,
RTRIM(Postcode) Postcode
FROM dbo.LoadData WHERE GroupNumber NOT IN
(
'000','016','018','025','044','048','049','053','054','055','060','064','067','069','071','073'
)
ORDER BY ROW_NUMBER() OVER (PARTITION BY GroupNumber ORDER BY LEN(Address1) DESC, LEN(Postcode) DESC )
)
UPDATE dbo.LoadData
SET
Valid = 0,
Reason = Reason + 'Bad address; '
WHERE GroupNumber =
(
SELECT GroupNumber FROM Invalids WHERE LEN(Address1) = 0 OR LEN(Postcode) = 0
Run Code Online (Sandbox Code Playgroud)