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(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] 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)
--
Nikhil Sarathi 2 3865
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?
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105
"Nikhil" <Ni****@discussions.microsoft.com> wrote in message
news:15**********************************@microsof t.com... 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(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] 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)
-- Nikhil Sarathi
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.
"CT" wrote: 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? -- Carsten Thomsen Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 "Nikhil" <Ni****@discussions.microsoft.com> wrote in message news:15**********************************@microsof t.com...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(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] 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)
-- Nikhil Sarathi This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andrew Gordon |
last post by:
I'm investigating getting Microsoft Navision to do stuff from a Python
script. The recommended way seems to be to use message queues (MSMQ).
I can get Navision to send a message to itself fine. I...
|
by: Vai2000 |
last post by:
hi all, I have a winsvc which reads of messages out an MSMQ. Can someone
help with this problem.
If my server goes down and comes back up my WinSvc doesn't picks up messages
accumulated in the...
|
by: Moti |
last post by:
Hi all
I need your help in MSMQ and C#
I tried to add an event handler for the ReceiveCompleted event
But then I get an error:
“A workgroup installation computer dose not support the...
|
by: MSMQ workgroup and C# |
last post by:
My MSMQ is in workgroup installation.
I tried to add an event handler for the ReceiveCompleted event and to do
It I try to use the SetPermissions. but I get an error of
“A workgroup...
|
by: SRLoka |
last post by:
I have an application that has five threads. All five threads write to the
same MSMQ. All five threads are using the same global instance to send data
to the MSMQ server(on same machine)....
|
by: Alex Nitulescu |
last post by:
Hi. I'm trying to make MSMQ work, so I go to Control Panel, Windows
Components, I select MSMQ (Message Queuing Client Setup, actually) and about
half-way through I get a nice message box saying
...
|
by: yonirabin |
last post by:
Hello,
I am building a system in C# 2.0 using the master - worker design
pattern
The system is supposed to work as follows:
1. The Master sends Command objects to the workers
2. All Commands are...
|
by: yonirabin |
last post by:
Hello,
I am building a system in C# 2.0 using the master - worker design
pattern
The system is supposed to work as follows:
1. The Master sends Command objects to several workers
2. All Commands...
|
by: Florence Tissot |
last post by:
We are seeing some kind of resource leak in our performance lab running an ASP.NET (2.0) application that sends and receives messages from 2 public MSMQ queues. Here's a brief summary of what are...
|
by: jackb |
last post by:
Structure of my application is:
1. Message is dispatched to an application
2. That application puts the message in a private queue
3. Another application reads messages from this queue and...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |