下载了微软的TreeView控件,按照网友提供的方法装到开发用的电脑中,运行正常,但上传到服务器上不能正常运行。bin下的Microsoft.Web.UI.WebControls.dll不能上传到服务器,我将该文件从本低机拷贝到服务器相应的bin下。而且TreeView控件也装到服务器上了。请高手指点,谢谢!!

解决方案 »

  1.   

    复制 webctrl_client 文件夹到服务器IIS根目录即可
      

  2.   

    oneby(白沙烟)的方法试过,在服务器上与在我的电脑(有关TreeView)的环境是一样的。不成功。
      

  3.   

    1.  Make sure you have installed the .NET Framework SDK v1.0 or v1.1
    2.  Run Build.bat, which will create a build folder in this directory.  
        The build folder contains Microsoft.Web.UI.WebControls.dll and a 
        Runtime directory of supporting files.To run the IE Web Controls:1.  Copy the contents of the Runtime directory to the webctrl_client\1_0
        directory under your top-level site directory.  For example, if your 
        site root is c:\Inetpub\wwwroot, type this at the command prompt:    xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0 /y    This will create the following directory structure under the site:      /webctrl_client/1_0
            MultiPage.htc
            TabStrip.htc
            toolbar.htc
            treeview.htc
            webservice.htc
            webserviced.htc
            [images]
            [treeimages]2.  Create a new web application in IIS and copy the contents of the
        samples directory to this application directory.  For example:    xcopy /s /i .\samples c:\Inetpub\wwwroot\sampleapp /y3.  Create a /bin subdirectory for the application and copy the file
        Microsoft.Web.UI.WebControls.dll to this directory.    The contents of the application will be as follows:      /sampleapp
            multipage.aspx
            state_city.xml
            tabstrip.aspx
            toolbar.aspx
            treeview.aspx
            treeview_bound.aspx
            /bin
              Microsoft.Web.UI.WebControls.dll4.  Request the sample pages from your Internet Explorer web browser, for
        example: http://localhost/sampleapp/multipage.aspx
      

  4.   

    http://goody9807.cnblogs.com/archive/2005/07/07/187940.html
      

  5.   

    非常感谢各位的帮助,我的TreeView控件在我的电脑上运行正常,我安装TreeView控件基本上是按照各位提供的方法作的。我的服务器上没有装asp.net,但我也是按照装载我的电脑上的相同方法作的,但不能运行。什么原因?
      

  6.   

    保证你可以正常运行其它asp.net的网页,webctrl_client
      

  7.   

    webctrl_client
    要放在根目录
      

  8.   

    webctrl_client即放在系统缺省网站的根目录下(C:\Inetpub\wwwroot\webctrl_client),同时也放在自己创建的网站的目录下(D:\www)。不行。
      

  9.   

    1:在使用treeview的页面添加引用
    2:把webctrl_client文件夹放到 iis主目录下
      

  10.   

    已经把webctrl_client文件夹放到 iis主目录之下了,只是在服务器中(没有装asp.net)如何完成treeview的页面添加引用那?在我的电脑中已经做了treeview的页面添加引用,否则treeview也无法使用。想知道是否在服务器中一定装asp.net?我觉得有很多人在使用treeview,大家是如何将其应用到服务器上的那?在这个问题上已经耽搁好几天了,还希望那位高手指点。
      

  11.   

    nmlvjun(网事如风)能说的详细些吗?谢谢!!