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=12hven4vr/M=362329.6886308.7839368.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123833559/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/