Intermittent Error: Object reference not set to an instance of an object

Feb 3, 2010 at 11:19 PM

Hi All,

Occasionally i would receive a bug report from ELMAH. It's an Object reference error, here is my stack trace:

Generated: Wed, 03 Feb 2010 22:16:43 GMT

System.Web.HttpException: This is an invalid webresource request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword)
   at Miron.Web.MbCompression.EmptyMembership.DecryptString(String input) in C:\inetpub\wwwroot\Project\MbCompression_src\Utils\EmptyMembership.cs:line 47
   at Miron.Web.MbCompression.Util.DecryptString(String input) in C:\inetpub\wwwroot\Project\MbCompression_src\Utils\Util.cs:line 202
   at Miron.Web.MbCompression.WebResourceCompressionModule.GetDataFromQuery(NameValueCollection queryString) in C:\inetpub\wwwroot\Project\MbCompression_src\Modules\WebResourceCompressionModule.cs:line 307
   --- End of inner exception stack trace ---
   at Miron.Web.MbCompression.WebResourceCompressionModule.ThrowHttpException(Int32 num, String SRName, Exception innerException) in C:\inetpub\wwwroot\Project\MbCompression_src\Modules\WebResourceCompressionModule.cs:line 390
   at Miron.Web.MbCompression.WebResourceCompressionModule.GetDataFromQuery(NameValueCollection queryString) in C:\inetpub\wwwroot\Project\MbCompression_src\Modules\WebResourceCompressionModule.cs:line 315
   at Miron.Web.MbCompression.WebResourceCompressionModule.OnPreRequestHandlerExecute(Object sender, EventArgs e) in C:\inetpub\wwwroot\Project\MbCompression_src\Modules\WebResourceCompressionModule.cs:line 74
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I'm using the latest version of MBCompression with IIS7. Here is my configuration of MBCompression:
  <Miron.web>
<Miron.web> <!-- cachingStorage="OutputCache / FileSystem"--> <CompressorSettings compressCSS="true" reflectionAlloweded="true" compressJavaScript="true" compressPage="true" combineCSS="true" combineHeaderScripts="true" compressWebResource="true" minifyContent="true" cachingStorage="FileSystem" autoMode="true" scriptsVersion="1" cssVersion="1" optimizeHtml="true"> </CompressorSettings> </Miron.web>
    <!-- cachingStorage="OutputCache / FileSystem"-->
    <CompressorSettings compressCSS="true"
Help would be much appreciated. Thanks.
                        reflectionAlloweded="true"
                        compressJavaScript="true"
                        compressPage="false"
                        combineCSS="true"
                        combineHeaderScripts="true"
                        compressWebResource="true"
                        minifyContent="true"
                        cachingStorage="FileSystem"
                        autoMode="true"
                        scriptsVersion="1"
                        cssVersion="1"
                        optimizeHtml="true">
      <!--<excludePaths>
        <add key="~/DontCompressMe.aspx"/>
      </excludePaths>-->
      <!--<excludeFromMinifyPaths>
        <add key="~/app_themes/default/theme.css"/>
      </excludeFromMinifyPaths>-->
      <!--<disableByPostParams>
        --><!--Example how to exclude DevExpress ajax async calls from being compressed--><!--
        <add key="DXScript" />
      </disableByPostParams>-->
    </CompressorSettings>
  </Miron.web>