abcupload.netfor crack, check www.sorke.net

解决方案 »

  1.   

    在Web.Config中配置httpRuntime
    <httpRuntime maxRequestLength="1000000000000000"/>
      

  2.   

    thetuxedo(Matrux Reloaded)你提供的网址打不开。
    ljupin:你的方法我试了,但不知放在哪是正确的,我试了几个地方都编译不过。
      

  3.   

    Web.Config:<configuration>
       <system.web>
          <httpRuntime maxRequestLength="1000000000000000"/>
       </system.web>
    </configuration>
      

  4.   

    看看这里的,好辛苦才找到,不过我也没有试过http://www.chinabs.net/aspnet/default.asp?infoid=111
      

  5.   

    <httpRuntime executionTimeout="1800" maxRequestLength="524288000" /> <httpModules> 
    <add name="UploadModule" type="HttpUploadApp.UploadModule,HttpUploadApp" /> 
    </httpModules> 
    This configures the timeout to 30 minutes, accepts up to 500MB files, and registers the HttpModule. My assembly name is HttpUploadApp as the namespace is the same thing. Next is the HttpModule class. This is a rough example that writes every HTTP request that has a content body to a file whose name is a GUID with a ".txt" extension saved in a directory named "C:\Upload\". This was just for test purposes!!! 
    HttpModule class (VB.NET): Imports System 
    Imports System.IO 
    Imports System.Web 
    Public Class UploadModule Implements IHttpModule Public Sub New() 
    MyBase.New() 
    End Sub Public Sub Dispose() Implements System.Web.IHttpModule.Dispose 
    End Sub Public Sub Init(ByVal context As System.Web.HttpApplication) Implements System.Web.IHttpModule.Init 
    AddHandler context.BeginRequest, AddressOf BeginRequest 
    End Sub Private Sub BeginRequest(ByVal source As Object, ByVal e As EventArgs) Dim app As HttpApplication = CType(source, HttpApplication) 
    Dim context As HttpContext = app.Context ' Get the HttpWorkerRequest Object!!! 
    Dim hwr As HttpWorkerRequest = CType(context.GetType.GetProperty("WorkerRequest", Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic).GetValue(context, Nothing), HttpWorkerRequest) If hwr.HasEntityBody Then Dim g As Guid = Guid.NewGuid() 
    Dim fn As String = "C:\Upload\" + g.ToString + ".txt" Dim fs As New FileStream(fn, FileMode.CreateNew, FileAccess.Write, FileShare.Read) 
    Try Const BUFFSIZE As Integer = 65536 Dim Buffer As Byte() 
    Dim Received As Integer = 0 
    Dim TotalReceived As Integer = 0 
    Dim ContentLength As Integer = CType(hwr.GetKnownRequestHeader(HttpWorkerRequest.HeaderContentLength), Integer) Buffer = hwr.GetPreloadedEntityBody() 
    fs.Write(Buffer, 0, Buffer.Length) 
    Received = Buffer.Length 
    TotalReceived += Received If Not hwr.IsEntireEntityBodyIsPreloaded Then While (ContentLength - TotalReceived) >= Received 
    Buffer = New Byte(BUFFSIZE) {} 
    Received = hwr.ReadEntityBody(Buffer, BUFFSIZE) 
    fs.Write(Buffer, 0, Received) 
    TotalReceived += Received 
    End While Received = hwr.ReadEntityBody(Buffer, (ContentLength - TotalReceived)) 
    fs.Write(Buffer, 0, Received) 
    TotalReceived += Received End If fs.Flush() Catch ex As Exception Finally 
    fs.Close() 
    End Try context.Response.Redirect("UploadForm.aspx") 
    End If End Sub End Class
      

  6.   

    asp.net自带的方法就可以上传30mb,主要需要修改machine.config和web.config的相关参数,然后还与客户端内存大小和服务器内存大小相关
      

  7.   

    http://www.chinabs.net/aspnet/default.asp?infoid=111
    上面的链结有点误人子弟
      

  8.   

    怎么我按上面几位大侠的方法试了,在Web.Config中的<system.web>...</system.web>之间加入<httpRuntime executionTimeout="1800" maxRequestLength="524288000" />
    就是不能编译,不知何原因
      

  9.   

    web.config里面的设置受到machine.config设置的限制,所以首先修改machine.config
      

  10.   

    感谢comy(软件民工)给予的指导使问题得到了解决,我只对machine.config进行了修改后就可以上传大文件了,但好象无需修改web.config。