更新我自己的 nuget 服务器结果 "A route with the resolved virtual path '~/nuget' has already been added"

Updating my own nuget server results in "A route with the resolved virtual path '~/nuget' has already been added"

我运行正在使用 2.7 版的 Nuget 服务器,我想将它更新到可用的最新版本。

更新工作正常。但是当我尝试 运行 更新版本时,我得到这个错误:

“/EM-Nugets-Alpha”应用程序中的服务器错误。

已添加具有已解析虚拟路径“~/nuget”的路由。 参数名称:虚拟路径 说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

异常详细信息:System.ArgumentException:已添加具有已解析虚拟路径“~/nuget”的路由。 参数名称:virtualPath

来源错误:

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 



[ArgumentException: A route with the resolved virtual path '~/nuget' has already been added.
Parameter name: virtualPath]
   System.ServiceModel.Activation.ServiceRouteHandler.AddServiceInfo(String virtualPath, ServiceDeploymentInfo serviceInfo) +120399
   System.ServiceModel.Activation.ServiceRoute..ctor(String routePrefix, ServiceHostFactoryBase serviceHostFactory, Type serviceType) +67
   NuGetServer.NuGetRoutes.MapRoutes(RouteCollection routes) +96

[HttpException (0x80004005): A route with the resolved virtual path '~/nuget' has already been added.
Parameter name: virtualPath]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12949749
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): A route with the resolved virtual path '~/nuget' has already been added.
Parameter name: virtualPath]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12966756
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12806561

我对这类错误还不够熟悉,欢迎提出建议。

最后发现问题:我的项目名称太接近Nuget.Server

使用远离 Nuget.Server 的名称,服务器会按原样重新启动 运行。