Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2005

Tip: Looking for answers? Try searching our database.

Problem with .NET MSMQ wrapper - FileNotFoundException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christer Brinchmsnn - 29 Sep 2005 08:30 GMT
Hello.
Don't know if this is the right group, but my problem involves COM interop,
hence the post to this group.

We have a simple API which we use to send messages to a private MSMQ queue.
This API is C#, and it abstracts some of the details in using the
System.Messaging namespace. It runs without problems on ASP.NET using 2003
server.

Now, I wish to use this API in asp pages on a 200 server machine.
I have created a C# class library which exposes a "SendMessage" method to
COM. This method uses my .NET messaging API.

Registering of dlls and Server.CreateObject works fine, but I get a strange
FileNotFoundException when  System.Messaging.MessageQueue.Send(Object obj)
eventually gets invoked.

The error message says "File or assembly name 2agydadi.dll or one of its
dependencies, was not found."
The strange thing about this exception is that the name of the file that is
not found changes each time I reload the asp page.

Does anyone have an idea what this means?

Here is the stack trace:

Exception: System.IO.FileNotFoundException - File or assembly name
2agydadi.dll, or one of its dependencies, was not found. /
  at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
  at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
  at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
  at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
  at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
  at System.Xml.Serialization.Compiler.Compile()
  at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
  at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace)
  at System.Xml.Serialization.XmlSerializer..ctor(Type type)
  at System.Messaging.XmlMessageFormatter.Write(Message message, Object
obj)
  at System.Messaging.Message.AdjustToSend()
  at System.Messaging.MessageQueue.SendInternal(Object obj,
MessageQueueTransaction internalTransaction, MessageQueueTransactionType
transactionType)
  at System.Messaging.MessageQueue.Send(Object obj)
  at
Test.Messaging.Queueing.Providers.MicrosoftMessageQueueProvider.Send(String
message)
  at Test.Messaging.MessageBase.Send()
  at TestInterop.MSMQStarter.SendMessage(Int32 refNo, String emailOverride)

Thanks in advance

Christer
Robert Jordan - 29 Sep 2005 09:24 GMT
Hi Christer,

> Hello.
> Don't know if this is the right group, but my problem involves COM interop,
[quoted text clipped - 19 lines]
>
> Does anyone have an idea what this means?

System.Messaging appears to use XML serialization, which
in turn needs to generate some C# code and compile it on the
fly.

The ASP process doesn't appear to have to required rights:

http://support.microsoft.com/default.aspx?scid=kb;en-us;823196

Rob
Christer Brinchmsnn - 29 Sep 2005 10:03 GMT
> Hi Christer,
>
[quoted text clipped - 31 lines]
>
> Rob

Fantastic!!
Thanks a bunch!

C.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.