网站加端口号,就显示查找不到资源
private static string UrlSuffix
{
get
{
return HttpContext.Current.Request.Url.Host +HttpContext.Current.Request.Url.Port
+ HttpContext.Current.Request.ApplicationPath;
}
}
public static String UrlBase
{
get
{
return @"http://" + UrlSuffix;
}
}
我是用上面的UrlBase做当前目录,然后RecordsManLink =PathPrefix + "/RecordsMan.aspx";
这样建立连接
问题: 同样的配置,设置为默认网站就一切ok,可一旦设置了端口,就会出现问题!