473,383 Members | 1,868 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,383 software developers and data experts.

Creation of simple COM-Objects fails after latest ASP.net security patch

Hi.

I am in the progress of migrating an ASP/vbscript application to
ASP.net/VB.
At the moment my asp.net code still contais a lot of late bound
com-objects with worked well until I installed the latest asp.net
security-patch from MS.
The application is (at the moment) impersonated via web.config to a
domain administrators account (via aspnet_setreg.exe).

Now even the creation of the simplest Com-Object fails with a
System.Exception: Cannot create ActiveX component

<%@ Page Language="VB" Debug="true" ASPCompat="true" %>
<script runat="server">
Sub Page_Load (ByVal Sender As Object, _
ByVal E As EventArgs)
dim objRootDSE = GetObject("LDAP://rootDSE")
End Sub
</script>
<html><body>
</body></html>

Did any body else notices a similar behaviour or knows a way to avoid
this problem?

Jan
Nov 19 '05 #1
1 1270
Jan Peter Stotz schrieb:

Ok, no answers, but I was able to figure out what was the real problem.
At the moment my asp.net code still contais a lot of late bound
com-objects with worked well until I installed the latest asp.net
security-patch from MS.


It my have something to do with the mentioned patch but I am not sure.
Another mistake was, that not all com-objects were affected. I had several
independent problems with different COM objects.

The one reason was that I imported ActiveDS.tlb (I need the
SecurityDescriptor and AccessControllist) and it looks like this assembly
collides with some internal assembly of the same name.
My be for that reason under some circumstances the call
GetObject("LDAP://rootDSE") did not resolve the address in ActiveDirectory
but in local filesystem (really strange).
Now, I bypass this problem by using the System.DirectoryServices classes:
DirectoryEntry rootDSE = new DirectoryEntry("LDAP://RootDSE");

And the ActiveDS.tlb now uses a different name is only used via fully
qualified Classnames (now ActiveDIS.Securitydescriptor).

Jan
Nov 19 '05 #2

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

Similar topics

1
by: Eric | last post by:
I've got a fairly simple php script which creates a simple gif image. Now, if I use this script on my primary webhost, everything works correctly and the image is created. However, I would also...
6
by: | last post by:
I have a class with overloading operator new. (Because, if an identical object exists, return a pointer to existed object instead of a new pointer) It has no sense (it is dangerous) to allocate an...
3
by: Steven Blair | last post by:
Hi, I have a trace log file for a system I am writing. If the creation date is older than 14 days, I have to rename that file (File.Move). The next time a trace message is required a new file is...
7
by: Mark Prenter | last post by:
Hi all, I'm fairly new to .NET and I haven't done much in C++ before, nothing complex anyway, but I have a pretty good understanding of programming in general. What I'm trying to do is create a...
3
by: Nick Dreyer | last post by:
I was quite surprised to notice that Sub New() gets called twice, once at declaration time and once at creation time. I can't figure out why it would be called at declaration if there is no class...
1
by: yashgt | last post by:
Hi, I have installed Visual Studio 2005 Team Edition for Developers, on my Windows XP PC. The exact VS version is 8.0.50727.42. I created a simple Windows application in VB .NET and add a button...
1
by: Mike Read | last post by:
Hi I'm trying to track down why the creation of socket connections on my system is taking several minutes. I initially noticed this when attempting a JDBC connection but even the simple ...
0
by: vasudevram | last post by:
Hi group, xtopdf: PDF creation / conversion toolkit: alpha release of v1.3 This is actually a somewhat preliminary announcement, but may be of interest to developers / users who know Python...
3
by: ALEXURC | last post by:
I'm looking for a simple method to delete a folder after 72 "Business hours" (saturday/sunday doesnt count) since its creation. Note that This is on a linux system and I realize that it will be the...
5
by: =?Utf-8?B?c25vd2JraWQx?= | last post by:
I have Visual C++ 2005 express edition, I downloaded it from the microsoft website. I am using it for school. I started an assignment in the lab at my school, and for the asssignment I had to...
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...
0
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
0
BarryA
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...
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...

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.