Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / September 2005

Tip: Looking for answers? Try searching our database.

Package load failures only in Windows 2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Parag Chandra - 22 Sep 2005 21:15 GMT
Hi,

This is probably a real shot in the dark. I've installed my packages via the
same installer onto three virtual machines. One of these machines runs
Win2000 SP4, another Win2003 SP1, and the third WinXP SP2 (all 32-bit). All
of these machines have Whidbey Beta2 installed. All my packages load and
work correctly under WinXP and Win2003, but under Win2000 I get very cryptic
package load failures. I have tried remotely debugging, but it seems my
packages don't even get a chance to load because the corresponding debug
symbols are never loaded by Visual Studio. Just in case it is something
related to the package load key, I installed the VSIP SDK on this virtual
machine as well, but that does not help. I have tried using the Fusion Log
Viewer, and while it doesn't log any failures, I'm not sure I'm using this
tool correctly, because I'm not getting any output at all. Are there any
other things I should be checking? Again, same installer installing the same
files on WinXP and Win2003 works just fine; this is only happening on
Win2000. Thanks.
"Gary Chang[MSFT]" - 23 Sep 2005 08:28 GMT
Hi Parag,

>I have tried remotely debugging, but it seems my packages don't
>even get a chance to load because the corresponding debug
[quoted text clipped - 4 lines]
>Are there any other things I should be checking?
>...

Since your VSPackage has already been installed sucessfully in the Win2K
virtual machine, I suggest you use the following command to log the VS IDE
setup info:

devenv /log Logfile.txt /setup

By the way, have you got such problems before, and do you have another
Windows 2000 machine/virtual machine to test this issue,

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Parag Chandra - 23 Sep 2005 15:43 GMT
Hi Gary,

I ran the command you suggested, and looked at the log. There is one entry
indicating an error:

 <entry>
   <record>17</record>
   <time>2005/09/23 14:08:42.914</time>
   <type>Error</type>
   <source>Microsoft Visual Studio</source>
   <description>LoadLibrary failed for package
[SlickEdit.MSVSP.GUIElements.GUIElementsPackage, GUIElementsWhidbey,
Version=1.0.187.1000, Culture=neutral,
PublicKeyToken=bf81d2044fa6b642]</description>
   <guid>{509B99FF-C721-47BB-B0B6-C2FB2DC3A465}</guid>
   <hr>8007007e</hr>
   <path>C:\\WINDOWS\\system32\\mscoree.dll</path>
 </entry>

I think 0x8007007E means that a module could not be found, so I
double-checked the registry keys for this package. The CodeBase value points
to the correct location of this package, and the corresponding UI DLL
resides in a 1033\ subdir, so I believe it is finding the package DLLs
correctly. Next I checked the manifest for GUIElementsWhidbey.dll to find
the dependencies:

.assembly extern mscorlib
{
 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         //
.z\V.4..
 .ver 2:0:0:0
}
.assembly extern CoreWhidbey
{
 .publickeytoken = (BF 81 D2 04 4F A6 B6 42 )                         //
....O..B
 .ver 1:0:187:1000
}
.assembly extern Microsoft.VisualStudio.Shell.Interop
{
 .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )                         //
.?_....:
 .ver 7:1:40304:0
}
.assembly extern Microsoft.VisualStudio.Shell
{
 .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )                         //
.?_....:
 .ver 2:0:0:0
}
.assembly extern System
{
 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         //
.z\V.4..
 .ver 2:0:0:0
}
.assembly extern 'Microsoft.VisualStudio.Shell.Interop.8.0'
{
 .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )                         //
.?_....:
 .ver 8:0:0:0
}
.assembly extern mscorlib as mscorlib_6
{
 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         //
.z\V.4..
 .ver 1:0:3300:0
}

I've manually verified that each of these dependencies exists either in the
GAC, or in my installation directory alongside the DLL which fails to load.
I even installed my CoreWhidbey.dll assembly into the GAC to see if the
runtime was only looking in the GAC to resolve dependencies, but that
resulted in the exact same error I listed above. Every one of the
dependencies also matches up with respect to public key token and version #,
except for mscorlib. The version of mscorlib in my GAC is 2.0.0.0, which is
what I would expect, but the version it is looking for is 1.0.3300.0. I
didn't think this would matter, but is it possible the machine's security
settings or something else is causing the .NET runtime to look for _exactly_
this version of the assembly, and not a newer, backwards-compatible version?
This is a brand new virtual machine, started with a clean disk. All I have
done is installed Windows 2000 with SP4, installed Whidbey Beta2, and then
installed my plug-in. Regarding your earlier question about whether I have
tried this in another Win2k VM, yes I have. I created another VM and did
exactly the same things, except this time I installed Whidbey RC instead of
Beta2. I still get the same error. I'm really stumped at this point. If it
would help, I would be happy to send you the installer itself to try in your
own Win2k VM.

> Hi Parag,
>
[quoted text clipped - 30 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
Parag Chandra - 23 Sep 2005 17:26 GMT
Ok, I figured it out. The problem was indicated in the logfile all along.
The InprocServer32 key I create during installation points to
"c:\windows\system32\mscoree.dll", but on Windows 2000, this should actually
be "c:\winnt\system32\mscoree.dll". Changing it seems to fix my problems.

> Hi Gary,
>
[quoted text clipped - 120 lines]
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
"Gary Chang[MSFT]" - 24 Sep 2005 08:27 GMT
That's great, Parag!

I am glad to know you found the root cause and sharing this info with us,
have a nice weekend:)

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Parag Chandra" <slickedit@newsgroup.nospam>
>References: <#yg9OI7vFHA.3236@TK2MSFTNGP14.phx.gbl>
<j4hL7BBwFHA.780@TK2MSFTNGXA01.phx.gbl>
<efP5nzEwFHA.3860@TK2MSFTNGP09.phx.gbl>
>Subject: Re: Package load failures only in Windows 2000
>Date: Fri, 23 Sep 2005 12:26:30 -0400
[quoted text clipped - 135 lines]
>>> Get Secure! ¡§C www.microsoft.com/security
>>> Register to Access MSDN Managed Newsgroups!

http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
>>> &SD=msdn
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.