大佬教程收集整理的这篇文章主要介绍了asp.net – 构建成功,但发布失败,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
------ Build started: Project: ELMS,Configuration: Debug Any CPU ------ Build started 8/1/2011 3:08:03 Pm. GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. _CopyOutOfDatesourceItemsToOutputDirectoryAlways: Copying file from "C:\SVN\TrakNet\trunk\MTS\lib\Newtonsoft.Json.Net35.dll" to "bin\lib\Newtonsoft.Json.Net35.dll". CopyFilesToOutputDirectory: LMS -> C:\SVN\TrakNet\trunk\MTS\bin\LMs.dll Build succeeded. Time Elapsed 00:00:00.04 ------ Publish started: Project: LMS,Configuration: Debug Any CPU ------ Object reference not set to an instance of an object. ========== Build: 1 succeeded or up-to-date,0 failed,0 skipped ========== ========== Publish: 0 succeeded,1 failed,0 skipped ==========
这是在尝试发布到本地主机(为了调试目的)
以下是我使用的发布资料的设置:
Publish Method: Web Deploy service URL: localhost Site/application: default web site/ELMS [x] Mark as IIS application on desTination [x] Leave extra files on desTination (do not Delete)
我已经尝试过:
- Cleaning/rebuilding the project - deleting the bin folder of the project - Running reg_iis.exe -i - Reinstalling VS2010
但我没有改变已经修复了错误。
任何关于可能导致该问题的洞察将非常感谢:)
编辑:
该问题实际上解决了自己,因为我上次重新启动。我必须重新启动6-7次,因为问题首先表现出来,但这次没有对象引用消息。这是现在的build / publish的日志:
------ Build started: Project: LMS,Configuration: Debug Any CPU ------ Build started 8/3/2011 9:10:12 Am. GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. _CopyOutOfDatesourceItemsToOutputDirectoryAlways: Copying file from "C:\SVN\TrakNet\trunk\MTS\lib\Newtonsoft.Json.Net35.dll" to "bin\lib\Newtonsoft.Json.Net35.dll". CopyFilesToOutputDirectory: LMS -> C:\SVN\TrakNet\trunk\MTS\bin\LMs.dll Build succeeded. Time Elapsed 00:00:00.04 ------ Publish started: Project: LMS,Configuration: Debug Any CPU ------ Gather all files from Project items @(IntermediateAssembly). Adding: bin\LMs.dll to bin\LMs.dll bin\LMs.pdb to bin\LMs.pdb Gather all files from Project items @(Content). Adding: Global.asax;lib\Newtonsoft.Json.Net35.dll;MtsscheR_116_11845@as\MtsscheR_116_11845@a.xml;Web.config Gather all files from Project output (IntermediateSatelliteAssembliesWithTargetPath). Adding: Gather all files from Project items @(ReferenceCopyLocalPaths,ReferenceComWrappersToCopyLocal,ResolvedIsolatedComModules,_DeploymentLooseManifestFile,NativeReferenceFilE). Gather all files from Project items @(AllExtraReferenceFiles). Adding: Gather all files from Project items @(_sourceItemsToCopyToOutputDirectoryAlways,_sourceItemsToCopyToOutputDirectory). Adding: bin\lib\Newtonsoft.Json.Net35.dll Gather all files from Project items @(_binDeployableAssemblies). Adding: Publish Pipeline Collect Files Phase Found The following for Config tranformation: Web.config CreaTing directory "C:\SVN\TrakNet\trunk\MTS\obj\Debug\TransformWebConfig\transformed\". Publish Pipeline Transform Phase CreaTing directory "C:\SVN\TrakNet\trunk\MTS\obj\Debug\CSAutoParameterize\transformed\". Copying Web.config to obj\Debug\CSAutoParameterize\original\Web.config. Transforming source File: C:\SVN\TrakNet\trunk\MTS\Web.config Applying Transform File: <?xml version="1.0"?> <configuration xmlns:xdt="http://scheR_116_11845@as.microsoft.com/XML-Document-Transform"> <connectionStrings> <add connectionString="{% token='$(replacableToken_#(parameter)_#(tokennumber))' xpathlocator='name' parameter='$(Name)-Web.config Connection String' description='$(Name) Connection String used in web.config by the application to access the database.' DefaultValue='$(connectionString)' tags='SqlConnectionString' %}" xdt:Transform="SetTokenizedAttributes(connectionString)" xdt:SupressWarnings="True" /> </connectionStrings> </configuration> Output File: obj\Debug\CSAutoParameterize\transformed\Web.config Transformation succeeded Auto ConnectionString Transformed Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config. CreaTing directory "obj\Debug\Package\PackageTmp". Copying all files to temporary LOCATIOn below for package/publish: obj\Debug\Package\PackageTmp. Copying bin\LMs.dll to obj\Debug\Package\PackageTmp\bin\LMs.dll. Copying bin\LMs.pdb to obj\Debug\Package\PackageTmp\bin\LMs.pdb. Copying Global.asax to obj\Debug\Package\PackageTmp\Global.asax. Copying lib\Newtonsoft.Json.Net35.dll to obj\Debug\Package\PackageTmp\lib\Newtonsoft.Json.Net35.dll. Copying MtsscheR_116_11845@as\MtsscheR_116_11845@a.xml to obj\Debug\Package\PackageTmp\MtsscheR_116_11845@as\MtsscheR_116_11845@a.xml. Copying C:\SVN\TrakNet\trunk\MTS\lib\Newtonsoft.Json.Net35.dll to obj\Debug\Package\PackageTmp\bin\lib\Newtonsoft.Json.Net35.dll. Copying obj\Debug\CSAutoParameterize\transformed\Web.config to obj\Debug\Package\PackageTmp\Web.config. Publish Pipeline Deploy phase Pre-Deploy CopyAllFilesToOneFolder Stage Generate source manifest file for Web Deploy package/publish ... CreaTing directory "obj\Debug\Database". StarTing Web deployment task from source:manifest(C:\SVN\TrakNet\trunk\MTS\obj\Debug\Package\LMs.sourceManifest.xml) to DesTination:auto(). updating filePath (default web site/LMS\bin\ELMs.dll). updating filePath (default web site/LMS\bin\ELMs.pdb). updating filePath (default web site/LMS\bin\lib\Newtonsoft.Json.Net35.dll). updating filePath (default web site/LMS\lib\Newtonsoft.Json.Net35.dll). updating filePath (default web site/LMS\Web.config). updating setAcl (default web site/LMS). updating setAcl (default web site/LMS). successfully executed Web deployment task. Publish is successfully deployed. ========== Build: 1 succeeded or up-to-date,0 skipped ========== ========== Publish: 1 succeeded,0 skipped ==========
就像我说的:不知道有什么改变。我已经手动将DLL移动到网站的虚拟目录,然后只是为了踢我今天早上尝试发布,一切都很好。
以上是大佬教程为你收集整理的asp.net – 构建成功,但发布失败全部内容,希望文章能够帮你解决asp.net – 构建成功,但发布失败所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。