http://bugs.winehq.org/show_bug.cgi?id=16884
Summary: .NET 3.0: WCF installer fails due to LsaLookupNames2
stub
Product: Wine
Version: 1.1.12
Platform: Other
URL: http://www.microsoft.com/downloads/details.aspx?FamilyID
=10cc340b-f857-4a14-83f5-25634c3bf043
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: advapi32
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
after getting past bug 16883 the next one...
Prerequisites:
---
1. clean WINEPREFIX
2. sh mywinetricks -q wmicore
3. sh winetricks -q dotnet20
4. download .NET 3.0 Framework installer from: http://download.microsoft.com
/download/4/d/a/4da3a5fa-ee6a-42b8-8bfa-ea5c4a458a7d/dotnetfx3setup.exe
(sha1sum:
a566bcd2ffffc3842a95adc57f7df3f8cd11577f)
5. export _SFX_CAB_SHUTDOWN_REQUEST=1 (workaround, see bug 9158)
6. wine ./dotnetfx3setup.exe
It might take a while until all required packages are downloaded using BITS.
Note: If you need to redo steps, backup the directory "dotnetfx304506.30" from
"c:\\windows\\temp" to a different location, remove ~/.wine, copy
"dotnetfx304506.30" again to "c:\\windows\\temp" to prevent BITS from
downloading over and over again.
---
The WCF installer still fails:
"c:\\windows\\temp\\dd_wcf_retCA5476.txt":
--- snip ---
ServiceModelReg [14:57:53:680]: Starting tool
'C:\windows\system32\wbem\mofcomp.exe' with parameters
'"C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"'.
ServiceModelReg [14:57:55:965]: Microsoft (R) 32-bit MOF Compiler Version
1.50.1085.0001
ServiceModelReg [14:57:55:966]: Copyright (c) Microsoft Corp. 1997-1999. All
rights reserved.
ServiceModelReg [14:58:03:464]:
ServiceModelReg [14:58:03:467]: Parsing MOF file:
C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof
ServiceModelReg [14:58:06:160]: MOF file has been successfully parsed
ServiceModelReg [14:58:06:164]: Storing data in the repository...
ServiceModelReg [14:58:07:047]: An error occurred while creating object 3
defined on lines 20 - 24:
ServiceModelReg [14:58:07:053]: 0X80041002 Class, instance, or property
'HostingModel' was not found.
ServiceModelReg [14:58:07:280]: Compiler returned error 0x80041001
ServiceModelReg [14:58:07:280]:
ServiceModelReg [14:58:07:291]:
ServiceModelReg [14:58:07:330]: Tool 'C:\windows\system32\wbem\mofcomp.exe'
with parameters '"C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"' exited with code '3'.
ServiceModelReg [14:58:07:473]: Warning: Failure executing
"C:\windows\system32\wbem\mofcomp.exe" with parameters
""C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"": System.ApplicationException: Unexpected result 3
executing C:\windows\system32\wbem\mofcomp.exe with
"C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"
at System.ServiceModel.Install.InstallHelper.ExecuteWait(String program,
String parameters, Int32[] allowedExitCodes)
at System.ServiceModel.Install.WmiInstallComponent.OnInstall(OutputLevel
outputLevel)
ServiceModelReg [14:58:08:291]: Error: WMI classes are not installed.
ServiceModelReg [14:58:08:304]: Repairing: Windows CardSpace (idsvc)
ServiceModelReg [14:58:08:610]: Repairing: Net.Tcp Port Sharing Service
(NetTcpPortSharing)
ServiceModelReg [14:58:09:011]:
System.Security.Principal.IdentityNotMappedException: Some or all identity
references could not be translated.
at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection
sourceAccounts, Type targetType, Boolean forceSuccess)
at System.Security.Principal.NTAccount.Translate(Type targetType)
at
System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification
modification, AccessRule rule, Boolean& modified)
at
System.Security.AccessControl.CommonObjectSecurity.AddAccessRule(AccessRule
rule)
at
System.ServiceModel.Install.ListenerServiceInstallComponent.SetConfigSecurity(OutputLevel
outputLevel)
at
System.ServiceModel.Install.ListenerServiceInstallComponent.OnReinstall(OutputLevel
outputLevel)
at System.ServiceModel.Install.ServiceInstallComponent.Reinstall(OutputLevel
outputLevel)
at Microsoft.Tools.ServiceModel.ServiceModelReg.PerformAction(ActionItem
actionItem, Nullable`1 confirmUninstall)
at Microsoft.Tools.ServiceModel.ServiceModelReg.Run(String[] args)
at Microsoft.Tools.ServiceModel.ServiceModelReg.TryRun(String[] args)
=== Verbose logging stopped: 1/11/2009 14:58:09 ===
--- snip ---
Relevant trace log:
--- snip ---
0035:fixme:advapi:LsaLookupNames2
(0xcafe,0x00000000,0x00000001,0x1421c0,0x33efdc,0x33efd0) stub
...
0035:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b844f54
ip=0x7b844fd7 tid=0035
0035:trace:seh:raise_exception info[0]=80131501
0035:trace:seh:raise_exception eax=7b82cc91 ebx=7b8c3940 ecx=00000000
edx=0033f0b8 esi=0033f0b8 edi=e0434f4d
0035:trace:seh:raise_exception ebp=0033f080 esp=0033f01c cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00000246
0035:trace:seh:call_stack_handlers calling handler at 0x79f9a3c8 code=e0434f4d
flags=1
0035:CALL
MSVCR80._except_handler4_common(7a381240,79e717fb,0033f02c,0033f0d0,0033ecb8,0033eb60)
ret=79f9a3e7
0035:RET MSVCR80._except_handler4_common() retval=00000001 ret=79f9a3e7
0035:trace:seh:call_stack_handlers handler at 0x79f9a3c8 returned 1
0035:trace:seh:call_stack_handlers calling handler at 0x7a3197d4 code=e0434f4d
flags=1
0035:CALL MSVCR80.__CxxFrameHandler3() ret=7bc729f1
0035:RET MSVCR80.__CxxFrameHandler3() retval=00000001 ret=7bc729f1
0035:trace:seh:call_stack_handlers handler at 0x7a3197d4 returned 1
0035:trace:seh:call_stack_handlers calling handler at 0x79f948ec code=e0434f4d
flags=1
....
0035:fixme:advapi:RegisterEventSourceW (L".",L"System.ServiceModel.Install
3.0.0.0"): stub
0035:fixme:advapi:ReportEventW
(0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000000,0xa55c64,0xa55b0c):
stub
0035:err:eventlog:ReportEventW
L"System.Security.Principal.IdentityNotMappedException: Some or all identity
references could not be translated.\r\n at
System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection
sourceAccounts, Type targetType, Boolean forceSuccess)\r\n at
System.Security.Principal.NTAccount.Transla"...
--- snip ---
Oh joy, LSA again ...
There already exist other bugs falling into same problem domain, example: bug
16418
If developer resources are short maybe this could be part of some SoC project:
making transition from current approach towards LSA rpc interface and lsass
(and fleshing out stubs of course).
http://www.hsc.fr/ressources/articles/win_net_srv/msrpc_lsarpc.html
I fleshed the stub a bit just for proof and it gets the WCF installer further.
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16886
Summary: .NET 3.0: WCF installer requires ChangeServiceConfig2
with SERVICE_CONFIG_FAILURE_ACTIONS support
Product: Wine
Version: 1.1.12
Platform: Other
URL: http://www.microsoft.com/downloads/details.aspx?FamilyID
=10cc340b-f857-4a14-83f5-25634c3bf043
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: advapi32
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
actually bug 16883 contained two bugs and this one slipped through.
ChangeServiceConfig2W API needs SERVICE_CONFIG_FAILURE_ACTIONS support.
---
1. clean WINEPREFIX
2. sh mywinetricks -q wmicore
3. sh winetricks -q dotnet20
4. download .NET 3.0 Framework installer from: http://download.microsoft.com
/download/4/d/a/4da3a5fa-ee6a-42b8-8bfa-ea5c4a458a7d/dotnetfx3setup.exe
(sha1sum:
a566bcd2ffffc3842a95adc57f7df3f8cd11577f)
5. export _SFX_CAB_SHUTDOWN_REQUEST=1 (workaround, see bug 9158)
6. wine ./dotnetfx3setup.exe
It might take a while until all required packages are downloaded using BITS.
Note: If you need to redo steps, backup the directory "dotnetfx304506.30" from
"c:\\windows\\temp" to a different location, remove ~/.wine, copy
"dotnetfx304506.30" again to "c:\\windows\\temp" to prevent BITS from
downloading over and over again.
---
Relevant log:
--- snip ---
ServiceModelReg [16:55:11:288]: Repairing: Windows CardSpace (idsvc)
ServiceModelReg [16:55:11:307]: System.AccessViolationException: Attempted to
read or write protected memory. This is often an indication that other memory
is corrupt.
at
System.ServiceModel.Install.NativeMethods.ChangeFailureActions(ServiceHandle
hService, Int32 dwInfoLevel, SERVICE_FAILURE_ACTIONS& lpInfo)
at System.ServiceModel.Install.ServiceHandle.SetFailureActions(TimeSpan
resetPeriod, TimeSpan[] restartPeriods)
at System.ServiceModel.Install.ServiceInstallComponent.OnInstall(OutputLevel
outputLevel)
at
System.ServiceModel.Install.InfoCardServiceInstallComponent.OnInstall(OutputLevel
outputLevel)
at System.ServiceModel.Install.ServiceInstallComponent.Reinstall(OutputLevel
outputLevel)
at Microsoft.Tools.ServiceModel.ServiceModelReg.PerformAction(ActionItem
actionItem, Nullable`1 confirmUninstall)
at Microsoft.Tools.ServiceModel.ServiceModelReg.Run(String[] args)
at Microsoft.Tools.ServiceModel.ServiceModelReg.TryRun(String[] args)
=== Verbose logging stopped: 1/11/2009 16:55:11 ===
--- snip ---
After fleshing out programs/services/svcctl_ChangeServiceConfig2W() a bit the
problem is prevented (fake seems also ok).
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16891
Summary: .NET 3.0: Windows Workflow Foundation installer claims
.NET 2.0 Framework needed, MsiNetAssemblySupport/msi
fusion version retrieval bug
Product: Wine
Version: 1.1.12
Platform: Other
URL: http://www.microsoft.com/downloads/details.aspx?FamilyID
=10cc340b-f857-4a14-83f5-25634c3bf043
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: msi
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
after getting past bug 16888 another subinstaller "Windows Workflow Foundation"
fails, claiming ".NET 2.0 Framework is required".
This is of course already installed as part of prerequisite.
Prerequisites:
---
1. clean WINEPREFIX
2. sh mywinetricks -q wmicore
3. sh winetricks -q dotnet20
4. download .NET 3.0 Framework installer from: http://download.microsoft.com
/download/4/d/a/4da3a5fa-ee6a-42b8-8bfa-ea5c4a458a7d/dotnetfx3setup.exe
(sha1sum:
a566bcd2ffffc3842a95adc57f7df3f8cd11577f)
5. export _SFX_CAB_SHUTDOWN_REQUEST=1 (workaround, see bug 9158)
6. wine ./dotnetfx3setup.exe
It might take a while until all required packages are downloaded using BITS.
Note: If you need to redo steps, backup the directory "dotnetfx304506.30" from
"c:\\windows\\temp" to a different location, remove ~/.wine, copy
"dotnetfx304506.30" again to "c:\\windows\\temp" to prevent BITS from
downloading over and over again.
---
The corresponding logfile "dd_WF_3.0_x86retMSI48DE.txt" reveals nothing, it's
empty.
Using ORCA on "WF_3.0_x86.msi" shows that MsiNetAssemblySupport >="2.0.50727"
condition needs to be satisfied.
The "MsiNetAssemblySupport" property should be set in set_msi_assembly_prop()
but it doesn't seem so.
Trace log shows:
--- snip ---
0016:Call version.GetFileVersionInfoSizeW(00149050
L"C:\\windows\\Microsoft.NET\\Framework\\v3.0\\fusion.dll",0032f2d0)
ret=6024ad80
0016:Call KERNEL32.GetModuleHandleExW(00000000,00149050,0032ef90) ret=609ecc77
0016:Ret KERNEL32.GetModuleHandleExW() retval=00000000 ret=609ecc77
0016:Call KERNEL32.LoadLibraryExW(00149050
L"C:\\windows\\Microsoft.NET\\Framework\\v3.0\\fusion.dll",00000000,00000002)
ret=609ecc99
0016:Call PE DLL (proc=0x60c431f0,module=0x60c40000
L"psapi.dll",reason=PROCESS_ATTACH,res=(nil))
...
0016:Ret PE DLL (proc=0x60bd98c4,module=0x60bd0000
L"fusion.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1
0016:Ret KERNEL32.LoadLibraryExW() retval=60bd0000 ret=609ecc99
0016:Call KERNEL32.FindResourceW(60bd0000,00000001,00000010) ret=609ecd25
0016:Ret KERNEL32.FindResourceW() retval=00000000 ret=609ecd25
0016:Call KERNEL32.FreeLibrary(60bd0000) ret=609ecd94
...
0016:Ret KERNEL32.FreeLibrary() retval=00000001 ret=609ecd94
0016:Call KERNEL32.SetLastError(00000714) ret=609ed6e6
0016:Ret KERNEL32.SetLastError() retval=00000714 ret=609ed6e6
0016:Ret version.GetFileVersionInfoSizeW() retval=00000000 ret=6024ad80
--- snip ---
Looking into "C:\\windows\\Microsoft.NET\\Framework\\v3.0\\fusion.dll" path
there is no native fusion.dll.
Hence Wine's builtin fusion.dll is loaded by LoadLibraryExW().
The builtin fusion doesn't contain version resource so it fails.
This is a subtile problem: adding version resource to Wine's fusion might cause
problems because every .NET Framework might ship it's own version of fusion
which ought to override builtin fusion.
http://msdn.microsoft.com/en-us/library/aa370325.aspx
Usually:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\fusion.dll
AFAIK .NET 3.0 and 3.5 don't bring their own fusion version (someone might
check a real Windows installation with these Frameworks present).
The problem is how dlls/msi/package.c:get_fusion_filename() works.
At the point where the installation fails the following registry data is
present at the location get_fusion_filename() reads:
--- snip ---
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup]
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP]
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727]
"Increment"="42"
"Install"=dword:00000001
"MSI"=dword:00000001
"SP"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727\1033]
"Install"=dword:00000001
"MSI"=dword:00000001
"SP"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v3.0]
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v3.0\Setup]
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework
Setup\NDP\v3.0\Setup\Windows Communication Foundation]
"InstallSuccess"=dword:00000001
"ReferenceInstallPath"="C:\\Program Files\\Reference
Assemblies\\Microsoft\\Framework\\v3.0\\"
"RuntimeInstallPath"="C:\\windows\\Microsoft.NET\\Framework\\v3.0\\Windows
Communication Foundation\\"
"Version"="3.0.04506.30"
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework
Setup\NDP\v3.0\Setup\Windows Presentation Foundation]
@="Windows Presentation Foundation"
"InstallRoot"="C:\\windows\\Microsoft.Net\\Framework\\v3.0\\WPF\\"
"InstallSuccess"=dword:00000001
"ProductVersion"="3.0.6920.0"
"Version"="3.0.6920.0"
"WPFCommonAssembliesPathx86"="C:\\windows\\system32\\"
"WPFNonReferenceAssembliesPathx86"="C:\\windows\\Microsoft.Net\\Framework\\v3.0\\WPF\\"
"WPFReferenceAssembliesPathx86"="C:\\Program Files\\Reference
Assemblies\\Microsoft\\Framework\\v3.0\\"
--- snip ---
I don't know how Windows msi does MsiNetAssemblySupport.
Maybe a check for real existence of (native) fusion.dll to prevent false load
of "builtin" fusion is better.
If native fusion is not present in full path, that .NET Framework subkey data
(version) can't be used for MsiNetAssemblySupport property.
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16888
Summary: .NET 3.0: WCF installer requires httpapi.dll with some
stubs
Product: Wine
Version: 1.1.12
Platform: Other
URL: http://www.microsoft.com/downloads/details.aspx?FamilyID
=10cc340b-f857-4a14-83f5-25634c3bf043
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
after getting past bug 16883 the next one...
Prerequisites:
---
1. clean WINEPREFIX
2. sh mywinetricks -q wmicore
3. sh winetricks -q dotnet20
4. download .NET 3.0 Framework installer from: http://download.microsoft.com
/download/4/d/a/4da3a5fa-ee6a-42b8-8bfa-ea5c4a458a7d/dotnetfx3setup.exe
(sha1sum:
a566bcd2ffffc3842a95adc57f7df3f8cd11577f)
5. export _SFX_CAB_SHUTDOWN_REQUEST=1 (workaround, see bug 9158)
6. wine ./dotnetfx3setup.exe
It might take a while until all required packages are downloaded using BITS.
Note: If you need to redo steps, backup the directory "dotnetfx304506.30" from
"c:\\windows\\temp" to a different location, remove ~/.wine, copy
"dotnetfx304506.30" again to "c:\\windows\\temp" to prevent BITS from
downloading over and over again.
---
The WCF installer still fails:
--- snip ---
ServiceModelReg [15:38:17:256]: Repairing: Net.Tcp Port Sharing Service
(NetTcpPortSharing)
ServiceModelReg [15:38:17:279]: Uninstalling: HTTP Namespace Reservations
ServiceModelReg [15:38:17:294]: System.DllNotFoundException: Unable to load DLL
'httpapi.dll': Exception from HRESULT: 0x8007007E
at System.ServiceModel.Install.NativeMethods.HttpTerminate(Int32 Flags,
IntPtr pReserved)
at
System.ServiceModel.Install.HttpNamespaceReservationInstallComponent.get_IsInstalled()
at
System.ServiceModel.Install.HttpNamespaceReservationInstallComponent.Uninstall(OutputLevel
outputLevel)
at
System.ServiceModel.Install.ServiceModelInstallComponent.Reinstall(OutputLevel
outputLevel)
at Microsoft.Tools.ServiceModel.ServiceModelReg.PerformAction(ActionItem
actionItem, Nullable`1 confirmUninstall)
at Microsoft.Tools.ServiceModel.ServiceModelReg.Run(String[] args)
at Microsoft.Tools.ServiceModel.ServiceModelReg.TryRun(String[] args)
=== Verbose logging stopped: 1/11/2009 15:38:17 ===
--- snip ---
Native httpapi override makes things only worse since it expects http service
present ...
--- snip ---
...
0035:CALL HTTPAPI.HttpInitialize(<unknown, check return>) ret=036a22c0
0035:trace:ntdll:NtCreateFile handle=0x67a16094 access=c0100000
name=L"\\Device\\Http\\Control" objattr=00000040 root=(nil) sec=(nil)
io=0x33ed54 alloc_size=(nil)
attr=00000000 sharing=00000003 disp=1 options=00000000 ea=0x18fb28.0x0000001f
0035:trace:service:OpenSCManagerW ((null),(null),0x00000001)
0035:trace:service:sc_handle_alloc sc_handle type=0 -> 0x18fb28
...
0013:trace:service:svcctl_OpenSCManagerW ((null), (null), 1)
...
0035:trace:service:OpenSCManagerW returning 0x18fb28 (access : 0x00000001)
0035:trace:service:OpenServiceW 0x18fb28 L"HTTP" 20
0035:trace:service:sc_handle_alloc sc_handle type=1 -> 0x18f658
...
0018:trace:service:svcctl_OpenServiceW (L"HTTP", 0x14)
...
0035:trace:service:sc_handle_destroy_service destroying service 0x18f658
0035:trace:service:CloseServiceHandle 0x18fb28
...
0035:trace:service:sc_handle_destroy_manager destroying SC Manager 0x18fb28
0035:RET HTTPAPI.HttpInitialize(00000001,00000002,00000000) retval=00000003
ret=036a22c0
...
Uninstalling: HTTP Namespace Reservations
Error: Path not found
fixme:advapi:RegisterEventSourceW (L".",L"System.ServiceModel.Install
3.0.0.0"): stub
fixme:advapi:ReportEventW
(0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000000,0xa534b4,0xa5335c):
stub
err:eventlog:ReportEventW L"System.ComponentModel.Win32Exception: Path not
found\r\n at
System.ServiceModel.Install.HttpNamespaceReservationInstallComponent.get_IsInstalled()\r\n
at
System.ServiceModel.Install.HttpNamespaceReservationInstallComponent.Uninstall(OutputLevel
outputLevel)\r\n at System.ServiceModel.Install.Se"...
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
err:msi:ITERATE_Actions Execution halted, action L"InstallFinalize" returned
1603
...
--- snip ---
It seems better to provide a simple httpapi stub dll.
MSDN for more info (only version 1 API seems requested):
http://msdn.microsoft.com/en-us/library/aa364627.aspxhttp://msdn.microsoft.com/en-us/library/aa364625.aspx
After generating a stub dll with winedump and some trial & error sessions, the
minimum required stubs are as follows:
--- snip ---
HttpDeleteServiceConfiguration -> return NO_ERROR (0)
HttpInitialize -> return NO_ERROR (0)
HttpQueryServiceConfiguration -> return ERROR_FILE_NOT_FOUND (2) (most likely
means the service not installed, passed args can be left untouched with this
error)
HttpSetServiceConfiguration -> return NO_ERROR (0)
HttpTerminate -> return NO_ERROR (0)
--- snip ---
With those stubs in place, the HTTP api related actions (fake) succeed.
--- snip ---
ServiceModelReg [16:30:52:470]: Uninstalling: HTTP Namespace Reservations
ServiceModelReg [16:30:52:472]: Warning: HTTP namespace reservations are not
installed.
ServiceModelReg [16:30:52:472]: Installing: HTTP Namespace Reservations
ServiceModelReg [16:30:52:473]: Information: The ServiceModelReg tool has
completed successfully.
--- snip ---
and the WCF installer claims success.
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16883
Summary: .NET 3.0: WCF installer fails due bug in services.exe
svcctl_GetServiceKeyNameW
Product: Wine
Version: 1.1.12
Platform: Other
URL: http://www.microsoft.com/downloads/details.aspx?FamilyID
=10cc340b-f857-4a14-83f5-25634c3bf043
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
after getting past bug 16882 (WMI is needed) we resume where we left: bug 16878
---
1. clean WINEPREFIX
2. sh mywinetricks -q wmicore
3. sh winetricks -q dotnet20
4. download .NET 3.0 Framework installer from: http://download.microsoft.com
/download/4/d/a/4da3a5fa-ee6a-42b8-8bfa-ea5c4a458a7d/dotnetfx3setup.exe
(sha1sum:
a566bcd2ffffc3842a95adc57f7df3f8cd11577f)
5. export _SFX_CAB_SHUTDOWN_REQUEST=1 (workaround, see bug 9158)
6. wine ./dotnetfx3setup.exe
It might take a while until all required packages are downloaded using BITS.
Note: If you need to redo steps, backup the directory "dotnetfx304506.30" from
"c:\\windows\\temp" to a different location, remove ~/.wine, copy
"dotnetfx304506.30" again to "c:\\windows\\temp" to prevent BITS from
downloading over and over again.
---
The WCF installer still fails:
"c:\\windows\\temp\\dd_dotnetfx3error.txt":
--- snip ---
[01/11/09,14:18:10] Windows Communication Foundation: [2] Error: Installation
failed for component Windows Communication Foundation. MSI returned error code
1603
[01/11/09,14:18:21] WapUI: [2] DepCheck indicates Windows Communication
Foundation is not installed.
--- snip ---
"c:\\windows\\temp\\dd_wcf_retMSI1CB9.txt":
--- snip ---
1: C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModelReg.exe /r /x /y /v 2:
1: ERROR: Process returned non-0 value! CMDLINE:
C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModelReg.exe /r /x /y /v 2:
1: Failed 2:
--- snip ---
--- snip ---
ServiceModelReg [14:18:09:203]: Starting tool
'C:\windows\system32\wbem\mofcomp.exe' with parameters
'"C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"'.
ServiceModelReg [14:18:09:328]: Microsoft (R) 32-bit MOF Compiler Version
1.50.1085.0001
ServiceModelReg [14:18:09:329]: Copyright (c) Microsoft Corp. 1997-1999. All
rights reserved.
ServiceModelReg [14:18:09:423]:
ServiceModelReg [14:18:09:425]: Parsing MOF file:
C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof
ServiceModelReg [14:18:09:446]: MOF file has been successfully parsed
ServiceModelReg [14:18:09:447]: Storing data in the repository...
ServiceModelReg [14:18:10:115]: An error occurred while creating object 3
defined on lines 20 - 24:
ServiceModelReg [14:18:10:116]: 0X80041002 Class, instance, or property
'HostingModel' was not found.
ServiceModelReg [14:18:10:122]: Compiler returned error 0x80041001
ServiceModelReg [14:18:10:122]:
ServiceModelReg [14:18:10:122]:
ServiceModelReg [14:18:10:124]: Tool 'C:\windows\system32\wbem\mofcomp.exe'
with parameters '"C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"' exited with code '3'.
ServiceModelReg [14:18:10:166]: Warning: Failure executing
"C:\windows\system32\wbem\mofcomp.exe" with parameters
""C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"": System.ApplicationException: Unexpected result 3
executing C:\windows\system32\wbem\mofcomp.exe with
"C:\windows\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\ServiceModel.mof"
at System.ServiceModel.Install.InstallHelper.ExecuteWait(String program,
String parameters, Int32[] allowedExitCodes)
at System.ServiceModel.Install.WmiInstallComponent.OnInstall(OutputLevel
outputLevel)
ServiceModelReg [14:18:10:231]: Error: WMI classes are not installed.
ServiceModelReg [14:18:10:233]: Repairing: Windows CardSpace (idsvc)
ServiceModelReg [14:18:10:251]: System.AccessViolationException: Attempted to
read or write protected memory. This is often an indication that other memory
is corrupt.
at
System.ServiceModel.Install.NativeMethods.ChangeFailureActions(ServiceHandle
hService, Int32 dwInfoLevel, SERVICE_FAILURE_ACTIONS& lpInfo)
at System.ServiceModel.Install.ServiceHandle.SetFailureActions(TimeSpan
resetPeriod, TimeSpan[] restartPeriods)
at System.ServiceModel.Install.ServiceInstallComponent.OnInstall(OutputLevel
outputLevel)
at
System.ServiceModel.Install.InfoCardServiceInstallComponent.OnInstall(OutputLevel
outputLevel)
at System.ServiceModel.Install.ServiceInstallComponent.Reinstall(OutputLevel
outputLevel)
at Microsoft.Tools.ServiceModel.ServiceModelReg.PerformAction(ActionItem
actionItem, Nullable`1 confirmUninstall)
at Microsoft.Tools.ServiceModel.ServiceModelReg.Run(String[] args)
at Microsoft.Tools.ServiceModel.ServiceModelReg.TryRun(String[] args)
=== Verbose logging stopped: 1/11/2009 14:18:10 ===
--- snip ---
Ok, lets leave the WMI failures aside (despite having native WMI core
installed) and see how far it goes.
That infocard service (re)install looks bugged:
--- snip ---
0035:trace:service:OpenSCManagerW ((null),(null),0x00000001)
0035:trace:service:sc_handle_alloc sc_handle type=0 -> 0x18ef38
0013:trace:service:svcctl_OpenSCManagerW ((null), (null), 1)
0035:trace:service:OpenSCManagerW returning 0x18ef38 (access : 0x00000001)
0035:CALL MSVCR80.memcpy() ret=79e808d5
0035:RET MSVCR80.memcpy() retval=0017b820 ret=79e808d5
0035:trace:service:GetServiceKeyNameW 0x18ef38 L"" 0x88e170 0x33f1f0
0014:trace:service:svcctl_GetServiceKeyNameW (L"idsvc", 256)
0035:CALL MSVCR80.memcpy() ret=79e808d5
0035:RET MSVCR80.memcpy() retval=00a4333c ret=79e808d5
0035:CALL MSVCR80.memcpy() ret=79e808d5
0035:RET MSVCR80.memcpy() retval=0017b820 ret=79e808d5
0035:trace:service:GetServiceDisplayNameW 0x18ef38 L"idsvc" 0x17b820 0x33f1f0
0013:trace:service:svcctl_GetServiceDisplayNameW (L"idsvc", 1)
0035:CALL MSVCR80.memcpy() ret=79e808d5
0035:RET MSVCR80.memcpy() retval=00a4333c ret=79e808d5
0035:CALL MSVCR80.memset(0033f0c4,00000000,0000002c,0033f0bc) ret=79eef4cb
0035:RET MSVCR80.memset() retval=0033f0c4 ret=79eef4cb
0035:CALL MSVCR80.memcpy() ret=79e770f8
0035:RET MSVCR80.memcpy() retval=0033f02c ret=79e770f8
0035:CALL MSVCR80.memset(0033ea2c,00000000,0000001c,0033ea70) ret=79e7d873
0035:RET MSVCR80.memset() retval=0033ea2c ret=79e7d873
0035:CALL MSVCR80.memcpy() ret=79e808d5
0035:RET MSVCR80.memcpy() retval=0017b820 ret=79e808d5
0035:CALL MSVCR80.memcpy() ret=79e808d5
0035:RET MSVCR80.memcpy() retval=00a4363c ret=79e808d5
0035:CALL MSVCR80.memcpy() ret=79e770f8
0035:RET MSVCR80.memcpy() retval=0033f10c ret=79e770f8
0035:CALL MSVCR80.memcmp(008647a8,032e66b9,00000012) ret=79efee2f
0035:RET MSVCR80.memcmp() retval=00000000 ret=79efee2f
0035:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b844f54
ip=0x7b844fd7 tid=0035
0035:trace:seh:raise_exception info[0]=80131509
0035:trace:seh:raise_exception eax=7b82cc91 ebx=7b8c3940 ecx=00000000
edx=0033f0f0 esi=0033f0f0 edi=e0434f4d
0035:trace:seh:raise_exception ebp=0033f0b8 esp=0033f054 cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00000246
0035:trace:seh:call_stack_handlers calling handler at 0x79f9a3c8 code=e0434f4d
flags=1
0035:CALL
MSVCR80._except_handler4_common(7a381240,79e717fb,0033f064,0033f108,0033ecf0,0033eb90)
ret=79f9a3e7
0035:RET MSVCR80._except_handler4_common() retval=00000001 ret=79f9a3e7
0035:trace:seh:call_stack_handlers handler at 0x79f9a3c8 returned 1
0035:trace:seh:call_stack_handlers calling handler at 0x7a3197d4 code=e0434f4d
flags=1
--- snip ---
If we dump the corresponding SCM entry:
--- snip ---
000d:trace:service:scmdatabase_load_services Loading service L"idsvc"
000d:trace:service:load_service_config Image path =
L"\"C:\\windows\\Microsoft.NET\\Framework\\v3.0\\Windows Communication
Foundation\\infocard.exe\""
000d:trace:service:load_service_config Group = (null)
000d:trace:service:load_service_config Service account name = L"LocalSystem"
000d:trace:service:load_service_config Display name = L"Windows
CardSpace"
000d:trace:service:load_service_config Service dependencies : (none)
000d:trace:service:load_service_config Group dependencies : (none)
--- snip ---
That GetServiceKeyNameW() API failure seems to be ok because the app passes the
key name itself "idsvc" and not the service display name.
The following GetServiceDisplayNameW() also fails, leading to app
error/exception.
If you look closer, you see svcctl_GetServiceDisplayNameW (L"idsvc", 1) ->
buffer length "1" passed.
This is clearly not what the app intended.
The app reuses the length parameter from GetServiceKeyNameW(), passing it again
into GetServiceDisplayNameW() but Wine changed it to "1" which seems incorrect.
--- snip programs/services/rpc.c ---
DWORD svcctl_GetServiceKeyNameW(
SC_RPC_HANDLE hSCManager,
LPCWSTR lpServiceDisplayName,
WCHAR *lpBuffer,
DWORD cchBufSize,
DWORD *cchLength)
{
...
entry = scmdatabase_find_service_by_displayname(manager->db,
lpServiceDisplayName);
if (entry != NULL)
{
...
else
{
*cchLength = 1;
err = ERROR_SERVICE_DOES_NOT_EXIST;
}
scmdatabase_unlock(manager->db);
if (err != ERROR_SUCCESS && cchBufSize > 0)
lpBuffer[0] = 0;
return err;
}
--- snip programs/services/rpc.c --
This doesn't look right, a conformance test case should reveal the correct
behaviour.
I already verified this with a patch.
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16893
Summary: .NET 3.0: Windows Workflow Foundation post-install:
loadperf needs LoadPerfCounterTextStringsA/W stubs
Product: Wine
Version: 1.1.12
Platform: Other
URL: http://www.microsoft.com/downloads/details.aspx?FamilyID
=10cc340b-f857-4a14-83f5-25634c3bf043
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
after getting past bug 16891 the WF post install fails while running
performance counter registration.
Thanks to recent fixture of bug 12099 we have loadperf dll already in place...
--- snip ---
...
wine: Call from 0x7b844f54 to unimplemented function
loadperf.dll.LoadPerfCounterTextStringsW, aborting
fixme:advapi:CheckTokenMembership (0x188 0x1baf48 0x33e2c8) stub!
fixme:imm:ImmDisableIME (-1): stub
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of
other threads
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime 2.0 Error Reporting"):
stub
fixme:advapi:ReportEventW
(0xcafe4242,0x0001,0x0000,0x000003e8,(nil),0x0008,0x0000011a,0x3009a1b4,0x7ed505c0):
stub
err:eventlog:ReportEventW L"performancecounterinstaller.exe"
err:eventlog:ReportEventW L"3.0.4203.2"
err:eventlog:ReportEventW L"44c6ca00"
err:eventlog:ReportEventW L"kernel32.dll"
err:eventlog:ReportEventW L"5.1.2600.2180"
err:eventlog:ReportEventW L"00000000"
err:eventlog:ReportEventW L"0"
err:eventlog:ReportEventW L"00024f54"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
Unhandled Exception: System.Runtime.InteropServices.SEHException: External
component has thrown an exception.
at System.Workflow.NativeMethods.LoadPerfCounterTextStrings(String
commandLine, Boolean quietMode)
at System.Workflow.PerformanceCounterInstaller.Install()
at System.Workflow.PerformanceCounterInstaller.Main(String[] args)
wine: Unimplemented function loadperf.dll.LoadPerfCounterTextStringsW called at
address 0x7b844f54 (thread 000c), starting debugger...
Unhandled exception: unimplemented function
loadperf.dll.LoadPerfCounterTextStringsW called in 32-bit code (0x7b844fd7).
--- snip ---
To reproduce this problem manually, execute the following:
--- snip ---
$ pwd
/home/focht/.wine/drive_c/windows/Microsoft.NET/Framework/v3.0/Windows Workflow
Foundation
$ wine ./PerformanceCounterInstaller.exe uninstall
...
$ wine ./PerformanceCounterInstaller.exe install
--- snip ---
The uninstall step is needed otherwise the registry keys are not explicitly
removed and "install" will short-circuit, not doing anything useful.
With stubs to loadperf added in similar manner like
UnloadPerfCounterTextStringsA/W, we can get past this:
--- snip ---
$ WINEDEBUG=+tid,+seh,+loadperf wine ./PerformanceCounterInstaller.exe install
...
0009:trace:loadperf:DllMain (0x0x60cb0000, 1, (nil))
0009:fixme:loadperf:LoadPerfCounterTextStringsW (L"
\"C:\\windows\\Microsoft.NET\\Framework\\v3.0\\Windows Workflow
Foundation\\PerfCounters.ini\"", 1): stub
...
--- snip ---
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=20651
Summary: Crash when installing Impulse
Product: Wine
Version: 1.1.32
Platform: PC-x86-64
URL: http://www.impulsedriven.com/downloads/impulse_setup.e
xe
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: drakkk(a)centrum.cz
Created an attachment (id=24653)
--> (http://bugs.winehq.org/attachment.cgi?id=24653)
terminal output
When installing Impulse with current git (wine-1.1.32-499-gffb2cfc), there is a
crash in file setsdaff.exe, but installer continues and reports that it
finished successfully. Another thing I noticed: after installation some
processes remains in memory, they are mscorsvw.exe (disappear aprox. 5-10
later) and rpcss.exe (remains there until killed).
Impulse needs dotnet20, I installed it with winetricks. After installation
Impulse starts, but cannot connect to server, bug 15486.
I did some search on the Stardock forums and it looks like even some windows
users had similar problem, in their case this was caused by broken .NET
install, .NET re-installation or update solved this.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17902
Summary: ole32.CoGetClassObject: threads without apartment should
use existing MTA
Product: Wine
Version: 1.1.18
Platform: Other
URL: http://www.microsoft.com/downloads/details.aspx?FamilyID
=fe6f2099-b7b4-4f47-a244-c96d69c35dec
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ole32
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
there are apps which use free threaded COM (inproc) servers and call
CoGetClassObject() from (new) threads that do not explicitly initialize COM.
This is valid behaviour when one of the existing threads already created the
MTA by calling CoInitializeEx(NULL, COINIT_MULTITHREADED).
See: http://support.microsoft.com/kb/150777
--- quote ---
Current implementations of COM allow a thread that does not explicitly
initialize COM to be a part of the MTA. A thread that does not initialize COM
is part of the MTA only if it starts using COM after at least one other thread
in the process has previously called CoInitializeEx(NULL,
COINIT_MULTITHREADED). (It is even possible that COM itself may have
initialized the MTA when no client thread has explicitly done so; for example,
a thread associated with an STA calls CoGetClassObject/CoCreateInstance[Ex] on
a CLSID that is marked "ThreadingModel=Free" and COM implicitly creates an MTA
into which the class object is loaded.) See the information on threading model
interoperability below.
However, this is a configuration that might cause problems, such as access
violations, under certain circumstances. Therefore, it is strongly recommended
that each thread that needs to do COM work initialize COM by calling
CoInitializeEx and then, on completion of COM work, call CoUninitialize. The
cost of "unnecessarily" initializing an MTA is minimal.
--- quote ---
An example app suffering from this is the managed console debugger from .NET
2.0 SDK "cordbg.exe":
When trying to debug a simple console C# app created with symbols (.pdb
format):
--- snip ---
wine "C:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\csc.exe" /debug+
foo.cs
--- snip ---
Start debugger:
--- snip ---
wine "C:\\Program Files\\Microsoft.NET\\SDK\\v2.0\\Bin\\cordbg.exe foo.exe"
--- snip ---
The debugger will immediately begin to execute the app - not halting in Main()
method (source).
This is because symbol information can't be loaded using COR symbol binder
which lives in a free threaded COM inproc server.
0A29FF9E-7F9C-4437-8B11-F424491E3931 -> CLSID_CorSymBinder
Threads 0x38 (main) and 0x36 call "CoInitializeEx" with COINIT_MULTITHREADED,
creating the MTA.
Thread 0x3b is created later as pooled thread - part of MTA - to serve CLR
debugger requests (work items).
That thread never makes any init calls to COM (verified).
--- snip ---
...
0038:Call KERNEL32.GetProcAddress(60970000,7a37e2ae "CoInitializeEx")
ret=79e9d311
0038:Ret KERNEL32.GetProcAddress() retval=609750c8 ret=79e9d311
0038:Call ole32.CoInitializeEx(00000000,00000000) ret=79ebfba8
0038:Call ntdll.RtlAllocateHeap(00110000,00000008,000000fc) ret=60986499
0038:Ret ntdll.RtlAllocateHeap() retval=0014f9c0 ret=60986499
0038:Call ntdll.RtlAllocateHeap(00110000,00000000,00000028) ret=609a750c
0038:Ret ntdll.RtlAllocateHeap() retval=001500e8 ret=609a750c
0038:Call KERNEL32.InitializeCriticalSection(001500f8) ret=609a7543
0038:Ret KERNEL32.InitializeCriticalSection() retval=00000001 ret=609a7543
0038:Call ntdll.RtlAllocateHeap(00110000,00000008,0000007c) ret=60983f54
0038:Ret ntdll.RtlAllocateHeap() retval=00151df0 ret=60983f54
0038:Call KERNEL32.InitializeCriticalSection(00151e10) ret=60983fb4
0038:Ret KERNEL32.InitializeCriticalSection() retval=00000001 ret=60983fb4
0038:Ret ole32.CoInitializeEx() retval=00000000 ret=79ebfba8
...
0036:Call ole32.CoInitializeEx(00000000,00000000) ret=79ebfba8
0036:Call ntdll.RtlAllocateHeap(00110000,00000008,000000fc) ret=60986499
0036:Ret ntdll.RtlAllocateHeap() retval=00151e78 ret=60986499
0036:Ret ole32.CoInitializeEx() retval=00000000 ret=79ebfba8
...
003b:Call advapi32.RegOpenKeyExW(80000000,0310d170
L"CLSID\\{0A29FF9E-7F9C-4437-8B11-F424491E3931}\\InprocServer32",00000000,00020019,0310d0dc)
ret=79ea5b8a
003b:Ret advapi32.RegOpenKeyExW() retval=00000000 ret=79ea5b8a
003b:Call
...
003b:Call advapi32.RegOpenKeyExW(00000238,0310d270
L"2.0.50727",00000000,00020019,0310d0ec) ret=79ea5b8a
003b:Ret advapi32.RegOpenKeyExW() retval=00000000 ret=79ea5b8a
003b:Call advapi32.RegQueryValueExW(0000023c,7a136a40
L"ImplementedInThisVersion",00000000,0310d0e4,00000000,0310d0e8) ret=79ea5bd0
003b:Ret advapi32.RegQueryValueExW() retval=00000000 ret=79ea5bd0
003b:Call advapi32.RegCloseKey(0000023c) ret=7a1369f2
003b:Ret advapi32.RegCloseKey() retval=00000000 ret=7a1369f2
...
003b:Call advapi32.RegOpenKeyExW(80000000,0310d318
L"CLSID\\{0A29FF9E-7F9C-4437-8B11-F424491E3931}\\InprocServer32\\2.0.50727",00000000,00020019,0310d314)
ret=79ea5b8a
003b:Ret advapi32.RegOpenKeyExW() retval=00000000 ret=79ea5b8a
003b:Call advapi32.RegQueryValueExW(00000238,79f873d0
L"Class",00000000,0310d2f8,00000000,0310d310) ret=79ea5bd0
003b:Ret advapi32.RegQueryValueExW() retval=00000002 ret=79ea5bd0
003b:Call advapi32.RegCloseKey(00000238) ret=79f88946
003b:Ret advapi32.RegCloseKey() retval=00000000 ret=79f88946
...
003b:Call KERNEL32.GetProcAddress(60970000,7a37e222 "CoGetClassObject")
ret=79e9d311
003b:Ret KERNEL32.GetProcAddress() retval=60974f78 ret=79e9d311
003b:Call ole32.CoGetClassObject(00175d3c,00000015,00000000,79f83a7c,0310d5e8)
ret=7a041335
003b:err:ole:CoGetClassObject apartment not initialised
003b:Ret ole32.CoGetClassObject() retval=800401f0 ret=7a041335
003b:Call KERNEL32.GetLastError() ret=79e74ab4
003b:Ret KERNEL32.GetLastError() retval=0000007f ret=79e74ab4
000007f ret=78132d14
...
003b:Call
KERNEL32.FormatMessageW(000031ff,00000000,800401f0,00000400,0310d4f4,00000000,0310d4a0)
ret=7a127c38
003b:Ret KERNEL32.FormatMessageW() retval=00000000 ret=7a127c38
--- quote ---
The failure is due to Wine's CoGetClassObject() rejecting requests when no
apartment in current thread (oletls) exists.
--- snip dlls/ole32/compobj.c ---
HRESULT WINAPI CoGetClassObject(
REFCLSID rclsid, DWORD dwClsContext, COSERVERINFO *pServerInfo,
REFIID iid, LPVOID *ppv)
{
LPUNKNOWN regClassObject;
HRESULT hres = E_UNEXPECTED;
APARTMENT *apt;
TRACE("\n\tCLSID:\t%s,\n\tIID:\t%s\n", debugstr_guid(rclsid),
debugstr_guid(iid));
if (!ppv)
return E_INVALIDARG;
*ppv = NULL;
apt = COM_CurrentApt();
if (!apt)
{
ERR("apartment not initialised\n");
return CO_E_NOTINITIALIZED;
}
...
--- snip dlls/ole32/compobj.c ---
Rather than failing CoGetClassObject() without apartment, it should look for an
existing MTA and let the current thread use it.
With the MTA being used, the inproc server is created and the app works as
intended, e.g. symbols get loaded, source can be stepped ...
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=18531
Summary: FontValidator (.NET based app) needs
OleInPlaceObject_InPlaceDeactivate properly
implemented
Product: Wine
Version: 1.1.21
Platform: Other
URL: http://www.microsoft.com/typography/FontValidator.mspx
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: shdocvw
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Hello,
now that some urlmon MIME support patches are on the way which are essential
for this app ("text/xml" MIME is later needed to show XML content in embedded
browser window) I file an "intermediate" bug that needs to be fixed before we
can verify the new functionality with real apps ;-)
The story is basically about in-place activation and deactivation of embedded
browser control.
The current shdocvw OleInPlaceObject_InPlaceDeactivate stub is mostly harmless
for many embedded browser control hosting apps because they don't rely on the
fact that in-place deactivation doesn't really take place (control will be
destroyed shortly anyway).
This app use case is a bit special hence the current in-place deactivation stub
becomes the culprit.
Steps to reproduce:
1. clean WINEPREFIX
2. winetricks -q dotnet20
3. start app, "Font files" -> "Add..." -> select whatever true/opentype font
from your system
4. "Table tests" -> "Clear All" -> select only "BASE" (shortens test)
5. "Rasterization" -> deselect "Test rasterization of TrueType outlines"
(shortens test)
6. hit "Start validation"
The .NET 2.0 app creates an embedded browser control:
--- snip ---
...
0029:trace:ole:CoCreateInstance (rclsid={8856f961-340a-11d0-a96b-00c04fd705a2},
pUnkOuter=(nil), dwClsContext=00000001,
riid={00000000-0000-0000-c000-000000000046}, ppv=0x32e2a4)
...
0029:fixme:shell:URL_ParseUrl failed to parse L"Interop.SHDocVw"
...
0029:trace:win:WIN_CreateWindowEx L"Shell Embedding" L"Shell Embedding"
ex=00000100 style=46010000 0,0 0x0 parent=0x500b4 menu=(nil) inst=0x61020000
params=0x136d00
...
0029:trace:win:WIN_CreateWindowEx created window 0x100b6
...
0029:trace:shdocvw:create_shell_embedding_hwnd parent=0x500b4 hwnd=0x100b6
...
0029:trace:shdocvw:OleObject_DoVerb (0x136d00)->(-5 (nil) 0x3c80034 -1 0x500b4
0xadd434)
0029:trace:shdocvw:OleObject_DoVerb OLEIVERB_INPLACEACTIVATE
...
0029:trace:win:DestroyWindow (0x500b4)
...
--- snip ---
and a "parking window" to host the control in inactive/hidden state until the
real hosting window is about to be created and displayed to avoid runtime
penalties of destroying and recreating browser control each time.
This blog gives some insight in the world of "parking windows":
http://blogs.msdn.com/sburke/archive/2007/06/20/flashback-windows-forms-par…
--- snip ---
0029:trace:win:WIN_CreateWindowEx L"WindowsFormsParkingWindow"
L"WindowsForms10.Window.8.app.0.378734a" ex=00010000 style=02010000 0,0 0x0
parent=0xfffffffd menu=(nil) inst=0x400000 params=(nil)
...
0029:trace:win:WIN_CreateWindowEx created window 0x100b8
0029:trace:win:show_window hwnd=0x100b6, cmd=0, wasVisible 1
...
0029:fixme:shdocvw:OleInPlaceObject_InPlaceDeactivate (0x136d00)
0029:trace:shdocvw:WebBrowser_AddRef (0x136d00) ref=11
0029:trace:ole:GetErrorInfo (0, 0x32d9b0, 0x19a9c4)
0029:fixme:shdocvw:WebBrowser_QueryInterface
(0x136d00)->({df0b3d60-548f-101b-8e65-08002b2bd119} 0x32d9a8) interface not
supported
0029:trace:shdocvw:WebBrowser_Release (0x136d00) ref=10
0029:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b84385b
ip=7b84385b tid=0029
...
0029:trace:win:WIN_SetWindowLong 0x100b6 -4 61031784 W
0029:trace:win:alloc_winproc reusing 0xffff0057 for (nil)/0x61031784
0029:trace:win:WIN_DestroyWindow 0x500b4
--- snip ---
The CLR exceptions resulting from E_NOTIMPL of
OleInPlaceObject_InPlaceDeactivate are handled gracefully.
The window which is the real target for the browser control gets created later:
--- snip ---
0029:trace:win:WIN_CreateWindowEx L"C:\\windows\\temp\\tmp47b0.tmp.report.xml"
L"WindowsForms10.Window.8.app.0.378734a" ex=00050040 style=46cf0000
-2147483648,-2147483648 376x358 parent=0x10088 menu=(nil) inst=0x400000
params=(nil)
...
0029:trace:win:WIN_CreateWindowEx hwnd 0x600b4 cs 0,0 376x358
...
0029:trace:win:show_window hwnd=0x600b4, cmd=5, wasVisible 0
0029:trace:shdocvw:WebBrowser_AddRef (0x136d00) ref=11
0029:trace:shdocvw:OleObject_DoVerb (0x136d00)->(-5 (nil) 0x3c80034 -1 0x600b4
0xaece88)
0029:trace:shdocvw:OleObject_DoVerb OLEIVERB_INPLACEACTIVATE
0029:trace:shdocvw:WebBrowser_Release (0x136d00) ref=10
0029:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b84385b
ip=7b84385b tid=0029
0029:trace:seh:raise_exception info[0]=80131509
0029:trace:seh:raise_exception eax=7b82ca1d ebx=7b8c2918 ecx=00000000
edx=0032d958 esi=0032d958 edi=e0434f4d
0029:trace:seh:raise_exception ebp=0032d920 esp=0032d8bc cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00000246
--- snip ---
The CLR exception leads to following backtrace dialog (and abort):
--- snip ---
************** Exception Text **************
System.InvalidOperationException: Unable to get the window handle for the
'AxWebBrowser' control. Windowless ActiveX controls are not supported.
at System.Windows.Forms.AxHost.EnsureWindowPresent()
at System.Windows.Forms.AxHost.InPlaceActivate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
--- snip ---
The activate_inplace() OLE verb bails out early because Wine thinks the control
is in-place activated (This->inplace) -> real in-place deactivation never took
place.
.NET runtime tries to fetch hosted control's window handle which fails because
no parent switch was done.
Adding simple in-place deactivation (releasing IOleInPlaceSite, resetting
This->inplace) lets this app succeed, having windows properly
switched/re-parented.
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19428
Summary: Microsoft SQL Express 2005 fails to install - Error
1627 - ERROR_FUNCTION_FAILED
Product: Wine
Version: 1.1.26
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: yurienu.amenysta(a)gmail.com
Hi,
I run SQLEXPR.exe, extract files, agree with the terms, and try to install it
but it fails with error 1627 : ERROR_FUNCTION_FAILED.
Thanks in advance,
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.