Fixing – A first chance exception of type ‘System.Configuration.ConfigurationErrorsException’ occurred in System.Configuration.dll

0 Comments

After some NuGet package update, my Web.config file was altered and contained two entries in [connectionStrings] with the same name: <connectionStrings> <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="data source=s02.dev.nl\v2012;initial catalog=Test;Integrated Security=SSPI;Pooling=False;" /> <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet-Test.UI-20130328110613;Integrated

Solving Unable to generate a temporary class error CS2001 en CS2008

0 Comments

  Error   System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\Windows\TEMP\beo4ycyh.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