up一下,我终于知道up的意思了:)
actpvc.帮我看看好吗?]
只要是.net 的应用程序映射,都有弹出那个该死的验证框

解决方案 »

  1.   

    我用的是.net Framework beta 2
    到底是什么用户来启动 .net 的应用程序呢?
    就像sql server  需要专门一个用户启动一样。
    估计是 启动.net应用程序的那个用户出错了。
      

  2.   

    加多一条:在服务器上使用 http://localhost/group/upload/upload.aspx 里不会弹出验证框。
    但是直接指定IP或使用 127.0.0.1 会弹出。好像就是权限问题哦。但是asp文件都不会。到底我该在哪里设置呢?
      

  3.   

    感谢使用微软产品。IIS服务器的权限认证由自身来管理,关于标准ASP.NET的认证机制是配置在web.config文件中。由于您描述的比较复杂,目前很难确定问题。
    如果可能的话,可否将您的代码简化的贴一下,再描述一下要实现的功能。我们可以帮您进行一下测试工作。======================
    - 微软全球技术中心VC技术支持本贴子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
    为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
    ======================
      

  4.   

    谢谢你的回复:
    目前的详细情况是这样的:
    1.可能由于hacker攻击,那台服务器突然在请求所有.net应用程序映射的文件时(.cs,.aspx等等),都会弹出 " Enter Network Password",而不管服务吕有没有这个文件存在,只有输入该机器上的一个用户名及密码后,才会告诉用户有没有这个文件,如果用,则可以正常执行该文件。
    2.重装.net Framework没有任何作用,以前出现过,重装操作系统才能解决。
    我测试过,只有使用 localhost/test.aspx时才不要求验证,而使用 127.0.0.1/test.aspx都需要验证的。
    3.其它的asp应用不需要验证的。
    4.asp.net的应用所在的目录IUser有读的权限的。
    5.IIS已经设置可以匿名访问的。
    6.另外我们常常会出现一个警告框:Inetinfo.exe某个内存地址不能为written或read的情况。该情况绝对是由.net引起的,严重时可能导致 IIS停止所有服务。只有在确定那个警告框后几十秒后IIS 及.net才会重新恢复正常(在访问量稍稍大的时候,也可能是有人攻击导致)
    7.该应用只做用户图片上传工作,如果用户验证通过,则将他们的图片上传到一个特定的目录里.我们也只是用来测试.net,并没有做其它大型应有。
    8.下面是web.config的所有内容:绝大部分是default值的
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        
      <system.web>    <!--  DYNAMIC DEBUG COMPILATION
              Set compilation debug="true" to enable ASPX debugging.  Otherwise, setting this value to
              false will improve runtime performance of this application. 
              Set compilation debug="true" to insert debugging symbols (.pdb information)
              into the compiled page. Because this creates a larger file that executes
              more slowly, you should set this value to true only when debugging and to
              false at all other times. For more information, refer to the documentation about
              debugging ASP.NET files.
        -->
        <compilation 
             defaultLanguage="c#"
             debug="false"
        />    <!--  CUSTOM ERROR MESSAGES
              Set mode="on" or "remoteonly" to enable custom error messages, "off" to disable. Add
              <error> tags for each of the errors you want to handle.
        -->
        <customErrors 
        mode="Off" 
        />     <!--  AUTHENTICATION 
              This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", 
              "Passport" and "None"
        -->
        <authentication mode="None" />     <!--  APPLICATION-LEVEL TRACE LOGGING
              Application-level tracing enables trace log output for every page within an application. 
              Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
              trace information will be displayed at the bottom of each page.  Otherwise, you can view the 
              application trace log by browsing the "trace.axd" page from your web application
              root. 
        -->
        <trace
            enabled="false"
            requestLimit="10"
            pageOutput="false"
            traceMode="SortByTime"
    localOnly="true"
        />    <!--  SESSION STATE SETTINGS
              By default ASP.NET uses cookies to identify which requests belong to a particular session. 
              If cookies are not available, a session can be tracked by adding a session identifier to the URL. 
              To disable cookies, set sessionState cookieless="true".
        -->
        <sessionState 
                mode="InProc"
                stateConnectionString="tcpip=127.0.0.1:42424"
                sqlConnectionString="data source=127.0.0.1;user id=sa;password="
                cookieless="false" 
                timeout="20" 
        />    <!--  PREVENT SOURCE CODE DOWNLOAD
              This section sets the types of files that will not be downloaded. As well as entering
              a httphandler for a file type, you must also associate that file type with the aspnet_isapi.dll
              in the App Mappings property of the web site, or the file can be downloaded.
              It is recommended that you use this section to prevent your sources being downloaded.
        -->
        <httpHandlers>
                <add verb="*" path="*.vb" type="System.Web.HttpNotFoundHandler,System.Web" />
                <add verb="*" path="*.cs" type="System.Web.HttpNotFoundHandler,System.Web" />
                <add verb="*" path="*.vbproj" type="System.Web.HttpNotFoundHandler,System.Web" />
                <add verb="*" path="*.csproj" type="System.Web.HttpNotFoundHandler,System.Web" />
                <add verb="*" path="*.webinfo" type="System.Web.HttpNotFoundHandler,System.Web" />
        </httpHandlers>    <!--  GLOBALIZATION
              This section sets the globalization settings of the application. 
        -->
        <globalization 
                requestEncoding="utf-8" 
                responseEncoding="utf-8" 
       />
       
     </system.web></configuration>
    //----------------------------------------
    我的电子邮件地址: [email protected]
    非常感谢!!
      

  5.   

    再 up 一下。
    acptvc(微软全球技术中心 VC技术支持)
    我等得花都谢了。
    555555555
    能给我个结果吗??
    万分感谢!!
      

  6.   

    继续等待,苦苦等待。
    是不是我资料太少啦。我的源代码很简单呀。
    acptvc,能帮帮我吗?
    如果我资料不够,干脆我将我所有的源代码提供下载吧。
      

  7.   

    经过我在本机胡乱测试,终于我的机器也出现了那个对话框。而且(localhost访问也会)。呵呵。
    原因是我将aspnet_isapi.dll那个文件的访问权限设置为拒绝所有用户。
    但在我重新启动才生效。我设置回可以访问后,不用重新启动就生效。
    我再拒绝所有人访问后,登出没有生效,没有时间重新启动了。
    我在那台服务器上设置后,我想也得重新启动也得生效,可惜那台服务器起不来了。又谋杀了我一个休息日。
    等去了机房再报告结果吧.
      

  8.   

    我已经解决这个问题了。
    不过 inetinfo.exe内存不能为读一直有出现。
    这个肯定是bug来的。
    各位大哥:如果你发现一个 .net做的网站请求aspx文件一直在状态栏显示 opening...什么的。那个网站也一定出现这个问题啦。
    .net 想说爱你真的不容易。那个权限怎么解决呢: 不要拒绝 .net 所在上当上的 aspnet_isapi.dll aspnet 用户对它读及运行的权限.
    在经理今天上午解决全面放弃 .net  之后,我单独跑到机房作了最后的尝试。呵呵。终于有个自己的星期天了,买菜去了,东门去了。
    各位周末快乐