Elmah in web.config incorrect highlighting

Hi there,

I've been using the latest version for resharper 4.5 and I noticed Resharper complaining about 2 errors in my web.config file.

I use ELMAH error logging: http://code.google.com/p/elmah/

    <errorFilter>
      <test>               
        <equal binding="HttpStatusCode" value="404" type="Int32" />
      </test>
    </errorFilter>

    <security allowRemoteAccess="1" />
    <errorLog type="Elmah.SqlErrorLog" connectionStringName="SimStocksConnectionString" />
    <!--errorLog type="Elmah.MemoryErrorLog, Elmah" size="50" /-->

  </elmah>


The two errors are:

  1. Cannot resolve symbol 'Int32'
  2. Cannot resolve symbol '.ctor'


The project compiiles and works correctly, also looking at the Elmah source cose suggests it should be correct:
public class SqlErrorLog : ErrorLog
    {
       public SqlErrorLog(IDictionary config)
        {
        }
       ...
}


I'm just wondering how to fix this?

I also had the "Cannot resolve symbol '.ctor' erro when using the following code:

Rob

2 comments

Thank you for the feedback. We gonna fix it asap. Check out nightly builds page of ReSharper 4.5.1 http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+4.5+Nightly+Builds
for the update.

0

Hi there,

Thanks that worked perfectly with the last build 1246

I have just reported another similar error for the MbCompression library that I use: http://www.jetbrains.net/devnet/thread/282017 hopefully this is just as easy to fix.

Thanks for all your hard work

Regards DotnetShadow

0

Please sign in to leave a comment.