473,695 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

desperate call: referencing specific version Microsoft.Inter op.Security.AzR olesassembly

Hi,

I'm running a web application application using the
Microsoft.Inter op.Security.AzR oles version 1.2.0.0 in the GAC.

After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC.

I seem to be absolutely unable to make the application load version 1.2.

What I've tried:

- deleting all *.dll files under the solution folders

- setting 'specific version' to 'True' on all referencing projects

- adding this to the web.config:

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="Microsoft .Interop.Securi ty.AzRoles"
culture="neutra l"
publicKeyToken= "31bf3856ad364e 35" version="1.2.0. 0" />
<!--<codeBase version="1.2.0. 0" /-->
<!--<bindingRedirec t
oldVersion="2.0 .0.0"
newVersion="1.2 .0.0"/-->

</dependentAssemb ly>
</assemblyBinding >
</runtime>

- creating a binding redirect in the .NET FrameWork 2.0 configuration
from version 2.0.0.0 to 1.2.0.0 (this causes a manifest error, also
causes other applications using 2.0.0.0 to malfunction)

Any help is welcome!

Best regards,

Wiebe Tijsma
Mar 8 '07 #1
7 3490
"Wiebe Tijsma" <ne********@CAP ITALStijsma.com wrote in message
news:uW******** ******@TK2MSFTN GP04.phx.gbl...
Hi,

I'm running a web application application using the Microsoft.Inter op.Security.AzR oles
version 1.2.0.0 in the GAC.

After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC.

I seem to be absolutely unable to make the application load version 1.2.

What I've tried:

- deleting all *.dll files under the solution folders

- setting 'specific version' to 'True' on all referencing projects

- adding this to the web.config:

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="Microsoft .Interop.Securi ty.AzRoles"
culture="neutra l"
publicKeyToken= "31bf3856ad364e 35" version="1.2.0. 0" />
<!--<codeBase version="1.2.0. 0" /-->
<!--<bindingRedirec t
oldVersion="2.0 .0.0"
newVersion="1.2 .0.0"/-->

</dependentAssemb ly>
</assemblyBinding >
</runtime>

- creating a binding redirect in the .NET FrameWork 2.0 configuration from version 2.0.0.0
to 1.2.0.0 (this causes a manifest error, also causes other applications using 2.0.0.0 to
malfunction)

Any help is welcome!

Best regards,

Wiebe Tijsma

AzRoles is a COM automation server and the version included with Vista is version 2
(azroles.dll), that means that you have to use the v2 of the interop assembly. Any reason
why you want to use an "incompatib le" version?

Willy.

Mar 8 '07 #2
Willy Denoyette [MVP] schreef:
"Wiebe Tijsma" <ne********@CAP ITALStijsma.com wrote in message
news:uW******** ******@TK2MSFTN GP04.phx.gbl...
>Hi,

I'm running a web application application using the
Microsoft.Inte rop.Security.Az Roles version 1.2.0.0 in the GAC.

After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC.

I seem to be absolutely unable to make the application load version 1.2.

What I've tried:

- deleting all *.dll files under the solution folders

- setting 'specific version' to 'True' on all referencing projects

- adding this to the web.config:

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="Microsoft .Interop.Securi ty.AzRoles"
culture="neutra l"
publicKeyToken= "31bf3856ad364e 35" version="1.2.0. 0" />
<!--<codeBase version="1.2.0. 0" /-->
<!--<bindingRedirec t
oldVersion="2.0 .0.0"
newVersion="1.2 .0.0"/-->

</dependentAssemb ly>
</assemblyBinding >
</runtime>

- creating a binding redirect in the .NET FrameWork 2.0 configuration
from version 2.0.0.0 to 1.2.0.0 (this causes a manifest error, also
causes other applications using 2.0.0.0 to malfunction)

Any help is welcome!

Best regards,

Wiebe Tijsma


AzRoles is a COM automation server and the version included with Vista
is version 2 (azroles.dll), that means that you have to use the v2 of
the interop assembly. Any reason why you want to use an "incompatib le"
version?

Willy.
Hi Willy,

Thanks for the answer.

There are some reasons for wanting to use the old version:
- The application is going to run on Windows 2003
- Other people are developing on older OS'es
- All current calls are incompatible with azroles.dll v2, all current
calls fail, and I can't rewrite them

Isn't it still weird though that the previous assembly gets completely
ignored, even though all the settings I've applied?

Shouldn't I just get a COM exception, because I'm using an older Interop
assembly for a newer COM dll?

Thanks in advance,

Wiebe Tijsma
Mar 8 '07 #3
"Wiebe Tijsma" <ne********@CAP ITALStijsma.com wrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Willy Denoyette [MVP] schreef:
>"Wiebe Tijsma" <ne********@CAP ITALStijsma.com wrote in message
news:uW******* *******@TK2MSFT NGP04.phx.gbl.. .
>>Hi,

I'm running a web application application using the Microsoft.Inter op.Security.AzR oles
version 1.2.0.0 in the GAC.

After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC.

I seem to be absolutely unable to make the application load version 1.2.

What I've tried:

- deleting all *.dll files under the solution folders

- setting 'specific version' to 'True' on all referencing projects

- adding this to the web.config:

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="Microsoft .Interop.Securi ty.AzRoles"
culture="neutra l"
publicKeyToken= "31bf3856ad364e 35" version="1.2.0. 0" />
<!--<codeBase version="1.2.0. 0" /-->
<!--<bindingRedirec t
oldVersion="2.0 .0.0"
newVersion="1.2 .0.0"/-->

</dependentAssemb ly>
</assemblyBinding >
</runtime>

- creating a binding redirect in the .NET FrameWork 2.0 configuration from version
2.0.0.0 to 1.2.0.0 (this causes a manifest error, also causes other applications using
2.0.0.0 to malfunction)

Any help is welcome!

Best regards,

Wiebe Tijsma


AzRoles is a COM automation server and the version included with Vista is version 2
(azroles.dll ), that means that you have to use the v2 of the interop assembly. Any reason
why you want to use an "incompatib le" version?

Willy.

Hi Willy,

Thanks for the answer.

There are some reasons for wanting to use the old version:
- The application is going to run on Windows 2003
- Other people are developing on older OS'es
- All current calls are incompatible with azroles.dll v2, all current calls fail, and I
can't rewrite them
I'm afraid you'll have to build two versions of your application. Vista comes with
azroles.dll and it's Interop Assembly installed in the GAC, W2K3 comes with an other (older)
version of azroles.dll. What you are trying, is to access the newer azroles.dll with an
older (incompatible) version of the IA.
Isn't it still weird though that the previous assembly gets completely ignored, even
though all the settings I've applied?
The Interop Assembly isn't getting ignored, the IA used to create the RCW, but this one
isn't compatible with the underlying COM DLL (azroles.dll), and (more importantly) it's
registered typelib is incompatible.
Shouldn't I just get a COM exception, because I'm using an older Interop assembly for a
newer COM dll?
Not necessarily, all depends on the incompatibiliti es.

Willy.
Mar 8 '07 #4

Jeez... Sounds I was naive to believe this 'DLL hell thing is all over
with this .NET 1.0' thing.

Yes I know it's COM, not my choice anyway :(

I'll still give registering the old DLL a try though.

Thanks for the answers!

Willy Denoyette [MVP] schreef:
"Wiebe Tijsma" <ne********@CAP ITALStijsma.com wrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>Willy Denoyette [MVP] schreef:
>>"Wiebe Tijsma" <ne********@CAP ITALStijsma.com wrote in message
news:uW****** ********@TK2MSF TNGP04.phx.gbl. ..
Hi,

I'm running a web application application using the
Microsoft.In terop.Security. AzRoles version 1.2.0.0 in the GAC.

After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC.

I seem to be absolutely unable to make the application load version
1.2.

What I've tried:

- deleting all *.dll files under the solution folders

- setting 'specific version' to 'True' on all referencing projects

- adding this to the web.config:

<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="Microsoft .Interop.Securi ty.AzRoles"
culture="neutra l"
publicKeyToken= "31bf3856ad364e 35"
version="1.2 .0.0" />
<!--<codeBase version="1.2.0. 0" /-->
<!--<bindingRedirec t
oldVersion="2.0 .0.0"
newVersion="1.2 .0.0"/-->

</dependentAssemb ly>
</assemblyBinding >
</runtime>

- creating a binding redirect in the .NET FrameWork 2.0
configuratio n from version 2.0.0.0 to 1.2.0.0 (this causes a
manifest error, also causes other applications using 2.0.0.0 to
malfunctio n)

Any help is welcome!

Best regards,

Wiebe Tijsma
AzRoles is a COM automation server and the version included with
Vista is version 2 (azroles.dll), that means that you have to use the
v2 of the interop assembly. Any reason why you want to use an
"incompatible " version?

Willy.

Hi Willy,

Thanks for the answer.

There are some reasons for wanting to use the old version:
- The application is going to run on Windows 2003
- Other people are developing on older OS'es
- All current calls are incompatible with azroles.dll v2, all current
calls fail, and I can't rewrite them

I'm afraid you'll have to build two versions of your application. Vista
comes with azroles.dll and it's Interop Assembly installed in the GAC,
W2K3 comes with an other (older) version of azroles.dll. What you are
trying, is to access the newer azroles.dll with an older (incompatible)
version of the IA.
>Isn't it still weird though that the previous assembly gets completely
ignored, even though all the settings I've applied?

The Interop Assembly isn't getting ignored, the IA used to create the
RCW, but this one isn't compatible with the underlying COM DLL
(azroles.dll), and (more importantly) it's registered typelib is
incompatible.
>Shouldn't I just get a COM exception, because I'm using an older
Interop assembly for a newer COM dll?

Not necessarily, all depends on the incompatibiliti es.

Willy.

Mar 8 '07 #5
"Wiebe Tijsma" <ne********@CAP ITALStijsma.com wrote in message
news:uF******** ******@TK2MSFTN GP04.phx.gbl...
>
Jeez... Sounds I was naive to believe this 'DLL hell thing is all over with this .NET 1.0'
thing.

Yes I know it's COM, not my choice anyway :(

I'll still give registering the old DLL a try though.

Thanks for the answers!
This is not about DLL hell, this is about versioning. .NET doesn't solve that issue.
Note also that registering the "old" version is not a good idea (although I won't stop you
doing this ;-)), you don't know about the azroles.dll dependencies (dll's and API's), and,
this is a system component and as such not distributable.

Willy.

Mar 8 '07 #6
On Mar 8, 10:53 am, "Willy Denoyette [MVP]"
<willy.denoye.. .@telenet.bewro te:
"Wiebe Tijsma" <newsREM...@CAP ITALStijsma.com wrote in message

news:uF******** ******@TK2MSFTN GP04.phx.gbl...
Jeez... Sounds I was naive to believe this 'DLL hell thing is all over with this .NET 1.0'
thing.
Yes I know it's COM, not my choice anyway :(
I'll still give registering the old DLL a try though.
Thanks for the answers!

This is not about DLL hell, this is about versioning. .NET doesn't solve that issue.
Note also that registering the "old" version is not a good idea (although I won't stop you
doing this ;-)), you don't know about theazroles.dll dependencies (dll's and API's), and,
this is a system component and as such not distributable.

Willy.
I am trying to deploy the vista azroles.dll (v6.0.6000.1638 6) to WinXP
and get an error when I try to register the dll.

The reason why I'm doing this is because v6.... has IAzClientContex t3
that the lower one doesn't

Any clues as to why the regsvr32 azroles.dll is failing?

Thanks

Mar 14 '07 #7
On Mar 8, 10:53 am, "Willy Denoyette [MVP]"
<willy.denoye.. .@telenet.bewro te:
"Wiebe Tijsma" <newsREM...@CAP ITALStijsma.com wrote in message

news:uF******** ******@TK2MSFTN GP04.phx.gbl...
Jeez... Sounds I was naive to believe this 'DLL hell thing is all over with this .NET 1.0'
thing.
Yes I know it's COM, not my choice anyway :(
I'll still give registering the old DLL a try though.
Thanks for the answers!

This is not about DLL hell, this is about versioning. .NET doesn't solve that issue.
Note also that registering the "old" version is not a good idea (although I won't stop you
doing this ;-)), you don't know about theazroles.dll dependencies (dll's and API's), and,
this is a system component and as such not distributable.

Willy.
I am trying to deploy the vista azroles.dll (v6.0.6000.1638 6) to
WinXP. When attempting the register the dll i get the following error
"LoadLibrary("a zroles.dll") failed - The specified precedure could not
be found.

Any clues?

Mar 14 '07 #8

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

Similar topics

0
6697
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft Visual Basic .NET version of this article, see 308049. For a Microsoft Visual C++ .NET version of this article, see 310071. For a Microsoft Visual J# .NET version of this article, see 320627. This article refers to the following Microsoft .NET...
24
2145
by: Ministry Of Jute | last post by:
I returned home from work today to find an Airborne Express Letter Express mailer leaning up against my apartment door. The return addressee was Microsoft Suite 300 1165 Eastlake Avenue E Seattle, WA 98109
2
1987
by: Andrew S. Giles | last post by:
OK, Ive run my head into this wall for too long. I need help. I am developing an applicaiton in C# to present a user with a GUI to specify a configurable list of machines that he wants to listen to the output of. Specify a filename to shove all of the data (into Excel), and start the whole thing going. I get that done no problem. The problem comes with the Data. The data is coming from a different application, and I am not 100% sure of...
13
4134
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make sense to punch out from managed code to native code (I was using IJW) in order to do some amount of floating point work and, if so, what that certain amount of floating point work was approximately. To attempt to do this I made a program that...
6
2471
by: Mikey_Doc | last post by:
Hi We are running cms 2002, Framework 1.0 with Visual studio 2002. We have just upgraded to Framework 1.1 and visual studio 2003. All of our database connection strings are stored within the machine config, this was necessary as our web site has 4 environments and the database server has a different name in each. Since the upgrade the applications can't read the strings in the
4
1945
by: Jeff B | last post by:
I am having a very perplexing problem with setting the user's roles. I have tried to figure this out for 2 days now. When the user logs in to the site, I retrieve the roles from the database and create a semicolon delimited string listing the roles returned and store them in the forms authentication cookie. Then in the global.asax Application_AuthenticateRequest, I retrieve the FormsAuthenticationTicket from the forms authentication...
4
2437
by: TWEB | last post by:
I think I may have an IIS / ASP.Net Configuration issue that I need some guidance with resolving. Here's the problem: a) I have a .stm file. b) I referenc a .aspx file on this .stm file using a server-side-include directive: <!-- include virtual="../../foobar.aspx"--> c)When the .stm file is rendered: The .aspx file is included, but it doesn't look like the ASP.NET engine is processing the page, because I see the raw
3
9911
by: | last post by:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It works perfectly on my machine, but it fails on my customers' PCs that have identical versions of Win XP (SP1) and Excel (SP1) installed. The error is: System.Runtime.InteropServices.COMException(0x800A03EC): Exception from HRESULT: 0x800A03EC. at Microsoft.Office.Interop.Excel._Worksheet.Paste(Object Destination, Object Link) at...
4
1575
by: Nalaka | last post by:
Hi, I have some request specific data that gets created in a "early event", that I need to pass around to many other events. I need access to this data during that request. (and more importantly disapears after the request is completed). But... asp.net "Request" is read only. Is there a request specific global place, where I can put this data into?
0
8623
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
8562
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
9113
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
8976
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7655
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...
0
5837
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4339
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
2265
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
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.