你的网站目录必须是everyone完全访问,其实也不是,只要把iis用户权限给够就行了。

解决方案 »

  1.   

    图片文件的权限问题,授予iuser……用户访问图片的权力(属性里)
      

  2.   

    kanshangren(槛上人) :我照你说的配了,我在控制面板-->用户-->iuser-->赋予Users角色,然后控制面板-->计算机管理-->在IIS中去掉Windows集成, 问题解决了.可仍有一小部分图片显示为叉号(大部分都显示出来了),右键点"显示图片"才会显示出来.这是为什么?
      

  3.   

    authTicket = CreateAuthTicket(txtUserID.Text, CStr(viewstate("roles")), False)
                            authCookie = CreateAuthCookie(authTicket)
                            HttpContext.Current.Response.Cookies.Add(authCookie)
     Private Function CreateAuthTicket(ByVal userName As String, ByVal roles As String, _
            ByVal persistent As Boolean) As FormsAuthenticationTicket
            Return New FormsAuthenticationTicket(1, userName, DateTime.Now, _
                DateTime.Now.AddMinutes(60), persistent, roles)
        End Function   
        Private Function CreateAuthCookie(ByVal authTicket As FormsAuthenticationTicket) As HttpCookie
            Return New HttpCookie(FormsAuthentication.FormsCookieName, _
                FormsAuthentication.Encrypt(authTicket))
        End Function
      

  4.   

    把web.config的验证方式设为"Windows"
      

  5.   

    图片路径完全正确的,如果不正确,那么我右键"显示图片"也一样显示不出来.验证方式要是设为"windows",那就无法在internet上发布了.
      

  6.   

    验证方式要是设为"windows",无法在internet上发布??
    我做的怎么可以??把你aspx的html代码贴一个出来看看!