Re: [WiX-users] version 3 - error LGHT0216

2006-07-04 Thread Silvio Massari
Hi Derek,
I debugged light.exe, the exception is thrown in the yellow line:

public Database(string path, OpenDatabase type)
{


uint handle = 0;
int error = MsiInterop.MsiOpenDatabase(path, new IntPtr((int)type), out handle);if (0 != error)

{

throw new Win32Exception(error);
}
this.Handle = handle;
}
Variables:
path = c:\\wix\\darice.cub The file doesn't exist
type = ReadOnly
handle = 0error = 110  Native error code =ERROR_OPEN_FAILED

StackTrace:
wix.dll!Microsoft.Tools.WindowsInstallerXml.Msi.Database.Database(string path = c:\\wix\\darice.cub, Microsoft.Tools.WindowsInstallerXml.Msi.OpenDatabase type = ReadOnly) Line 75C#wix.dll!Microsoft.Tools.WindowsInstallerXml.Validator.Validate
(string databaseFile = C:\\Documents and Settings\\silvio\\Local Settings\\Temp\\bcs2muqp\\product.msi) Line 190 + 0x1b bytesC#wix.dll!Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Microsoft.Tools.WindowsInstallerXml.Output
 output = {Microsoft.Tools.WindowsInstallerXml.Output}, string databaseFile = product.msi) Line 536 + 0x1d bytesC#light.exe!Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(string[] args = {Dimensions:[1]}) Line 496 + 0x1d bytesC#
light.exe!Microsoft.Tools.WindowsInstallerXml.Tools.Light.Main(string[] args = {Dimensions:[1]}) Line 108 + 0xc bytesC#
Regards,
Silvio

On 7/3/06, Derek Cicerone [EMAIL PROTECTED] wrote:




The issue appears to be during the stream import. I just made a fix in this code last week but it looks like it's not good enough. If you can, you should debug into this issue and take a look at the lines around where the exception is thrown. You'll want to check the path of the file being imported to ensure it exists and we could really use some info about the Win32Exception's NativeErrorCode property (this tells us the actual error code) so we can fix the issue. Additionally, I'm gonna change the error reporting for these types of errors to report more information so we can do a better job debugging these issues if they arise again in the future.


Thanks,
Derek





From: Silvio Massari [mailto:
[EMAIL PROTECTED]] Sent: Monday, July 03, 2006 12:01 PM
To: [EMAIL PROTECTED]
Cc: wix-users@lists.sourceforge.netSubject:
 Re: [WiX-users] version 3 - error LGHT0216



Hi Derek,

c:\wixlight.exe -v product.wixobjMicrosoft (R) Windows Installer Xml Linker version 3.0.1828.0Copyright (C) Microsoft Corporation 2003. All rights reserved.
 
Updating file information.Generating database.Merging modules.Processing media information.Creating cabinet 'C:\DOCUME~1\silvio\LOCALS~1\Temp\pbh4uup9\#product.cab'. 
Cabbing file readme from 'readme.txt'.Importing streams.light.exe : error LGHT0216 : An unexpected Win32 exception occurred: The system cannot open the device or file specified
c:\wix

The readme.txt file is at c:\wix folder too.

Thanks for your time.

Silvio

On 7/3/06, Derek Cicerone 
[EMAIL PROTECTED] wrote: 



Can you run light with verbose logging on so we can get an idea of where the issue occurred?

Thanks,
Derek





From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 ] On Behalf Of Silvio MassariSent: Monday, July 03, 2006 7:45 AMTo: 
wix-users@lists.sourceforge.netSubject: [WiX-users] version 3 - error LGHT0216



Hi everybody,

Few days ago I began to try with version 3. ButI always have the same error executing Light.


C:\wixcandle.exe product.wxsMicrosoft (R) Windows Installer Xml Compiler version 3.0.1828.0Copyright (C) Microsoft Corporation 2003. All rights reserved. 

product.wxs
C:\wixlight.exe product.wixobjMicrosoft (R) Windows Installer Xml Linker version 3.0.1828.0Copyright (C) Microsoft Corporation 2003. All rights reserved. 

light.exe : error LGHT0216 : An unexpected Win32 exception occurred: The system cannot open the device or file specified
C:\wix
I'm running on Windows XP with VS2003 and VS2005

Could anybody tell me where is the problem?

Thanks

Silvio.




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] version 3 - error LGHT0216

2006-07-04 Thread Derek Cicerone








Got it  this will be fixed in the
next release. Youll need to ensure you get darice.cub and mergemod.cub
from either the MSI SDK or a later WiX release to stop this error from
occurring.



Derek











From: Silvio Massari
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 04, 2006 2:11
PM
To: [EMAIL PROTECTED]
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] version 3
- error LGHT0216







Hi Derek,





I debugged light.exe, the exception is thrown in the yellow line:







public Database(string path, OpenDatabase type)





{ 





uint handle = 0;





int error = MsiInterop.MsiOpenDatabase(path, new
IntPtr((int)type), out handle);
if (0 != error) 





{







throw new Win32Exception(error);







}





this.Handle = handle;







}





Variables:





path =
c:\\wix\\darice.cub
The file doesn't exist





type = ReadOnly





handle = 0
error =
110
 Native error code =ERROR_OPEN_FAILED











StackTrace:





wix.dll!Microsoft.Tools.WindowsInstallerXml.Msi.Database.Database(string
path = c:\\wix\\darice.cub,
Microsoft.Tools.WindowsInstallerXml.Msi.OpenDatabase type = ReadOnly) Line
75C#
wix.dll!Microsoft.Tools.WindowsInstallerXml.Validator.Validate (string
databaseFile = C:\\Documents and Settings\\silvio\\Local
Settings\\Temp\\bcs2muqp\\product.msi) Line 190 + 0x1b bytesC#
wix.dll!Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Microsoft.Tools.WindowsInstallerXml.Output
output = {Microsoft.Tools.WindowsInstallerXml.Output}, string databaseFile =
product.msi) Line 536 + 0x1d bytesC#
light.exe!Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(string[] args =
{Dimensions:[1]}) Line 496 + 0x1d bytesC# 
light.exe!Microsoft.Tools.WindowsInstallerXml.Tools.Light.Main(string[] args =
{Dimensions:[1]}) Line 108 + 0xc bytesC#






Regards,





Silvio













On 7/3/06, Derek Cicerone [EMAIL PROTECTED]
wrote: 







The issue appears to be during the stream import. I
just made a fix in this code last week but it looks like it's not good
enough. If you can, you should debug into this issue and take a look at
the lines around where the exception is thrown. You'll want to check the
path of the file being imported to ensure it exists and we could really use
some info about the Win32Exception's NativeErrorCode property (this tells us
the actual error code) so we can fix the issue. Additionally, I'm gonna
change the error reporting for these types of errors to report more information
so we can do a better job debugging these issues if they arise again in the
future. 



Thanks,

Derek











From: Silvio Massari [mailto: [EMAIL PROTECTED]]

Sent: Monday, July 03, 2006 12:01
PM 
To: [EMAIL PROTECTED]
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] version 3
- error LGHT0216











Hi Derek,





c:\wixlight.exe -v product.wixobj
Microsoft (R) Windows Installer Xml Linker version 3.0.1828.0
Copyright (C) Microsoft Corporation 2003. All rights reserved. 

Updating file information.
Generating database.
Merging modules.
Processing media information.
Creating cabinet 'C:\DOCUME~1\silvio\LOCALS~1\Temp\pbh4uup9\#product.cab'. 
Cabbing file readme from 'readme.txt'.
Importing streams.
light.exe : error LGHT0216 : An unexpected Win32 exception occurred: The system
cannot open the device or file specified

c:\wix





The
readme.txt file is at c:\wix folder too.





Thanks
for your time.





Silvio







On
7/3/06, Derek
 Cicerone 
[EMAIL PROTECTED] wrote: 







Can you run light with verbose logging on so we can get an
idea of where the issue occurred?



Thanks,

Derek











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
] On Behalf Of Silvio Massari
Sent: Monday, July 03, 2006 7:45
AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] version 3 -
error LGHT0216











Hi
everybody,





Few days
ago I began to try with version 3. ButI always have the same error
executing Light.







C:\wixcandle.exe product.wxs
Microsoft (R) Windows Installer Xml Compiler version 3.0.1828.0
Copyright (C) Microsoft Corporation 2003. All rights reserved. 



product.wxs

C:\wixlight.exe product.wixobj
Microsoft (R) Windows Installer Xml Linker version 3.0.1828.0
Copyright (C) Microsoft Corporation 2003. All rights reserved. 

light.exe : error LGHT0216 : An unexpected Win32 exception
occurred: The system cannot open the device or file specified

C:\wix



I'm
running on Windows XP with VS2003 and VS2005



Could
anybody tell me where is the problem?





Thanks





Silvio.




































Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists

Re: [WiX-users] version 3 - error LGHT0216

2006-07-03 Thread Silvio Massari
Hi Derek,

c:\wixlight.exe -v product.wixobjMicrosoft (R) Windows Installer Xml Linker version 3.0.1828.0Copyright (C) Microsoft Corporation 2003. All rights reserved.

Updating file information.Generating database.Merging modules.Processing media information.Creating cabinet 'C:\DOCUME~1\silvio\LOCALS~1\Temp\pbh4uup9\#product.cab'.
Cabbing file readme from 'readme.txt'.Importing streams.light.exe : error LGHT0216 : An unexpected Win32 exception occurred: The system cannot open the device or file specified
c:\wix
The readme.txt file is at c:\wix folder too.
Thanks for your time.
Silvio
On 7/3/06, Derek Cicerone [EMAIL PROTECTED] wrote:




Can you run light with verbose logging on so we can get an idea of where the issue occurred?

Thanks,
Derek





From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
] On Behalf Of Silvio MassariSent: Monday, July 03, 2006 7:45 AMTo: 
wix-users@lists.sourceforge.netSubject: [WiX-users] version 3 - error LGHT0216



Hi everybody,

Few days ago I began to try with version 3. ButI always have the same error executing Light.


C:\wixcandle.exe product.wxsMicrosoft (R) Windows Installer Xml Compiler version 3.0.1828.0Copyright (C) Microsoft Corporation 2003. All rights reserved.
 
product.wxs
C:\wixlight.exe product.wixobjMicrosoft (R) Windows Installer Xml Linker version 3.0.1828.0Copyright (C) Microsoft Corporation 2003. All rights reserved.

light.exe : error LGHT0216 : An unexpected Win32 exception occurred: The system cannot open the device or file specified
C:\wix
I'm running on Windows XP with VS2003 and VS2005

Could anybody tell me where is the problem?

Thanks

Silvio.



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users