Internal 500 Error occured

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Internal 500 Error occured

Guest-836

My Working Server is W2K3 and ASP.NET, .NET Framework 3.5, and Neatupload trunk-786.

When I upload large file, internal 500 error occured maybe 5-6 min after.

and I checked event log.

Please, help Dean.

----------------------------

Exception Messgae: actualHash[0] (245) != expectedHash[0] (229)

Stack Trace :

Brettle.Web.NeatUpload.ObjectProtector.AssertSignaturesAreEqual(Byte[] actualHash, Byte[] expectedHash)
   Location: Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString, Byte[] encryptionKey, Byte[] validationKey, Deserializer deserializer, SignatureChecker sigChecker)
   Location: Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString, Byte[] encryptionKey, Byte[] validationKey)
   Location: Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString)
   Location: Brettle.Web.NeatUpload.SimpleWebRemoting.ProcessRemoteCallRequest(HttpContext context, MethodCallHandler methodCallHandler)
   Location: Brettle.Web.NeatUpload.UploadStateStoreHandler.ProcessRequest(HttpContext context)
   Location: System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   Location: System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Dean Brettle
Administrator
This typically means that the application has restarted or you are using a web farm/garden.  Note that moving the uploaded file to folder within your app (other than under app_data) can cause ASP.NET to restart your app.  Could that be the problem?

--Dean
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Guest-836
I'm not using web farm/garden. I will testing that uploaded file moving to outside app folder. thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Guest-836
I was moved "App_Data" folder. still problem occured.
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Dean Brettle
Administrator
Apparently, in order to see app restarts in the event log, you need to add this to the <system.web> section of your Web.config:

    <healthMonitoring>
     
<rules>
       
<add name="Application Events"
            eventName
="Application Lifetime Events"
            provider
="EventLogProvider"
            profile
="Default"
            minInterval
="00:01:00" />
     
</rules>
    </
healthMonitoring>

The events should show up in the Application event log. Do you see any occuring during the upload?  If you set useHttpModule="false" in your <neatUpload> section do you still see the restarts?  Note, you'll lose the progress display and multi-file capability when useHttpModule="false".  That is normal.

--Dean


 
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Guest-836
I will Test. Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Guest-836
you are right. but I don't know why w3wp.exe was restarted.
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Dean Brettle
Administrator
What version of IIS are you using? 

Are you getting the restarts even when useHttpModule="false"?  If so, it probably isn't related to NeatUpload.  To confirm, try removing the UploadHttpModule from your <httpModules> section and replacing the InputFile/MultiFile controls with standard ASP.NET FileUpload or HtmlInputFile controls.  If you still see the restarts, then they definitely aren't being caused by NeatUpload.

Do the restarts only occur with large or long uploads?  Can you post your Web.config with any sensitive info redacted?

--Dean
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Guest-836
My Working Server is Windows Server 2003 (IIS 6, .NET Framework 3.5, C#, ASP.NET) this problem was only cccured large and long uplaods. I will testing [useHttpModule="false"] and replace standard asp.net upload control. here is my web.config:
<configuration>
    <configSections>
   
    <section name="neatUpload" requirePermission="false" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true" />
     <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        </sectionGroup>
      </sectionGroup>

    </sectionGroup>
    </configSections>
  <runtime>
    <legacyUnhandledExceptionPolicy enabled="true" />
  </runtime>
    <appSettings>
        <add key="SiteTitle" value="TTL 2008"/>
    </appSettings>
    <connectionStrings/>

    <system.web>
        <compilation defaultLanguage="c#" debug="false">
            <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

            </assemblies>
        </compilation>
    <trace enabled="false" requestLimit="5000" pageOutput="true" traceMode="SortByTime" localOnly="false"/>
   
    <httpRuntime useFullyQualifiedRedirectUrl="true"/>
        <authentication mode="Forms">
            <forms loginUrl="Default.aspx" timeout="4200"/>
        </authentication>
        <authorization>
            <deny users="?"/>

        </authorization>
        <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </controls>
        </pages>
    <httpHandlers>

      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add verb="GET" path="CaptchaImage.aspx" type="TTL.WebControlCaptcha.CaptchaImageHandler, TTL.WebControlCaptcha"/>
    </httpHandlers>
    <httpModules>
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    </httpModules>
    </system.web>
  <neatUpload xmlns="http://www.brettle.com/neatupload/config/2008" useHttpModule="false" maxNormalRequestLength="4096" maxRequestLength="2097151" defaultStorageProvider="FilesystemUploadStorageProvider" defaultStateStoreProvider="SessionBasedUploadStateStoreProvider">
    <providers>
      <add name="FilesystemUploadStorageProvider" tempDirectory="App_Data/Temp" type="Brettle.Web.NeatUpload.FilesystemUploadStorageProvider, Brettle.Web.NeatUpload"/>
      <add name="SessionBasedUploadStateStoreProvider" type="Brettle.Web.NeatUpload.SessionBasedUploadStateStoreProvider, Brettle.Web.NeatUpload"/>
    </providers>
  </neatUpload>

  <location path="template/Upload/File_Upload.aspx">

    <system.web>
      <httpRuntime maxRequestLength="2097151" executionTimeout="1800" useFullyQualifiedRedirectUrl="true"/>
    </system.web>
    <neatUpload useHttpModule="true" maxUploadRate="2048" xmlns="http://www.brettle.com/neatupload/config/2008"/>
    </location>
    <location path="Members_Config/Default.aspx">
    <system.web>
      <httpRuntime maxRequestLength="2097151" executionTimeout="1800" useFullyQualifiedRedirectUrl="true"/>
    </system.web>
    <neatUpload useHttpModule="true" maxUploadRate="2048" xmlns="http://www.brettle.com/neatupload/config/2008"/>
  </location>

   
    <location path="Default.aspx">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
  <location path="NeatUpload">
    <system.web>
      <authorization>

        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="WarnAsError" value="false"/>
      </compiler>

      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="OptionInfer" value="true"/>
        <providerOption name="WarnAsError" value="false"/>
      </compiler>
    </compilers>
  </system.codedom>
   
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">

      <remove name="ScriptModule"/>
      <remove name="UrlRoutingModule"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="UrlRoutingModule" type="System.Web.Mvc.UrlRoutingModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" preCondition="managedHandler"/>
    </modules>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>

      <remove name="ScriptHandlerFactory"/>
      <remove name="ScriptHandlerFactoryAppServices"/>
      <remove name="ScriptResource"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="MvcScriptMap" preCondition="classicMode" verb="*" path="*.mvc" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"/>
      <add name="MvcHandler" preCondition="integratedMode" verb="*" path="Mvc.axd" type="System.Web.Mvc.MvcHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </handlers>

  </system.webServer>

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-3.5.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>

        <bindingRedirect oldVersion="1.0.0.0-3.5.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
    <system.serviceModel>
        <behaviors>
            <serviceBehaviors>
                <behavior name="TTL.WEB.WebServices.Login.LoginBehavior">
                    <serviceMetadata httpGetEnabled="true"/>

                    <serviceDebug includeExceptionDetailInFaults="false"/>
                </behavior>
                <behavior name="TTL.WEB.WebServices.Notice.NoticeBehavior">
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug includeExceptionDetailInFaults="false"/>
                </behavior>
                <behavior name="TTL.WEB.WebServices.Join_Use.Join_UseBehavior">
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug includeExceptionDetailInFaults="false"/>

                </behavior>
                <behavior name="TTL.WEB.WebServices.SMS.FromMobileNumberBehavior">
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug includeExceptionDetailInFaults="false"/>
                </behavior>
                <behavior name="TTL.WEB.WebServices.SMS.SMSInfoBehavior">
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug includeExceptionDetailInFaults="false"/>
                </behavior>

            </serviceBehaviors>
        </behaviors>
        <services>
            <service behaviorConfiguration="TTL.WEB.WebServices.Login.LoginBehavior" name="TTL.WEB.WebServices.Login.Login">
                <endpoint address="" binding="basicHttpBinding" contract="TTL.WEB.WebServices.Login.ILogin">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>

                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
            <service behaviorConfiguration="TTL.WEB.WebServices.Notice.NoticeBehavior" name="TTL.WEB.WebServices.Notice.Notice">
                <endpoint address="" binding="basicHttpBinding" contract="TTL.WEB.WebServices.Notice.INotice">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

            </service>
            <service behaviorConfiguration="TTL.WEB.WebServices.Join_Use.Join_UseBehavior" name="TTL.WEB.WebServices.Join_Use.Join_Use">
                <endpoint address="" binding="basicHttpBinding" contract="TTL.WEB.WebServices.Join_Use.IJoin_Use">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>

            <service behaviorConfiguration="TTL.WEB.WebServices.SMS.SMSInfoBehavior" name="TTL.WEB.WebServices.SMS.SMSInfo">
                <endpoint address="" binding="basicHttpBinding" contract="TTL.WEB.WebServices.SMS.ISMSInfo">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
        </services>

        <serviceHostingEnvironment>
            <baseAddressPrefixFilters>
                <add prefix="http://localhost:2004"/>
            </baseAddressPrefixFilters>
        </serviceHostingEnvironment>
    </system.serviceModel>
</configuration>
 
Reply | Threaded
Open this post in threaded view
|

Re: Internal 500 Error occured

Guest-836
I was tested. when i was set to useHttpModule="false", problem still occured. so, this issue is not related neatupload. (you are right). My web application is some file modify and upload in same web site directory. I was found same situation. check below link. http://forums.asp.net/t/1247412.aspx and then, i was appled below kb arcticle. FIX: ASP.NET 2.0-connected applications on a Web site may appear to stop responding http://support.microsoft.com/kb/911272/ and then, everything is good. thank you dean.