Tuesday, September 18, 2007

Back again ... removing LINQ

Sorry for being our for quite a long time, but I broke up with my girlfriend and had too much work.

Last week I was facing a problem - removing Microsoft(r) LINQ from our project's solution. We didn't wanted to use it anymore. After the code was rewritten and all references removed, we still weren't able to load the solution on fresh new computer.

After some digging, I found out, that in our .vbproj files, we still have something like:
<Import Project="$(ProgramFiles)\LINQ Preview
\Misc\Microsoft.VisualBasic.LINQ.targets" />


So I removed this line, the solution was loaded into our VS.NET 2005 (SP 1), but could not compile. Again, after some digging (this line seems quit undocummented), I tried to replace this line with the following one (contained in normal .vbproj files).
<Import Project="$(MSBuildBinPath)
\Microsoft.VisualBasic.targets" />


Ok, finally it worked. But on our old machines after LINQ uninstallation, the WebDev server started to crash (immediately after starting debug mode) with some out of memory exception. Every second try worked. Reinstalling Visual Studio solved this issue(I was amazed that the reinstall of VS took half less time then reinstall of its service pack).

Another problem appeared, when the VS hit a breakpoint - the whole application disappeared, leaving simple message in the Windows event log (sry for czech language):

.NET Runtime version 2.0.50727.832
- Závažná chyba spouštěcího modulu (7A2B8F82) (0)


Unregistering and reregistering the regmon.dll helped:

regsvr32 urlmon
regsvr32 /u urlmon.dll


Sorry for being quite brief today, had to work :).

No comments: