473,237 Members | 1,266 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,237 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 5891
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.