Error compiling library in C #

I am trying to compile a class (sqlAccess) declared as public, with several methods related to connecting to a database. I get the following error ...

Error   1   Friend access was granted to 'SqlAccess, PublicKey=00c8', but the      output assembly is named 'SQLAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Try adding a reference to 'SqlAccess, PublicKey=00c8' or changing the output assembly name to match.    c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll  SQLAccess

What could be the reason? is there already a method of this name? I am new to programming, so I do not understand this. Thank.

+3
source share
5 answers

I changed the name Assembly to sqlAccessXYZ and now its working, a problem with the name. You do not know what the problem is, at the moment the problem is solved. Thank.

0
source

: | . , " ", . /. ( MSDN)

+6

.NET, , , / , . SqlAccess .NET .

, .

: #

+2

, SqlAccess , SqlAccess. - [ AssemblyInfo.cs]:

[assembly: InternalsVisibleTo("Name of assembly goes here, PublicKey=")]

, PublicKey, , " ...". , .

+1

/ DLL , dll . , Assembly ( sqlAccess sqlAccessXYZ)

+1

All Articles