Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ASP.NET Web应用程序项目中的UseCustomServer和UseCustomServerUrl是什么?_Asp.net_Asp.net 3.5 - Fatal编程技术网

ASP.NET Web应用程序项目中的UseCustomServer和UseCustomServerUrl是什么?

ASP.NET Web应用程序项目中的UseCustomServer和UseCustomServerUrl是什么?,asp.net,asp.net-3.5,Asp.net,Asp.net 3.5,ASP.NET Web应用程序项目中的UseCustomServer和UseCustomServerUrl是什么 一些背景:我从一家供应商那里得到了最新版本的解决方案。我在网站项目文件中添加了一些文件。当我构建解决方案时,以下标记被添加到WebSite.csproj文件中 <UseCustomServer>False</UseCustomServer> <CustomServerUrl> </CustomServerUrl> False 我

ASP.NET Web应用程序项目中的UseCustomServer和UseCustomServerUrl是什么

一些背景:我从一家供应商那里得到了最新版本的解决方案。我在网站项目文件中添加了一些文件。当我构建解决方案时,以下标记被添加到WebSite.csproj文件中

<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>  
False

我很犹豫是否要用这些添加的标记重新检入项目文件。但我不想在每次向项目添加文件时都用文本编辑器来删除标记,从而干扰项目文件。这些标签会以某种方式损害供应商的构建吗?为什么我的构建要添加标签?我正在使用ASP.NET3.5SP1。谢谢

我已设置为使用IIS;这些标签在我的项目中。因为它们是空白的,所以应该可以。UseIIS标记有一个真值,因此它知道如何使用此选项。自定义服务器URL是可以设置的项目设置(web项目设置>web选项卡)


HTH.

要扩展Brian的答案-当您运行/启动调试(F5)ASP.NET项目时,有三个选项可供使用哪个服务器托管代码-

  • VisualStudio的开发服务器
  • 非法移民
  • 您自己的自定义服务器,由您自己运行和设置
  • 这些标签与第三个选项相关。默认情况下,UseCustomServer=False,因此在其中进行检查不会产生任何影响