mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

System.IndexOutOfRangeException #157

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Getting below error 
System.IndexOutOfRangeException was unhandled by user code
  HResult=-2146233080
  Message=EmailAddress
  Source=System.Data
  StackTrace:
       at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
       at StackExchange.Profiling.Data.ProfiledDbDataReader.GetOrdinal(String name) in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\Data\ProfiledDbDataReader.cs:line 389
       at System.Data.Query.InternalTrees.ColumnMapFactory.TryGetColumnOrdinalFromReader(DbDataReader storeDataReader, String columnName, Int32& ordinal)
  InnerException: 

What is the expected output? What do you see instead?
If parameter not match while returning from database then it should not produce 
error while any column not match

What version of the product are you using? On what operating system?
<package id="MiniProfiler" version="2.1.0" targetFramework="net40" />
  <package id="MiniProfiler.EF" version="2.1.0" targetFramework="net40" />
  <package id="MiniProfiler.MVC3" version="2.0.2" targetFramework="net40" />
OS:- windows8

Please provide any additional information below.

Original issue reported on code.google.com by amit.viv...@gmail.com on 13 Aug 2013 at 4:50