.Net Errors + Visual Studio Errors

net error

These are some of the main errors that came to me while developing with Visual Studio:

🔘 Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. testApp.UWP 1 Active

Delete the “.vs” folder, or:
https://github.com/dotnet/roslyn/wiki/Diagnosing-Project-System-Build-Errors

.

🔘 Running transformation: Failed to load provider “” – Value cannot be null Parameter name: providerInvariantName

means that the connection name is not exactly correct, so search for it, and make sute that there is no other words before it.
e.g <add name=”AppBox_C.Properties.Settings.PIModelConnection” connectionString=”Data Source=.\SQLExpress;Initial Catalog=t1;Integrated Security=True”
should be:
<add name=”PIModelConnection” connectionString=”Data Source=.\SQLExpress;Initial Catalog=t1;Integrated Security=True”

.

🔘 <add name=”PIModelConnection” connectionString=”Data Source=PC2\sqlExpress;Initial Catalog=PocoRev_04;Integrated Security=True”
providerName=”System.Data.SqlClient” />

When this error is raised:
Severity Code Description Project File Line Suppression State
Error Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TextTemplating40FE236E2F7638D3A7E2116674BF68DCE82F6EE3AFD0AC9C05B28B83A4AD1D85850A202A35C87C8D649820FADDC97D66443C2CDF18E724F8B40C54E0251BF6B9.GeneratedTextTransformation.IsSqlCeConnection(DbProviderFactory factory)
at Microsoft.VisualStudio.TextTemplating40FE236E2F7638D3A7E2116674BF68DCE82F6EE3AFD0AC9C05B28B83A4AD1D85850A202A35C87C8D649820FADDC97D66443C2CDF18E724F8B40C54E0251BF6B9.GeneratedTextTransformation.TransformText() Meta D:\4_Prj\EFReversePOCOUI\BAL\Meta\POCO\POCO.tt 1

probably the problem is in the “App.config” file: search for the connection string:
add name=”PIModelConnection” connectionString
and make sure that the string name “PIModelConnection”, is not prefixed with the project name, so it must be alone

.

🔘 Some folders and files not found: Key name: File_ClientDB File Path: D:\4_Prj\_.Appy\_Code\Main\Appy\Bin\DB\ClientDB.mdb Key name: File_Config File Path: D:\4_Prj\_.Appy\_Code\Main\Appy\Bin\app.config Key name: File_ClientDB Directory Path: D:\4_Prj\_.Appy\_Code\Main\Appy\Bin\DB\ClientDB.mdb Key name: File_Config Directory Path: D:\4_Prj\_.Appy\_Code\Main\Appy\Bin\app.config

this means that the project folder mapping has changed and need to be remaped

 

🔘 Error/Warning: Compiling transformation: Assuming assembly reference ‘mscorlib, Version=1.0.3300.0’ used by ‘EnvDTE’ matches identity ‘mscorlib, Version=4.0.0.0’ of ‘mscorlib’, you may need to supply runtime policy 
Severity Code Description Project File Line Suppression State
Error  Running transformation: System.ArgumentNullException: Value cannot be null.
Parameter name: The project does not contain App.config or Web.config file.
at Microsoft.VisualStudio.TextTemplatingECA2665098664921E7026B011628103BB3AC3929C2373854D00F455911710401D25E951430F079FF7C0106100D50D8F1B88C51527A392DC6303452AA32CE7F6C.GeneratedTextTransformation.GetConnectionString(String& connectionStringName, String& providerName)
at Microsoft.VisualStudio.TextTemplatingECA2665098664921E7026B011628103BB3AC3929C2373854D00F455911710401D25E951430F079FF7C0106100D50D8F1B88C51527A392DC6303452AA32CE7F6C.GeneratedTextTransformation.InitConnectionString()
at Microsoft.VisualStudio.TextTemplatingECA2665098664921E7026B011628103BB3AC3929C2373854D00F455911710401D25E951430F079FF7C0106100D50D8F1B88C51527A392DC6303452AA32CE7F6C.GeneratedTextTransformation.LoadTables(Boolean makeSingular)
at Microsoft.VisualStudio.TextTemplatingECA2665098664921E7026B011628103BB3AC3929C2373854D00F455911710401D25E951430F079FF7C0106100D50D8F1B88C51527A392DC6303452AA32CE7F6C.GeneratedTextTransformation.TransformText() testOrmLiteT4 d:\docs\documents\visual studio 2015\Projects\testOrmLiteT4\testOrmLiteT4\OrmLite.Poco.tt 1

When you are trying to run a .tt file like “OrmLite.Poco.tt” or Reverse Poco Generator, if this error comes to you, then maybe you did not install nuget EntityFramework
also, it might be inserted into a solution that has only Class library projects, that all of them do not have “App.config or Web.config file”.

 

🔘 Warning: Compiling transformation: Assuming assembly reference ‘mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ used by ‘EnvDTE’ matches identity ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ of ‘mscorlib’, you may need to supply runtime policy MetaSQLite D:\4_Prj\AppBox\Main\Src\BAL\DOM\MetaSQLite\POCO\POCO.tt 1 

install the fix: cumulative update (KB3151378)

 

🔘 Error: error MSB3027: Could not copy “obj\Release\CoursesClientResources.dll” to “bin\Release\CoursesClientResources.dll”. Exceeded retry count of 10. Failed.
error MSB3027: Could not copy “obj\Release\CoursesClientResources.dll” to “bin\Release\CoursesClientResources.dll”. Exceeded retry count of 10. Failed.
🔘 Error: error MSB3021: Unable to copy file “obj\Release\CoursesClientResources.dll” to “bin\Release\CoursesClientResources.dll”. The process cannot access the file ‘bin\Release\CoursesClientResources.dll’ because it is being used by another process.

Make sure that your antivirus is excluding your Projects folder from its scan
if not solved, look at:

or close Visual Studio and open it.

 

 

About Reader Man حسين ناجي الصفافير

حسين ناجي الصفافير Hussain Naji Al-Safafeer Info: https://readerman1.wordpress.com/aboutme
This entry was posted in Bugs and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s