把一个项目拷入到另外一个机子上,显示打不开项目,这是不是需要修改配置文件的路径阿?请问如何修改阿?我怎么找不到这个文件的路径阿?请各位高手给指点一下行吗?
------解决方案--------------------------------------------------------
打开项目的 XXX.sln文件
你会发现一些path的地方,跟着修改吧
vs2005 的格式
Project( "{E24C65DC-7377-472B-9ABA-BC803B73C61A} ") = "C:\...\WebSite6\ ", "..\..\WebSites\WebSite6\ ", "{74C54DC0-536B-443B-86D7-F98953792F5A} "
ProjectSection(WebsiteProperties) = preProject
Debug.AspNetCompiler.VirtualPath = "/WebSite6 "
Debug.AspNetCompiler.PhysicalPath = "..\..\WebSites\WebSite6\ "
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\WebSite6\ "
Debug.AspNetCompiler.Updateable = "true "
Debug.AspNetCompiler.ForceOverwrite = "true "
Debug.AspNetCompiler.FixedNames = "false "
Debug.AspNetCompiler.Debug = "True "
Release.AspNetCompiler.VirtualPath = "/WebSite6 "
Release.AspNetCompiler.PhysicalPath = "..\..\WebSites\WebSite6\ "
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\WebSite6\ "
Release.AspNetCompiler.Updateable = "true "
Release.AspNetCompiler.ForceOverwrite = "true "
Release.AspNetCompiler.FixedNames = "false "
Release.AspNetCompiler.Debug = "False "
VWDPort = "5011 "
EndProjectSection
EndProject
------解决方案--------------------------------------------------------
2003还是2005?
2003必须在IIS里配置并保证在IIS里能正常访问,虚拟目录名要和你的工程名一样噢。
2005只要有文件夹,就能打开网站。
------解决方案--------------------------------------------------------
要是vs2003, 也是修改.sln文件 和 .webinfo 文件中的地址!
------解决方案--------------------------------------------------------
你考的目录可能不对.
------解决方案--------------------------------------------------------
对,
应该是路径不对吧,
lz在试试看