http://url is already routed to the Default zone of another application. Remove that mapping or use a different URL

      在Moss 2007 开发中遇到的问题及解决方案:

      问题:在CA中创建已删除的web application的时候,出现“http:// is already routed to the Default zone of another application. Remove that mapping or use a different URL”;

      原因:将开发好的solution builder成wsp包然后部署,在运行这个程序时候有异常(我的程序功能是在当前站点上创建子网站和list),异常我try{}catch{}掉了,程序执行完毕,但并没有完成我要的功能,于是删掉当前web application(其实只要卸载wsp包,然后修改代码重新生成wsp包,最后部署就可以了。我这里只是项目的需要,才删除web application的),然后重新创建 web application,于是报错“http:// is already routed to the Default zone of another application. Remove that mapping or use a different URL”.

     解决方案:

     1.在CA里面Operations------Alternate access mappings里面删除已存在的刚刚删掉的web application的链接(这一步一定要做,否则无法重新创建这个web application);

     2.在solution中处理异常问题,然后重新打包部署(只有这样才能从根本上解决问题)。

原文地址:https://www.cnblogs.com/qixing_gan/p/2769626.html