How can we help you today? How can we help you today?
JudahGabriel
Never mind that previous post, here's a link to a repro case that shows it: Bad Class Token.zip. When running the above project under the ants profiler, click the big button, and the error will be thrown. / comments
Never mind that previous post, here's a link to a repro case that shows it: Bad Class Token.zip. When running the above project under the ants profiler, click the big button, and the error will be ...
0 votes
Hi guys I'm getting this same error upon starting my app under the profiler. Here's the error info & stack trace: 8/21/2006 10:11:21 AM. An error of type System.BadImageFormatException occurred: Error message: Bad class token. Error stack trace: at MyCompany.Collections.Algorithms.ConvertToArray[TReturn,TItem](IEnumerable`1 items, Converter`2 converter) at MyCompany.MyApp.Client.ServerCommunication.ClientDataReader.ReadUser(String name, String password) in C:\Documents and Settings\Judah Himango\My Documents\Visual Studio\Projects\Judah\MyCompany.MyApp.Client\ServerCommunication\ClientDataReader.cs:line 630 at MyCompany.MyApp.Client.ServerCommunication.LoginManager.Login(String userName, String password) in C:\Documents and Settings\Judah Himango\My Documents\Visual Studio\Projects\Judah\MyCompany.MyApp.Client\ServerCommunication\RemoteLogin.cs:line 132 at MyCompany.MyApp.Client.LoginForm.LoginUser(LoginArgs args) in C:\Documents and Settings\Judah Himango\My Documents\Visual Studio\Projects\Judah\MyCompany.MyApp.Client\ServerCommunication\LoginForm.cs:line 386 at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) As you can see, this happened in the Algorithms.ConvertToArray method. That method is a simple method that converts any generic IEnumerable to an array. Here's the code snippet for that method: public static TReturn[] ConvertToArray<TReturn, TItem>(IEnumerable<TItem> items, Converter<TItem, TReturn> converter) { TReturn[] retVal = new TReturn[Algorithms.Count<TItem>(items)]; int i = 0; foreach (TItem item in items) { retVal[i++] = converter(item); } return retVal; } Algorithms.Count is a method that simply counts the number of items in a generic IEnumerable by doing a foreach over the elements, incrementing an integer each iteration. So this time the error happened when converting a generic IEnumerable to an array. It previously occurred (see the first post above) when converting a generic IList to an array. It seems the profiler is having a hard time on this. / comments
Hi guys I'm getting this same error upon starting my app under the profiler. Here's the error info & stack trace:8/21/2006 10:11:21 AM. An error of type System.BadImageFormatException occurred: Er...
0 votes