There's already a keyfile attribute in the AssemblyInfo.cs file that 
gets created with new projects.  Try taking that out or putting the 
keyfile reference you have in the class into the AssemblyInfo 
instead. ?
-Alex

--- In [email protected], "smartboy3k" 
<[EMAIL PROTECTED]> wrote:
> I'm trying to create a class that supports transactions and another 
> that requires transactions. But when I try to compile I keep 
getting 
> this error:
> 
> Duplicate 'AssemblyKeyFileAttribute' attribute
> 
> The code in my Class1.cs is as follows:
> 
> using System.EnterpriseServices;
> using System.Runtime.CompilerServices;
> using System.Data.SqlClient;
> using System.Reflection;
> using System.Data;
> using System;
> 
> [assembly: ApplicationName("NTS_COMSupport")]
> [assembly: AssemblyKeyFileAttribute("NTS_COMSupport.snk")]
> 
> namespace NTS_COMSupport
> {
> [Transaction(TransactionOption.RequiresNew), ConstructionEnabled
> (Default="server:localhost; integrated security=sspi; 
> database=Airline"), JustInTimeActivation(true)]
> 
> public class NTS_DataAccess
> {
> 
> }
> 
> But it won't compile. Anyone???
> 
> Thanks in Advance
> 
> Avinash







------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hi3l4a4/M=362329.6886308.7839368.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123861828/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to