是不是权限的问题(ASP.NET权限)?

解决方案 »

  1.   

    http:\\localhost\1.aspx??
    http://localhost/1.aspx
      

  2.   

    我一般的做法是先Get一次把ViewState里面的值取回来,再用Post
      

  3.   

    原来的是个变量,我为了让看贴的看明白才改的
    关键是下面那句呀
    http://localhost/1.aspx
      

  4.   

    现在问题更进了一步,如果请求的aspx页在另一台windows2000上,则运行正常,现在问题转移到服务器端,即响应方了WrRequest = WebRequest.Create("http://其他机器/1.aspx") 为什么1.aspx在2003下就会有错误呢,到底是哪个地方需要设置呢
      

  5.   

    try to change your IIS to allow anonymous user to access ,
      

  6.   

    请在WrRequest.ContentType = "application/xml;charset=utf-8" 下面添加如下代码试一试(我使用的是C#代码,请做适当的转换)。CredentialCache credentialCache = new CredentialCache();  
    credentialCache.Add(new Uri(http://localhost/1.aspx), "Basic", new NetworkCredential("random_username", "random_password"));  
    WrRequest.Credentials = credentialCache;  
    ...