Category Archives: .NET

Microsoft free e-books

Subject is located by the link http://social.technet.microsoft.com/wiki/contents/articles/11608.e-book-gallery-for-microsoft-technologies.aspx

Posted in .NET | Leave a comment

How to discover a named pipe which WCF service uses?

If you ever needed to discover a named pipe which was in use by WCF to troubleshoot some issues, you should face that this was not possible to do in some straight open way. But there is a cool guy … Continue reading

Posted in .NET, Hack, WCF | Leave a comment

There was an error attaching the debugger to the IIS worker process

When I was trying to run the asp .net application via Azure Emulator, Visual Studio showed me such an error “There was an error attaching the debugger to the IIS worker process bla-bla-bla”. There are a lot of causes for … Continue reading

Posted in .NET, ASP .NET, ASP .NET MVC, Windows Azure | Leave a comment

Default XmlSerializer uses %TMP% folder to generate an assembly dynamically.

I got such a stack trace today: System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:\Windows\TEMP\elfzvfzu.0.cs’ could not be found error CS2008: No inputs specified at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] … Continue reading

Posted in .NET | 1 Comment

Create an instance with an internal constructor without using ‘new’

It was a surprise for me that Activator.CreateInstance does not create an instance using an internal constructor when its class is declared in another assembly and marked with InternalsVisibleToAttribute pointed to a calling assembly. I’m not sure does it work … Continue reading

Posted in .NET, C# | Leave a comment