are you sure you have those directories set up? show your directory structures and your own web.config

解决方案 »

  1.   

    我是把项目默认生成的bin目录改名为bin3然后在配置文件中加入:
     <runtime>
         <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
             <probing privatePath="bin3"/>
         </assemblyBinding>
     </runtime> 
    总是出错:未能加载类型
    ================
    配置文件<?xml version="1.0" encoding="utf-8" ?>
    <configuration>    
      <system.web>
        <compilation defaultLanguage="c#" debug="true" />
        <customErrors mode="Off" /> 
        <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" />   
     </system.web> 
     <runtime>
         <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
             <probing privatePath="bin3"/>
         </assemblyBinding>
     </runtime> 
    </configuration>
    ========================
    目录结构
    项目-school
    虚拟目录-http://localhost/school/
    物理目录-C:\Inetpub\wwwroot\school
                                      \index.aspx
                                      \bin3
                                      \bin3\school.dll
                                      \common
                                      \images
          
      

  2.   

    try to reboot your web server after the change
      

  3.   

    to  luofix(枯古) 1.项目部署以后2.你试过?可行?我试了,不行.........
      

  4.   

    生成的就是dll
    但asp.net默认是从程序根bin目录找这个dll现在想将几个程序放同一个虚拟站点,置于不同文件夹
    同时将各自的dll移动,不放在虚拟站点根bin目录怎么去找?
      

  5.   

    应该是bug,我也试过不行
    不知你的asp.net是什么版,我的是1.0,1.1不知是不是还有这问题
      

  6.   

    将该dll放到web项目下的bin目录中,在web项目中添加对该dll的引用即可。
      

  7.   

    try<configuration>
       <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
             <publisherPolicy apply="yes" />
             <probing privatePath="bin;bin2\subbin;bin3"/>
          </assemblyBinding>
       </runtime>
    </configuration>
      

  8.   

    try to rename your bin to "bin2", try to access your page to see what happens, then use<configuration>
       <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
             <publisherPolicy apply="yes" />
             <probing privatePath="bin2"/>
          </assemblyBinding>
       </runtime>
    </configuration>then try again to see if you can access those pages
      

  9.   

    还是错误..--
    分析器错误信息: 未能加载类型“nethard.Global”。
    --
    就是没有找到nethard.dll
    原名之后就好了
      

  10.   

    我是说把目录bin2改回bin就好了...
    bin2还是不行.
      

  11.   

    Asp.Net的AppDomainSetup的PrivateBinPath是由Asp.Net直接指定为"bin"的,所以machine.config里看不到有相关设置.web.config里只要设置
    <?xml version="1.0" ?>
    <configuration>
       <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
             <probing privatePath="bin2"/>
          </assemblyBinding>
       </runtime>
    </configuration>
    就可以用了。如果你那里有问题,那么你要确定你的web.config在应用程序的根目录下.
      

  12.   

    我确实是那么设置的..web.config也在应用程序根目录下
    ------------- LevinForum(forum.lostinet.com)你那边有没有配置成功?
      

  13.   

    确认有人配置成功就好了我真抓狂了...
    ===另.你那论坛不错.我在源码遍寻不到form..更别提ViewState了