473,725 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access is denied when calling a remote serviced component (framework 1.1->1.0 issue)

Here is my scenario:

Web server
------------
Framework 1.1
Application proxy for the serviced component

Component server
-------------------
Framework 1.0
Serviced component (written in 1.0)

There is Access Denied error message on the web server when a call is made
to the component.

The problem goes away if framework 1.1 is uninstalled.

I switched the ISS binding with ASPNET_REGIIS - did not help...

Has anybody seen this before? How can I fix it?

Thanks,

-Stan
Nov 18 '05 #1
9 2078
Hi Stan,

From your description, you are calling a remote serviced component which
is developed in .net framework 1.0 from a web applicaton on a server. And
you encountered the Access Denied error yes?

As you mentioned that the problems gone away when you remove the framework
1.1 on the webserver? That means that the webserver has both 1.0 and 1.1
framework installed ,yes? If so, I think before we do some further
troubleshoot, we can first confirm that whether its the different version
that cause the problem.
Can you create a winform application( both under 1.0 and 1.1 framework) to
call the remote component to see what's the result.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2
> Can you create a winform application( both under 1.0 and 1.1 framework) to
call the remote component to see what's the result.


WinForm or Console application does not have such problem..
Nov 18 '05 #3
Hi Stan,

Thanks for your followup. As you said that
=============== =============== =======
WinForm or Console application does not have such problem..
=============== =============== =======

Do you mean that both 1.0 or 1.1 's winform or console application can
correcttly consume the remote serviced component? If so, I think we can
address the problem as a secuirty issue. And the Serviced Component has
restriction on "Access Security" and "Launch Security". You can have a
check in the Configuration setting on the Serviced Component's server
through the
Administrator tools-->Component Services tool

When you running a winform or console application, it's security context is
your current login user on the machine. However, ASP.NET will by default
use the process account (Machine\ASPNET or NetworkService on WIN2K3 IIS6).
You can try use the "impersonat e" to impersonate the ASP.NET run under a
powerful domain account( maybe the login account when you running the
winform application) to see whether the problem is really as we expected.
If you're not familiar with impersonate, here is a kb article which maybe
helpful:

#INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/default...b;en-us;306158

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #4
Steven,
When you running a winform or console application, it's security context is your current login user on the machine. However, ASP.NET will by default
use the process account (Machine\ASPNET or NetworkService on WIN2K3 IIS6).


That was the first thing I tried - setting processModel to the domain
account. It did not help.

What exactly is different in terms of security in 1.1? Why do I get 'Access
Deinied'?

Thanks,

-Stan

Nov 18 '05 #5
Hi Stan,

It is strange that there is no any event log.
I think you may try to see if the policies have been opened.
1. Audit Logon event (check success and failure)
2. Audit Account logon event (check success and failure)
3, Audit Object access(check success and failure)

We may find that by follow the steps below.
Start/Control panel/Administrative Tools/Local Security Policy/
In the Local Security Policy dialog, navigate to Security setting/Local
policies/Audit policy

After that we should find some events in the Security Log in the event log.

You may have a try and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

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

Nov 18 '05 #6
Ed
In 1.1 when ApplicationAcce ssControlAttrib ute is not present in the assembly,
the COM+ security configuration is enabled by default. In 1.0 security is
disabled by default. Maybe this is the problem.

"Stan" wrote:
Here is my scenario:

Web server
------------
Framework 1.1
Application proxy for the serviced component

Component server
-------------------
Framework 1.0
Serviced component (written in 1.0)

There is Access Denied error message on the web server when a call is made
to the component.

The problem goes away if framework 1.1 is uninstalled.

I switched the ISS binding with ASPNET_REGIIS - did not help...

Has anybody seen this before? How can I fix it?

Thanks,

-Stan

Nov 18 '05 #7
Yes, but if security is enabled, should I see that COM+ explorer? The
security checkbox was not checked...

"Ed" <Ed@discussions .microsoft.com> wrote in message
news:1C******** *************** ***********@mic rosoft.com...
In 1.1 when ApplicationAcce ssControlAttrib ute is not present in the assembly, the COM+ security configuration is enabled by default. In 1.0 security is
disabled by default. Maybe this is the problem.

"Stan" wrote:
Here is my scenario:

Web server
------------
Framework 1.1
Application proxy for the serviced component

Component server
-------------------
Framework 1.0
Serviced component (written in 1.0)

There is Access Denied error message on the web server when a call is made to the component.

The problem goes away if framework 1.1 is uninstalled.

I switched the ISS binding with ASPNET_REGIIS - did not help...

Has anybody seen this before? How can I fix it?

Thanks,

-Stan

Nov 18 '05 #8
Hi Stan,

Yes, we can check the security setting in the COM+ explorer. You may find
the three counterpart options by following the steps below.
1. Open COM+ explorer by running dcomcnfg
2. Navigate to the component we are using
3. right click on the component and click properties
4. select security tab
5. You may find security level, authentication level and Impersonate level
which is corresponding to the three options of
ApplicationAcce ssControlAttrib ute.

We can use the winform application but not the Webform application to
access to the Serviced component, so I suggest you check the eventlog's
security section on both the application proxy located computer and the
component located computer. If we do find we are using the same account to
access to the serviced component, but windows form succeeded while webform
application failed I think you may need to contact Microsoft PSS for
further and detailed trouble shooting, since we can not reproduce the
problem, it is hard to us to troubleshooting the problem in newgroup.

Thank for you understanding.

Best regards,

Peter Huang
Microsoft Online Partner Support

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

Nov 18 '05 #9
Hi Stan,

Have you had a chance to check the suggestions in the former reply or have
you got this problem resolved? If there is anything else we can help,
please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Nov 18 '05 #10

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

Similar topics

5
1697
by: Stan | last post by:
Here is my scenario: Web server ------------ Framework 1.1 Application proxy for the serviced component Component server ------------------- Framework 1.0
1
4097
by: Lyn Duong | last post by:
Hi, I have tried creating a linked server in microsoft sql 2000 to a db2 for vm database. I use a db2 v8 admin client, configure it via client configuration setup and then in Microsoft SQL Server 2000 enterprise manager, I create a linked server, I use ibm oledb driver for db2, datasource = mydatabase, product=my database, provider = db2oledb. When I try to access the database via an openquery to the linked server, I get an error from...
1
1684
by: Bob | last post by:
I'm all of a sudden getting an access denied error on my web server when I access it from a browser: CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\projmgmt\ede965f0\db1b3c5e\thwdzsif.dll' -- 'Access is denied. ' I understand that .NET was attempting to do a JIT compilation since this is a newer version (tested and ran well on another server). I also know that this is...
0
1502
by: Anton Sokolovsky | last post by:
Hello All, Please help. I am completely stuck. Any suggestions are very welcomed. I have ASP.NET application that impersonates certain user <impersonate="true" userName="registry:..." password="registry:..."/> Everythins runs ok on many systems except one: when connecting to database (either SQL Authentication or Trused - doesn't matter) the applications
4
4009
by: Chrisser | last post by:
Hi I have an Intranet webpage starting with a mainpage from which the user can open a new window using a link that is calling a function: function openWindows(){ var left, top; width = (window.screen.availWidth/2)+130; width2 = (window.screen.availWidth/2)-130; height = (window.screen.availheight);
1
10064
by: Kazmataz | last post by:
Hi, I have set my .net application to impersonate and is installed on a Web Farm of 4 servers. In this application I allow users to upload files to the server. I have it setup so that no matter which server you're on it saves the uploaded file to Web1 using a UNC path share set as a key in web.config \\webserver1\D$\Inetpub\wwwroot\project\. My application works fine on 3 of the 4 servers, except the last server which is a domain...
0
1300
by: Jeremy | last post by:
If I create a folder in outlook and give it a homepage url to an ajax asp.net page I've developed, I get ajax errors on my page when viewed in outlook. If I click on a button in an update panel I will get an Internet Explorer Script Error "Access is denied." If I clicke Yes to continue running scripts, and click the button in the update panel again I'll get an error "Sys.InvalidOperationException: Cannon abort when executor has not...
4
2660
by: =?Utf-8?B?RUdPTg==?= | last post by:
nHi! We have a C# .NET application (exe) that is started by a service (like a watchdog) and the application is thereby runing as Local System account. On cetain computers (only a very few of thousands) it seems like the call InternetGetConnectedState gets FALSE back (even when there is a connection) and when i check GetLastError it says 5=Access denied, that InternetGetConnectedState got Access denied and thereby returns false (I...
3
5050
by: wbabbit | last post by:
I am getting an "Access Denied" error when trying to access an executable in my web directory. I have tried cmd.exe, ftp.exe, even notepad.exe. I have given everyone, including the anonymous user, ASPNET user, and NETWORK SERVICE user full control of the entire directory, but am still getting the error. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Source Error:
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.