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 / General / October 2004

Tip: Looking for answers? Try searching our database.

MSMQ Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nikhil - 28 Oct 2004 21:19 GMT
I have an MSMQ dll created in C# when called through a C# windows form
application it works fine but when I call it using an ASP page I get an error
while trying to send a message attached the stack trace, any insight would be
highly appreciated.

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 Queue.SendRequest.Perform(String& strRequest, Int32& iRetCode, String&
strResponse)

Signature

Nikhil Sarathi

CT - 28 Oct 2004 22:30 GMT
Well, the only thing I do read from your post is that it's to do with
security. Is the user account used for your ASP.NET worker process (ASPNET
on Windows XP) allowed to load your MSMQ assembly? What's the offending
code, do you perform any other actions on your MSMQ assembly from your
ASP..NET application that actually works?
Signature

Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105

>I have an MSMQ dll created in C# when called through a C# windows form
> application it works fine but when I call it using an ASP page I get an
[quoted text clipped - 29 lines]
> String&
> strResponse)
Nikhil - 29 Oct 2004 15:15 GMT
The only thing that both ASP & the .NET application do is to instantiate an
object of the dll & call a method. The offending line of code is the
queue.Send & I pass a message object to it. I saw a couple of posts on the
internet which said I should give everyone access to my Windows\Temp
directory, Im not sure why that would be required.

> Well, the only thing I do read from your post is that it's to do with
> security. Is the user account used for your ASP.NET worker process (ASPNET
[quoted text clipped - 34 lines]
> > String&
> > strResponse)

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.