Forum Discussion

googleid_111838's avatar
Occasional Contributor
11 years ago

The Assembly.Load may cause ArgumentException when profiling ASP.NET application


I have encountered the following error in my application when acessing the AssemblyName.FullName property value: 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))'

My application works as expected all the time and I faced with this error when I started profiling with AQtime 8 first time. I have investigated this issue and found that the Assembly.Load method works in a different way in AQtime profiling environment so the subsequent call to AssemblyName.FullName throws the ArgumentException from the System.Reflection.AssemblyName.nToString() method. The Assembly.Load seems to be incorrect in my scenario and I modified my code.

2 Replies