-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Clouds
Message 1 in Discussion
Hello Everyone !
In my console application say ABC, I am trying to call a method
ImportTransactions... from another dll (say Transaction.Dll).
I am using the asynchronous programming framework provided by .NET.. the code
looks like snippet.
' Create the delegate.
Dim dlgt As New AsyncDelegate(AddressOf
objSyncSrvc.ImportTransactions)
' Initiate the asynchronous call.
Dim ar As IAsyncResult =
dlgt.BeginInvoke(strFileName, "Imported by the automated service.",
objContext, Nothing, Nothing)
While ar.IsCompleted = False
Thread.Sleep(10)
End While
' Call EndInvoke to Wait for the asynchronous
call to complete,
' and to retrieve the results.
Dim ret As Integer = dlgt.EndInvoke(ar)
The objSyncSrvc is the object of Transaction.Dll
BeginInvoke method begins the method call asynchronously (Here i m passing
all the required parameters for the method ImportTransactions)
Once the method is completed i m calling EndInvoke.
In EndInvoke, I am getting an error "Access to the path "...\ABC\bin" is
denied"
I tried to debug the program and i found inside the ImportTransactions
method, I am generating a log file in this directory..
I have the administrative previleges.. i dont think it has to do something
with the folder sharing and other access rights on the directory structure..
My guessing is it has something to do with the code access security. Does
anyone of you have any idea about this ?
Or if anyone has worked on Asynchronous programming model.. please let me
know.. Its very urgent.
Waiting for your replies...
Thanks and regards
Badal
Associate Consultant
MindTree Consulting Pvt. Ltd.
# 42, 27th Cross,
II Stage, Banashankari,
Bangalore- 560 070
Ph: 6711777 Extn: 2258
DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged.
Before opening attachments please check them for viruses and defects. MindTree
Consulting Private Limited (MindTree) will not be responsible for any viruses or
defects or any forwarded attachments emanating either from within MindTree or outside.
If you have received this message by mistake please notify the sender by return
e-mail and delete this message from your system. Any unauthorized use or dissemination
of this message in whole or in part is strictly prohibited. Please note that e-mails
are susceptible to change and MindTree shall not be liable for any improper, untimely
or incomplete transmission.
-----------------------------------------------------------
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]