如何安装NeatUpload? [英] How to Install NeatUpload?

查看:385
本文介绍了如何安装NeatUpload?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Salvete!虽然寻找一个优质,免费上传asp.net/ajax控制,我发现NeatUpload。我无法找到一个在线演示它,但下载包中附带的演示。我需要一些帮助我的服务器(Windows Server 2008)上安装它。

Salvete! Whilst searching for a quality, free asp.net/ajax upload control, I found NeatUpload. I cannot find an online demo for it, but the download package does come with a demo. I need some help installing it on my server (Windows Server 2008).

我也跟着在 HTTP方向://mumblestiltskin.blogspot .COM / 2009/10 /使用-neatupload-简单setup.html (它们基本上是相同自带的neatUpload二进制包manual.htm方向)。

I followed the directions at http://mumblestiltskin.blogspot.com/2009/10/using-neatupload-simple-setup.html (they are basically the same as the directions in the manual.htm that comes with the NeatUpload binary package).

到目前为止,我有


  • 成功安装Brettle.Web.NeatUpload.dll到GAC使用
    GACUTIL。

  • 在我的web.config添加了引用(与版本和GUID)

  • 复制演示文件和code,后面我的web应用程序(
    注册在IIS7)

现在,当我浏览的网页,我得到

Now, when I browse to the page, I get an asp.net server error on

Line 35: protected MultiFile multiFile;
Line 36: protected MultiFile multiFile2;
Line 37: protected InputFile inputFile;

error CS0246: The type or namespace name 'MultiFile' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'MultiFile' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'InputFile' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'InputFile' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'ProgressBar' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'ProgressBar' could not be found (are you missing a using directive or an assembly reference?)

现在我该怎么办?我是否需要复制另一个DLL的地方,或某些文件?我无法从文档看着办吧。

What do I do now? Do I need to copy another dll somewhere, or certain files? I can't figure it out from the documentation.

推荐答案

想通了!我部署控制SharePoint Web应用程序。 (下面,考虑SPVD为SharePoint应用程序的虚拟目录)。如果你不准备部署到Sharepoint网站,那么你会在哪里使用我已经使用了SharePoint的,而不是你的web应用程序的虚拟目录的根目录。下面是我跟着得到演示页,我的服务器上运行的步骤。

Figured it out! I am deploying the control to a sharepoint web application. (Below, consider SPVD as "Sharepoint Application's Virtual Directory".) If you are not deploying to a Sharepoint website, then you will use the root of your web application's virtual directory where I have used Sharepoint's instead. Here are the steps I followed to get the demo page to run on my server.

首先,配置是不同的,如果您使用的是Web的应用程序,而不是一个网站。我不会去到区别就在这里。但在我的例子中,我配置一个简单的网站。
我只好

Firstly, configuration is different if you use a "web-application" instead of a "web-site". I won't go into the difference here. But in my example, I am configuring a simple "web-site". I had to:


  • 复制 Brettle.Web.NeatUpload.dll 进入GAC在服务器上(好像是Windows Server 2008上,您的的必须使用GACUTIL - 只需将dll复制到%WINDIR%\\大会还请注意,您的 的必须这样做,在服务器上;如果你尝试做在网络上它不工作的权利。分享)。如果你不这样做,NeatUpload演示只是不会做任何事情。你将有你这样做后重新启动IIS中的网站。

  • 有些导游的说,你需要更新web.config中显示相应的版本和GUID,但是我发现我没有做到这一点(您将在下面看到我的web.config) - 除非 - 你要使用neatupload的部分配置在web.config中。因此,它是更好的只是把事情做对,你懂的。

  • 该指南还表示,使用在aspx页面的GUID和版本号,如 demo.aspx ,所以,替换此:

  • Copy Brettle.Web.NeatUpload.dll into the GAC on the server (it seems that on Windows Server 2008, you don't have to use the gacutil - just copy the dll into %windir%\assembly. Also note that you must do this on the server; it doesn't work right if you try to do it over a network share). If you don't do this, the NeatUpload Demo just won't do anything. You will have to restart the website in IIS after you do this.
  • Some of the guides say you need to update the web.config to display the appropriate version and guid, but I found that I didn't have to do that (you will see my web.config below) - UNLESS - you want to use neatupload's section configuration in web.config. So, it is better just to do it right, you know.
  • The guides also say to use the guid and version number in the aspx pages, like demo.aspx, So, replace this:

<%@注册标签preFIX =上传命名空间=Brettle.Web.NeatUpload大会=Brettle.Web.NeatUpload%GT;

本:

<%@注册标签preFIX =上传命名空间=Brettle.Web.NeatUpload大会=Brettle.Web.NeatUpload,版本= 1.3.3798.663,文化=中性公钥= c95290d92c5893c8%GT;

NeatUpload-1.3.25 \\ DOTNET \\程序\\ BIN 复制整个目录 SVPD \\ BIN 。它包含以下项目:

Copy the entire directory at NeatUpload-1.3.25\dotnet\app\bin to SVPD\bin. It contains the following items:


  • Brettle.Web.NeatUpload.dll(同为你安装到GAC的那个)

  • Brettle.Web.NeatUpload.GreyBoxProgressBar.dll

  • Brettle.Web.NeatUpload.HashedInputFile.dll

  • Hitone.Web.SqlServerUploader.dll

  • 一个名为的en-US (在这一个dll)

  • 另一个direcotry名为 FR (在这一个dll)

  • 若干的.mdb数据库和Brettle.Web.NeatUpload.xml

  • 引用添加到HTTP模块到Web应用程序的web.config文件(见下面的web.config样品)。

  • Brettle.Web.NeatUpload.dll (the same as the one you installed to the GAC)
  • Brettle.Web.NeatUpload.GreyBoxProgressBar.dll
  • Brettle.Web.NeatUpload.HashedInputFile.dll
  • Hitone.Web.SqlServerUploader.dll
  • a directory called en-US (with a dll in it)
  • another direcotry called fr (with a dll in it)
  • several .mdb databases, and Brettle.Web.NeatUpload.xml
  • Add the references to the http modules to the web-application's web.config file (see web.config sample below).

现在,你需要复制的目录: NeatUpload-1.3.25 \\ DOTNET \\程序\\ NeatUpload 来SPVD,并把它命名为 NeatUpload ,让你有 SVPD \\ NeatUpload 。现在,该文件夹中,有您需要编辑两个文件: Progress.aspx SmoothProgress.aspx 。在导游,我被告知要使用的@声明中的GUID和版本号,比如这个:

Now, you need to copy the directory: NeatUpload-1.3.25\dotnet\app\NeatUpload to SPVD, and leave it named NeatUpload, so that you have SVPD\NeatUpload with all its original contents. Now, in that folder, there are two files you need to edit: Progress.aspx and SmoothProgress.aspx. In the guides, I was told to use the guids and version numbers in the @ declarations, such as this:

<%@页语言=C#AutoEventWireup =假 Inherits=\"Brettle.Web.NeatUpload.ProgressPage,Brettle.Web.NeatUpload,Version=1.3.3519.18793,Culture=neutral,PublicKeyToken=C95290D92C5893C8\" %GT;

<%@注册标签preFIX =上传命名空间=Brettle.Web.NeatUpload大会=Brettle.Web.NeatUpload,版本= 1.3.3798.663,文化=中性公钥= c95290d92c5893c8%GT;

下面是我把文件夹中的演示页web.config中。

Here is the web.config I put in the folder with the demo page.

<?xml version="1.0"?>
<configuration>

  <configSections>
    <!--You need this part so that you can have a neatupload configuration section.  You will get .net errors if you try to add the configuration section without this part here.-->
    <section name="neatUpload"
      type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload"
      allowLocation="true"
      />
  </configSections>

  <!--This is where you put your neatupload configuration preferences.-->
  <neatUpload xmlns="http://www.brettle.com/neatupload/config/2008"
      useHttpModule="true"
    />

  <system.web>
    <customErrors mode="Off"/>
    <!-- Always required to use any of NeatUpload's features.  Without it, ProgressBars won't display and MultiFile will look like a regular HtmlInputFile. -->
    <httpModules>
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule,Brettle.Web.NeatUpload,Version=1.3.3798.663,Culture=neutral,PublicKeyToken=c95290d92c5893c8" />
    </httpModules>

    <!-- Set these next 2 attributes large enough to accomodate the largest and longest running upload you want to support.  Note that browsers and IIS typically don't support uploads larger than 2GB (2097151 KB). -->
    <httpRuntime maxRequestLength="2097151" executionTimeout="999999"/>

    <!-- Not required for NeatUpload but makes it easier to debug in VS. -->
    <compilation debug="true"/>
  </system.web>

  <!-- For IIS7's Integrated Pipeline Mode which is used by the DefaultAppPool. -->
  <system.webServer>
    <security>
      <requestFiltering>
        <!-- Increased maxAllowedContentLength from default of 300MB. -->
        <requestLimits maxAllowedContentLength="2147483648" />
      </requestFiltering>
    </security>
    <modules>
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule,Brettle.Web.NeatUpload,Version=1.3.3798.663,Culture=neutral,PublicKeyToken=c95290d92c5893c8" preCondition="managedHandler"/>
    </modules>
    <validation validateIntegratedModeConfiguration="false"/>
  </system.webServer>
</configuration>

的安装包一些注释
我使用的安装包是在 HTTP://neatupload.$c$cplex.com/发布/查看/ 46086 - 似乎有一些人,比如二进制文件包在的 HTTP://neatupload.$c$cplex.com/releases/view/59339 ,但目录结构是不同的,并且说明将没有多大意义。还有一个在codePLEX主体工程页面上的包: HTTP://neatupload.$c$ cplex.com/ ,但如果你使用这个包,你将有一个不同的版本号和GUID为DLL,当你把它部署到GAC。

Some Notes on Installation Packages The installation package I used was at http://neatupload.codeplex.com/releases/view/46086 - there seem to be a few others, such as a "binaries package" at http://neatupload.codeplex.com/releases/view/59339, but the directory structure is different, and the instructions won't make much sense. There is also a package on the main project page at CodePlex: http://neatupload.codeplex.com/, but if you use this package, you will have a different version number and guid for the dll when you deploy it to the GAC.

使用说明书
通过指导手册的方式,检查出:<一href=\"http://mumblestiltskin.blogspot.com/2009/10/using-neatupload-simple-setup.html?showComment=1335835416022#c1846924755786832325\" rel=\"nofollow\">http://mumblestiltskin.blogspot.com/2009/10/using-neatupload-simple-setup.html?showComment=1335835416022#c1846924755786832325,而且还有在上述二进制包的HTML手册。在其他包,你要建与开放式办公室的手册。然后,当然,你可以参考这个职位!

Instruction Manuals By way of an instruction manual, check out: http://mumblestiltskin.blogspot.com/2009/10/using-neatupload-simple-setup.html?showComment=1335835416022#c1846924755786832325, and there is also an html manual in the binaries package above. In the other packages, you have to "build" the manual with Open Office. Then, of course, you can reference this post!

故障排除
有问题吗?

Troubleshooting Having problems?

  • How to Overcome this NeatUpload Object Reference Error?
  • NeatUpload Nabble Forum: http://neatupload-help.688956.n3.nabble.com/

现在剩下的唯一一件事,就是添加一些处理程序用于复制文件到您想要的地方。 NeatUpload只有将它们添加到一个临时文件,我还没有搞清楚它在哪里...

The only thing left now, is to add some sort of handler for copying the files to where you want them. NeatUpload only adds them to a temp file, and I have yet to figure out where it is...

这篇关于如何安装NeatUpload?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆