2012-04-30 5 views
3

Salvete!無料のasp.net/ajaxアップロードコントロールを検索しながら、私はNeatUploadを見つけました。私はそれのためのオンラインデモを見つけることができませんが、ダウンロードパッケージにはデモが付属しています。私は私のサーバー(Windows Server 2008)にインストールするための助けが必要です。NeatUploadをインストールするには?

私はhttp://mumblestiltskin.blogspot.com/2009/10/using-neatupload-simple-setup.htmlの指示に従いました(基本的には、NeatUploadバイナリパッケージに付属のmanual.htmの指示と同じです)。

はこれまでのところ、私は

  • が正常 ます。gacutilを使用してGACにBrettle.Web.NeatUpload.dllをインストールされています。
  • は、(バージョンとGUIDを持つ)
  • を私のweb.configファイル内の参照を追加したときに、今

をデモファイルをコピーし、そのコードビハインド( はIIS7に登録されている)私のWebアプリケーションへ私は

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?) 
にasp.netのサーバーエラーを取得し、ページを参照します10

今何をすればいいですか?どこか別のdllや特定のファイルをコピーする必要がありますか?私はドキュメントからそれを理解することはできません。

答えて

5

私はSharepoint Webアプリケーションにコントロールを配備しています。 (以下、SPVDを「Sharepointアプリケーションの仮想ディレクトリ」と見なします).Sharepoint Webサイトに展開していない場合、代わりにSharepointを使用したWebアプリケーションの仮想ディレクトリのルートを使用します。私のサーバー上でデモページを実行するための手順は次のとおりです。

まず、「ウェブサイト」の代わりに「ウェブアプリケーション」を使用すると、設定が異なります。ここでは違いはしません。しかし私の例では、私は単純な "ウェブサイト"を構成しています。 は私が持っていた:サーバー上のGACに

  • コピーBrettle.Web.NeatUpload.dll(それがWindows Server 2008で、あなたが思わないます。gacutilを使用する必要があります - だけを%windir%\アセンブリにDLLをコピーしますまた、でなければならないことに注意してください。サーバー上でこれを行う必要があります。ネットワーク共有経由でしようとすると正しく動作しません。これをしなければ、NeatUploadデモは何もしません。これを実行した後、IISでWebサイトを再起動する必要があります。
  • ガイドの中には、適切なバージョンとGUIDを表示するためにweb.configを更新する必要があると言われていますが、これを行う必要はありませんでした(私のweb.configが表示されます)。 web.configでneatuploadのセクション設定を使用したい。ですから、それを正しく行う方が良いでしょう。これで

    <%@ Register TagPrefix="Upload" Namespace="Brettle.Web.NeatUpload" Assembly="Brettle.Web.NeatUpload" %>

    <%@ Register TagPrefix="Upload" Namespace="Brettle.Web.NeatUpload" Assembly="Brettle.Web.NeatUpload, Version=1.3.3798.663,Culture=neutral, PublicKeyToken=c95290d92c5893c8" %>

  • ガイドはまた、これを置き換える、demo.aspxのように、ASPXページのGUIDとバージョン番号を使用するように言って、だから、ディレクトリ全体をNeatUpload-1.3.25\dotnet\app\binからSVPD\binにコピーします。

    • Brettle.Web.NeatUpload.dll(あなたがGACにインストールされたものと同じ)
    • Brettle.Web.NeatUpload.GreyBoxProgressBar.dll
    • Brettle.Web:それは、次の項目が含まれています。 NeatUpload.HashedInputFile.dll
    • Hitone.Web.SqlServerUploader.dll
    • en-USというディレクトリ(その中にDLLを持つ)
    • は別のdirecotryは
    • (その中にDLLで) frと呼ばれます
    • 複数の.mdbデータベースとBrettle.Web.NeatUpload.xml
    • httpモジュールへの参照をWebアプリケーションのweb.configファイルに追加します(下記のweb.configサンプルを参照)。
  • さて、あなたはディレクトリをコピーする必要があります:あなたはすべての元の内容をSVPD\NeatUploadを持つようにSPVDにNeatUpload-1.3.25\dotnet\app\NeatUpload、およびそれを残すには、NeatUploadの名前。今、そのフォルダに編集する必要のあるファイルが2つあります:Progress.aspxSmoothProgress.aspxです。ガイドでは、私はこのような、@宣言内のGUIDとバージョン番号を使用するように言われた:

    <%@ Page language="c#" AutoEventWireup="false" Inherits="Brettle.Web.NeatUpload.ProgressPage,Brettle.Web.NeatUpload,Version=1.3.3519.18793,Culture=neutral,PublicKeyToken=C95290D92C5893C8" %>

    <%@ Register TagPrefix="Upload" Namespace="Brettle.Web.NeatUpload" Assembly="Brettle.Web.NeatUpload, Version=1.3.3798.663,Culture=neutral, PublicKeyToken=c95290d92c5893c8" %>

ここで私はweb.configファイルに入れていますデモページが表示されます。

<?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.codeplex.com/releases/view/46086にあった - そこhttp://neatupload.codeplex.com/releases/view/59339で、このような「バイナリパッケージ」など、いくつかの他、のように見えるが、ディレクトリ構造が異なっており、指示はあまり意味がありません。 CodePlexのメインプロジェクトページには、http://neatupload.codeplex.com/というパッケージもありますが、このパッケージを使用すると、GACに展開するときにdllのバージョン番号とGUIDが異なります。 http://mumblestiltskin.blogspot.com/2009/10/using-neatupload-simple-setup.html?showComment=1335835416022#c1846924755786832325、および上記のバイナリパッケージ内のHTMLマニュアルもあります:

取扱説明書取扱説明書のところで 、チェックしてください。他のパッケージでは、Open Officeでマニュアルを "ビルド"する必要があります。その後、もちろん、あなたはこの投稿を参照することができます!

トラブルシューティング 問題がありますか?

今残された唯一の事、あなたがそれらをしたい場所にファイルをコピーするためのハンドラのいくつかの並べ替えを追加することです。 NeatUploadはそれらを一時ファイルに追加するだけで、まだどこにあるのか分かりません。

関連する問題