473,385 Members | 1,384 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access a remote MSMQ Server from and ASP page (Q173339)

In reference to Q173339, this code works fine if accessing a local queue on the same Server as the IIS is running, but fails if accessing a remote queue

I have provided credentials via Anonymous Logon, and this then works with the Administrator logon, but with no other credentials. The remote queue has "Everyone" and "ANONYMOUS LOGON" with all access priviliges. Both Servers are running Windows 2003 and MSMQ 3.

Code Follow

<
set qInfo = Server.CreateObject ("MSMQ.MSMQQueueInfo")
qInfo.FormatName = "direct=TCP:192.168.1.104\PRIVATE$\testq
Set qQueue = qInfo.Open(32, 0
Set qMessage = qQueue.PeekCurren
If Not qMessage Is Nothing The
Response.Write qMessage.LookupI
End I
%

Cheer

Bryce
Jul 19 '05 #1
6 5894
Hi Bryce,

Thank you for using the community.

I am not very clear about "this then works with the Administrator logon,
but with no other credentials.". With Anonymous access, ASP application
will use the acocunt "IUser_ComputerName" to access the queue. Instead of
"IUser_ComputerName" , I suggest you may try to use a domain user account
which also be a local administrator. Domain user has permission to access
resource on network and administrator has permission to use local file and
protocol.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Jul 19 '05 #2
Thanks Luke ... I appretiate the quick respons

Sorry I ment "Basic Authentication". I am not running a domain. I have tried changing the local security policy, but with no luck

What I am actually trying to do, is receive some data posted to an ASP page and place it on an MSMQ. The IIS Server will be running in a DMZ, and the MSMQ on an Internal Server. I have tried overriding the login credentials with the ImpersonateLoggedOnUser in a called COM component (using Administrator) just for the MSMQ access, but this doesn't appear to work either

Cheer

Bryc

Jul 19 '05 #3
Hi Bryce,

What is the error message and number your ASP application generated?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #4
Hi Bryce,

Even you have set "ANONYMOUS LOGON" with all access priviliges, the access
to MSMQ will still failed due to WIndows NT ACL. The anonymous user may not
have enough permission to open files on the server. The proper solution is
build your system in a Windows domain environment and use a domain user
with permission on both of the servers. Another possible solution is mirror
account: create an account on the two server with same name and password,
and then use this account to access MSMQ. You may try this to see if it
will work.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #5
Hi Luk

I appretiate you comments. I have tried mirroring the credentials between the servers to no avail. Interstingly enough if I make my test logon (testq) a member of the Administrators group on the IIS Server, and look at the Audit Log on the MSMQ Server the access is shown as being "Administrator" even though I logged on to the IIS Server as testq (this allows access

If I run a standalone windows application on the IIS Server it happily accesses the MSMQ Server. This leads me to beleive that this is a restriction that IIS Logon is imposing on the client

Unfortunately, setting up a domain environment is not a very palatable option

Cheer

Bryce
Jul 19 '05 #6
Hi Bryce,

Since the Windows application can access the MSMQ, I also agee with your
speculation. You may try to enable anonymous access for the ASP appliaction
(virtual folder). Instead of "IUSE_ComputerName", you can use your current
logon account for anonymous access. will this help?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rene' Nielsen | last post by:
Context: Running Windows 2003 Server on an intranet. A web is configured with an anonymous access account that is a domain account that has been granted the desired access to a file on another...
14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
3
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no...
5
by: felecha | last post by:
I have a VB.Net application that runs as a Windows Service and monitors a MessageQueue on another machine. At times that machine will have to be rebooted, so I've been working on how to get my...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
1
by: Thom Little | last post by:
I have a simple web service that requires no input and returns a character string. I created the service and FTPd it to a remote server. The .dll to the .bin directory and the single .asmx file...
7
by: =?Utf-8?B?a21jY29za2V5?= | last post by:
I'm trying to access an access database on the file server from a web server using asp.net and IIS 6.0. I can do it when I have anonymous access enabled in IIS 6.0 as in the public internet web...
1
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...
1
by: lmod | last post by:
I am developing an application using WPF and WCF. This app on the server side will need for WCF services hosted in IIS6 to communicate with WCF services that are hosted as Windows services on the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.