-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: ShareNCares
Message 1 in Discussion
Hi Currently i'm facing problem in Enterprise service in ASP .NET with C#.
Problem in the sense sometimes its working nicely but often it fails. I will tell wht
i done, pls help on this regard whether i'm doing correctly or telling wht i'm doing
Wrong
Step 1 : i Written a DataAcessLayer[DAL] where i'm using the enterprise service for
Transaction,Object Pooling. my database is MySQL., i added System.EnterpriseServices
namespace and inherited ServicedComponent Class. Step 2: Created a Strong
Name[Sn.exe] and i putted into AssemblyKeyFile. i written this in codebehind rather
than assemblyinfo.cs like this [assembly: ApplicationName("DataAccess")]
[assembly: ApplicationActivation(ActivationOption.Library)]
[assembly: AssemblyKeyFile(@"C:\Inetpub\wwwroot\'WebApplication9\DataAccess.snk")]
[assembly: AssemblyKeyName("Com Application")] Step 3: And i Build this project and
registerd the assembly with help regasm.exe Like this : regasm
C:\Inetpub\wwwroot\'WebApplication9\Bin\WebApplication9.dll Step 4: And i registered
the service in COM+ with help of regsvcs Like this : regsvcs
C:\Inetpub\wwwroot\'WebApplication9\Bin\WebApplication9.dll.dll. it created a
DataAccess.tlb file also when i run after doing all these things and calling this
class by created object in Webservice. sometimes its working and when i restart the
system isnt not working by giving a error Failed to register assembly
'WebApplication9, Version=1.0.1637.27910, Culture=neutral,
PublicKeyToken=5f8ece0453b0db99'. its quite frusting whether i'm doing correct or
not, And also i have a doubt as i'm new to .NET. i heard we don't have to register
dll in .NET but in this case we are doing that why??? please reply me details its
quite urgently Thanx in Advance Happy Programming Cheers
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]