2

Closed

windows 7/server2008 issue

description

Microsoft Windows [Version 6.1.7601]does not work on Win7 or Win2008R2C:>C:\WSUS\smartapprove.exe /?Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.UpdateServices.Administration, Version=3.1.6001.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.File name: 'Microsoft.UpdateServices.Administration, Version=3.1.6001.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at SmartApprove.Program.Main(String[] args)WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

file attachments

Closed Aug 7, 2013 at 6:47 AM by dpvreony

comments

dpvreony wrote Dec 11, 2012 at 6:54 PM

Hi

Can you confirm
1) you have the WSUS admin tool installed (just the client part of the install is sufficient)
2) you're running the tool under an elevated command prompt

WSUS appears to need elevated privileges on Server 2008 onwards in order to use the admin API.

Regards

wrote Dec 14, 2012 at 9:15 AM

wrote Dec 20, 2012 at 10:34 PM

wrote Feb 13, 2013 at 10:38 PM

dpvreony wrote Mar 10, 2013 at 9:34 PM

v1.0.1 should resolve the issues across all the operating systems

wrote Mar 14, 2013 at 9:28 AM

Errtus wrote Mar 14, 2013 at 9:28 AM

I'm sorry, but it seems, the issue is still there - as you see the console is there in the back, it's win2008 R2 x64, fresh install, just set up wsus and wanted to use your tool for approval, repeatable every time I try to launch it. Let me know if you'd like any more info. The details (if useful) are Problem signature:
Problem Event Name: APPCRASH
Application Name: SmartApprove.exe
Application Version: 1.0.1.0
Application Timestamp: 513cf61e
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7601.18015
Fault Module Timestamp: 50b8479b
Exception Code: e0434352
Exception Offset: 0000000000009e5d
OS Version: 6.1.7601.2.1.0.272.7
Locale ID: 2057
Additional Information 1: 2413
Additional Information 2: 2413de213f38e5efe700010a55469627
Additional Information 3: 9938
Additional Information 4: 993800cba71bf954ab5d21350b198459

dpvreony wrote Mar 17, 2013 at 11:35 AM

reproduced the issue looking into it

dpvreony wrote Mar 17, 2013 at 1:14 PM

fixed will release 1.0.2 later

wrote Mar 20, 2013 at 5:14 PM

Errtus wrote Mar 20, 2013 at 5:14 PM

hey, there's still a problem, screenshot and details attached, looks like it can't find one of the referenced files.

.NET 4 is installed.

Would it be possible to know what dlls this requires ? I would copy them over to the same folder, as I think that might solve the problem.

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: smartapprove.exe
Problem Signature 02: 1.0.2.0
Problem Signature 03: 5145bd84
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.0.0
Problem Signature 06: 50483a22
Problem Signature 07: 25a3
Problem Signature 08: d
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.272.7
Locale ID: 2057
Additional Information 1: 2a49
Additional Information 2: 2a49e006c888f45db5496d2a223605c3
Additional Information 3: 6dda
Additional Information 4: 6dda2ad1c68b58a18c0d3e9da7e6909b

dpvreony wrote Mar 20, 2013 at 8:08 PM

Hi

It's essentially the same issue as before, except it's failing in my attempt to manually load the WSUS API.

The program attempts backward compatibility by detecting a failure to load the Windows Server 2012 RSAT version of the API, at which point it attempts to load the older WSUS3.1 SP2 version. I've just changed this code, but I won't be able to test it till later.

To confirm all it should need is:
.NET4
WSUS 3 SP2 Admin Console or Windows Server 2012 RSAT.

if you goto your Windows\assembly folder you should see Microsoft.UpdateServices.Administration in there. There may be 2 versions in there a 3.0 and 3.1 - I'm trying to hit V3.1.

Apologies this is taking time to resolve.

Regards

Errtus wrote Mar 21, 2013 at 3:17 PM

Hi,

First of all - don't be sorry, you're trying to create a free app that would help other people, including me so I'm happy to help and/or wait a little bit until it's fully functional.

In the folder you're asking a about I found 2 components by this name, versions 3.1.6001.1 and 3.0.6000.273.
And .NET 4 is installed as well, as I said this is a fresh server I'm going to use for WSUS & WDS, all the updates are installed.

If you google 'CLR20r3' you'll find a couple topics with a similar problem and from what I see people usually solve it by copying over the missing file to the application folder. Maybe it's some permissions problem, seeing as the file you want to get to is in the Windows folder ?

asoncini wrote Mar 21, 2013 at 7:09 PM

Windows Server 2003 R2. WSUS 3.0 SP2. Version 1.0.2. I get the same error, but with version=4.0.0.0

SmartApprove.exe /runset "NameofMyRunset" /test

Excepción no controlada: System.IO.FileNotFoundException: No se puede cargar el
archivo o ensamblado 'Microsoft.UpdateServices.Administration, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' ni una de sus dependencias. El
sistema no puede hallar el archivo especificado. ---> System.IO.FileNotFoundExc
eption: El sistema no puede hallar el archivo especificado. (Excepción de HRESUL
T: 0x80070002)
en System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence
)
en System.Reflection.Assembly.LoadFile(String path)
en SmartApprove.Program.ResolveAssembly(Object sender, ResolveEventArgs args)
en c:\services\TFS\codeplex\tfs01\wsussmartapprove\Windows6_2\smartapprove\Prog
ram.cs:línea 49
en System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String a
ssemblyFullName)
--- Fin del seguimiento de la pila de la excepción interna ---
en SmartApprove.Controller.Job.Execute()
en SmartApprove.Program.Main(String[] args) en c:\services\TFS\codeplex\tfs01
\wsussmartapprove\Windows6_2\smartapprove\Program.cs:línea 69

¿Same Cause?

asoncini wrote Mar 21, 2013 at 8:06 PM

Update to my post: I just tested it whit SmartApprove.exe v 1.0.0.5 (Jan 28 2012) and it works in test mode. But i used the smartapprove.exe.config of the 1.0.2 versión. I will try to find in witch versión it crashes.

wrote May 16, 2013 at 4:12 AM

wrote May 16, 2013 at 4:12 AM

wrote Jun 14, 2013 at 7:43 AM

wrote Aug 7, 2013 at 6:47 AM

wrote Nov 6, 2014 at 9:03 AM

sirtommen wrote Nov 6, 2014 at 9:03 AM

I have the same problem on a Windows Server 2012 R2. See attached screenshot.

sirtommen wrote Nov 6, 2014 at 9:04 AM

The file i attached was 000106.png.
I know the version is 1.0.3, but the same thing happens to 1.0.4