Solving: HttpContext.Current.User.Identity.Name is empty, when using Windows Authentication.

If you want to use Windows Authentication in your ASP .NET website, you need to add the <authentication mode="Windows"/> tag in the Web.config. <system.web> <authentication mode="Windows"/> If the HttpContext.Current.user.Identity.Name is still empty. Check the authentication feature of the web application in IIS, make sure all authentication mechanisms are Disabled, except …

Solving Unable to generate a temporary class error CS2001 en CS2008

  Error   System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file &#39;C:\Windows\TEMP\beo4ycyh.0.cs&#39; 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[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at …

Solving: Could not load file or assembly ‘App_Web_squ1ikqu, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified in .NET 4.0

After we virtualized a production machine and booted this virtualized machine, .NET reported some errors after re-registering .NET 4.0 on IIS7 these error where resolved, but one WCF service kept on logging the error: Could not load file or assembly ‘App_Web_squ1ikqu, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The …