Search:
Namespaces
Discussions
.NET v1.1
Feedback
trouble with Message queue namespace
Messages
Related Types
This message was discovered on
ASPFriends.com 'ngfx-messaging' list
.
Ray Houston
Hi,
I'm trying to use the message queue namespace, but I get the following
error:
CS0234: The type or namespace name 'Messaging' does not exist in the class
or namespace 'System' (are you missing an assembly reference?)
I'm using this line in my page:
<%@ Import Namespace="System.Messaging" %>
I have Message Queue installed on my box. What am I missing?
thanks,
| ASP.net DOCS =
http://www.aspng.com/docs
| [aspngfreeforall] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/aspngfreeforall
= JOIN/QUIT
| news://ls.asplists.com = NEWSGROUP
Reply to this message...
Wally McClure
Ray,
Do you have a reference to the System.Messaging.dll?
Wally
McClure Development
865-693-3004
118 Durwood Rd.
Knoxville, TN 37922
[Original message clipped]
Reply to this message...
steve@superexpert.com (steve)
Ray,
You need to explicitly reference the System.Messaging.dll assembly in the
Web.Config (or machine.config) file. Open the Web.Config file and find the
section labeled <assemblies>. You'll need to add a reference to the
System.Messaging.dll assembly there.
-- Hope this helps
Stephen Walther
[Original message clipped]
Reply to this message...
Ray Houston
Can you explain to me why? How come I don't have to do that with other
assemblies? Thanks for your help.
-Ray
-----Original Message-----
From: steve [mailto:
Click here to reveal e-mail address
]
Sent: Monday, October 01, 2001 8:29 PM
To: ngfx-messaging
Subject: [ngfx-messaging] RE: trouble with Message queue namespace
Ray,
You need to explicitly reference the System.Messaging.dll assembly in the
Web.Config (or machine.config) file. Open the Web.Config file and find the
section labeled <assemblies>. You'll need to add a reference to the
System.Messaging.dll assembly there.
-- Hope this helps
Stephen Walther
[Original message clipped]
| [ngfx-messaging] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngbeta.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
steve@superexpert.com (steve)
Hi Ray,
Only certain assemblies are referenced by default in the Web.Config file.
Here's what mine looks like by default:
<assemblies>
<add
assembly="mscorlib" />
<add
assembly="System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />
<add
assembly="System.Web, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add
assembly="System.Data, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add
assembly="System.Web.Services, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add
assembly="System.Xml, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add
assembly="System.Drawing, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add
assembly="*" />
</assemblies>
Notice that each assembly is explicitly referenced. The final assembly="*"
directive is for all the assemblies in your application bin directory. To
get System.Messaging to work, you need to modify this section to look like
this:
<assemblies>
<add
assembly="mscorlib" />
<add
assembly="System.Messaging, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add
assembly="System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />
<add
assembly="System.Web, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add
assembly="System.Data, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add
assembly="System.Web.Services, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add
assembly="System.Xml, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add
assembly="System.Drawing, Version=1.0.2411.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add
assembly="*" />
</assemblies>
I have several examples of using Message Queuing in my upcoming book,
ASP.NET Unleashed. I've been putting up code samples from this book at the
Superexpert Web site (www.Superexpert.com) if you are interested.
-- Best,
Steve
----- Original Message -----
From: "Ray Houston" <
Click here to reveal e-mail address
>
To: "ngfx-messaging" <
Click here to reveal e-mail address
>
Sent: Tuesday, October 02, 2001 5:05 AM
Subject: [ngfx-messaging] RE: trouble with Message queue namespace
[Original message clipped]
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com