473,583 Members | 3,114 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 3487
"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
6691
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#...
24
2129
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
1981
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...
13
4115
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...
6
2470
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...
4
1935
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...
4
2432
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...
3
9896
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...
4
1570
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...
0
7896
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...
0
7827
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...
0
8328
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...
1
7936
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8195
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...
0
6581
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...
0
5375
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...
0
3845
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1158
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...

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.