Windows 7 - Trouble deploying .NET 3.0 in my XPE image

Asked By Smedly Tonker
13-Nov-07 11:00 AM
I'm having trouble deploying .NET 3.0 in my XPE image. I have tried to
install .NET 3.0 using step by step instructions
(http://msdn2.microsoft.com/en-us/library/bb417255.aspx). I have all
required components listed in the step by step instructions.

When I install 'dotnetfx3.exe' I gett the following error in
'dd_dotnetfx3error.txt':
[11/13/07,06:08:55] Windows Communication Foundation: [2] Error:
Installation failed for component Windows Communication Foundation. MSI
returned error code 1603

On further examination I see that in 'dd_wcf_retCA14C.txt' the following
error:

ServiceModelReg [06:08:52:907]: System.DllNotFoundException: Unable to load
DLL 'webengine.dll': A dynamic link library (DLL) initialization routine
failed. (Exception from HRESULT: 0x8007045A)
at System.Web.UnsafeNativeMethods.IsapiAppHostGetSiteName(String appId,
StringBuilder buffer, Int32 size)
at
System.Web.Configuration.MetabaseServerConfig.MBGetSiteNameFromSiteID(String
siteID, String& siteName)
at System.Web.Configuration.MetabaseServerConfig..ctor()
at System.Web.Configuration.MetabaseServerConfig.GetInstance()
at System.Web.Configuration.IISMapPath.GetInstance()
at
System.Web.Configuration.WebConfigurationHost.ChooseAndInitConfigMapPath(Boolean
useConfigMapPath, IConfigMapPath configMapPath, ConfigurationFileMap
fileMap)
at
System.Web.Configuration.WebConfigurationHost.InitForConfiguration(String&
locationSubPath, String& configPath, String& locationConfigPath,
IInternalConfigRoot configRoot, Object[] hostInitConfigurationParams)
at System.Configuration.Configuration..ctor(String locationSubPath, Type
typeConfigHost, Object[] hostInitConfigurationParams)
at
System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type
typeConfigHost, Object[] hostInitConfigurationParams)
at
System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel
webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site,
String locationSubPath, String server, String userName, String password,
IntPtr tokenHandle)
at
System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel
webLevel, ConfigurationFileMap fileMap, String path, String site, String
locationSubPath, String server, String userName, String password, IntPtr
userToken)
at
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String
path)
at
System.ServiceModel.Install.Configuration.NativeConfigurationLoader.get_RootWebConfiguration()
at
System.ServiceModel.Install.Configuration.ProtocolsInstallComponent.get_UninstallActionMessage()
at
System.ServiceModel.Install.ServiceModelInstallComponent.GetActionString(InstallAction
action)
at Microsoft.Tools.ServiceModel.ServiceModelReg.Run(String[] args)
at Microsoft.Tools.ServiceModel.ServiceModelReg.TryRun(String[] args)

So it would seem that the problem is 'webengine.dll' is failing to
initialize. But why?

P.S. my image is XPE SP2 with all of the fixes up to October 07. I have the
winlogon component, but I boot into my own shell.
System.Web.Configuration.IISMapPath.GetInstance
(1)
Visual Basic 6.0
(1)
Windows Communication Foundation
(1)
WCF
(1)
XP
(1)
IInternalConfigRoot
(1)
IConfigMapPath
(1)
HostInitConfigurationParams
(1)
  Sean Liming \(MVP\) replied...
13-Nov-07 12:07 PM
If you include Update Rollup 1.0, all you have to do is just add the .NET
Framework 3.0 component.

http://www.microsoft.com/downloads/details.aspx?familyid=70A79E6F-CE42-45C7-ADD2-52F57959ECF2&displaylang=en

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
  Smedly Tonker replied...
13-Nov-07 12:22 PM
Forgot to mention that I already did that
  Dave Caso replied...
20-Nov-07 10:24 AM
Hi,

I have purchased two embeded systems and I am having a similar problem,
I need to install .NET framework on the PC's for my applicaton.

When I try to run the .NET Framework 2.0 for XPe I get an error saying that
it can't find MSVBVM60.dll which I then see is MS Visual Basic 6.0 stuff.

Is that close to your problem?  Sorry if I hijacked this thread ......

Cheers'
Dave
  Smedly Tonker replied...
21-Nov-07 10:40 AM
No,
my problem has to do with the installation of WCF (which is part of .NET
3.0). I get the following stack trace:

Foundation\ServiceModelReg.exe ===
ServiceModelReg [07:59:27:884]: System.DllNotFoundException: Unable to load
DLL 'webengine.dll': A dynamic link library (DLL) initialization routine
failed. (Exception from HRESULT: 0x8007045A)
at System.Web.UnsafeNativeMethods.IsapiAppHostGetSiteName(String appId,
StringBuilder buffer, Int32 size)
at
System.Web.Configuration.MetabaseServerConfig.MBGetSiteNameFromSiteID(String
siteID, String& siteName)
at System.Web.Configuration.MetabaseServerConfig..ctor()
at System.Web.Configuration.MetabaseServerConfig.GetInstance()
at System.Web.Configuration.IISMapPath.GetInstance()
at
System.Web.Configuration.WebConfigurationHost.ChooseAndInitConfigMapPath(Boolean
useConfigMapPath, IConfigMapPath configMapPath, ConfigurationFileMap
fileMap)
at
System.Web.Configuration.WebConfigurationHost.InitForConfiguration(String&
locationSubPath, String& configPath, String& locationConfigPath,
IInternalConfigRoot configRoot, Object[] hostInitConfigurationParams)
at System.Configuration.Configuration..ctor(String locationSubPath, Type
typeConfigHost, Object[] hostInitConfigurationParams)
at
System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type
typeConfigHost, Object[] hostInitConfigurationParams)
at
System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel
webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site,
String locationSubPath, String server, String userName, String password,
IntPtr tokenHandle)
at
System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel
webLevel, ConfigurationFileMap fileMap, String path, String site, String
locationSubPath, String server, String userName, String password, IntPtr
userToken)
at
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String
path)
at
System.ServiceModel.Install.Configuration.NativeConfigurationLoader.get_RootWebConfiguration()
at
System.ServiceModel.Install.Configuration.ProtocolsInstallComponent.get_UninstallActionMessage()
at
System.ServiceModel.Install.ServiceModelInstallComponent.GetActionString(InstallAction
action)
at Microsoft.Tools.ServiceModel.ServiceModelReg.Run(String[] args)
at Microsoft.Tools.ServiceModel.ServiceModelReg.TryRun(String[] args)

Note:

a.. WebEnine.dll is part of my build
b.. I ran 'depends.exe' on 'webengine.dll' to see if there is any missing
components and found no missing decencies.
c.. I loaded process monitor to see what files, registry keys, or system
components fail to be found during the installation. Process monitor has
returned so much information (125,000+ lines) I'm not sure how to sift
though it to see what is useful.
  Sean Liming \(MVP\) replied...
21-Nov-07 12:02 PM
You said that you where running XPe SP2 with all the updates - does this
include FP2007 and Update Rollup 1.0?

--
Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
  Smedly Tonker replied...
10-Dec-07 02:43 PM
That is correct (both FP2007 and Update Rollup 1.0). I figure out the
problem and posted the solution on this blog:

http://blogs.msdn.com/astebner/archive/2007/06/08/3165319.aspx
Create New Account
help
Visual Basic 6.0 in Vista 64 Bits Windows 7 Hi, is posible install Visual Basic 6.0 Vista 64 Bits? Thanks, Alvaro Scorzo Windows 64 bit Discussions Visual Basic 6.0 (1) Visual Studio 2005 (1) Windows Vista (1) Visual Studio (1) Vista (1) VB (1) XP (1) SiteID (1) I've heard that most
Visual Basic Windows 7 I am running a Microsoft Visual Basic 6.0, For 32-bit on Microsoft Visual Basic 6.0, For 32-bit Windows Development Against Access 2003, on windows XP, Professional Version I just cannot figure the problem, This is the first time I am working with Visual Basic and I need help, Someone please. I thank you all in advance See the end
Visual Basic Windows 7 i notice that I have some files with VisualBasic in them. Does XP have Visual Basic on it or are the files only for running applications that use Visual Basic? Windows XP Basics Discussions Microsoft.VisualBasic.targets (1) XP (1) VisualBasic (1) Windows (1) Blake 1) VBS (1) XP does not contain Visual Basic. If the extension is VBS, that means Visual Basic Script which is a different animal
Visual Basic 6.0 Support Windows 7 Want to know till when Microsoft would provide support for Visual Basic 6.0? MSDN Discussions Visual Basic 6.0 (1) April (1) Vbrun (1) Fee based support until April 8, 2008. http msdn2.microsoft.com / en-us / vbrun / ms788708.aspx Drew keywords: Visual, Basic, 6.0, Support description: Want to know till when Microsoft would provide support for Visual