Menu

#2445 LGHT0103 cannot find file with type ''

future
migrated
nobody
light (353)
2013-08-21
2011-02-03
Paul Martin
No

I am using MSBuild to build a wixproj file.
I use heat to generate the output from an place the file into the sources before the wixproj is built.
MSBuild returns the error below.
light.exe : error LGHT0103: The system cannot find the file 'obj\Debug..............\Binaries_PublishedWebsites\MaginusEcommerceWeb\App_Templates\componentart_webui_client\2007_1_1590\ComponentArt.Web.UI.Calendar.client_scripts.A573W128.js' with type ''. [C:\Builds\9\Ecommerce\F_50853.Manual\Sources\MaginusEcommerce\Development\F_50853\MaginusEcommerceSetup\MaginusEcommerceWebSetUp.wixproj]

The output from heat shows the file
<component id="user-content-cmpDF9CD4A0F34F1F3E29A3F61AD3DB658A" guid="{BD21010B-96F9-4A4B-B830-C8830A2E5731}">
<file id="user-content-fil00DDCB0ED6E7282F78924B597AC6B195" keypath="yes" source="$(var.MyDir)\MaginusEcommerceWeb\App_Templates\componentart_webui_client\2007_1_1590\ComponentArt.Web.UI.Calendar.client_scripts.A573W128.js">
</file></component>

The wixobj output from the compiler also shows the file with the correct reference
<field>..............\Binaries_PublishedWebsites\MaginusEcommerceWeb\App_Templates\componentart_webui_client\2007_1_1590\ComponentArt.Web.UI.Calendar.client_scripts.A573W128.js</field><field><field>-1</field><field>1</field><field>0</field><field><field><field><field><row sourcelinenumber="C:\Builds\8\Ecommerce\F_50853.Manual\Sources\MaginusEcommerce\Development\F_50853\MaginusEcommerceSetup\Fragments\MaginusEcommerceWeb.wxs*761"><field>filE031B09EB76637829DB65C5510D97487</field><field><field><field><field>dirF3F97A4743418F240613C3F87781EA50</field><field>1</field></field></field></field></row></field></field></field></field></field>

The file MaginusEcommerceWeb\App_Templates\componentart_webui_client\2007_1_1590\ComponentArt.Web.UI.Calendar.client_scripts.A573W128.js exists within the directory and has no special file permissions.

I am building using Wix version 3.5.2322.0 and have sucessfuly managaged to use the above process and version of wix to build a wix installer simple web application.

The MSBuild log file is attached.

Discussion

  • Paul Martin

    Paul Martin - 2011-02-03

    MSBuild log file

     
  • Paul Martin

    Paul Martin - 2011-02-07

    This is a bug within the compiler. The issue is that the filename is over 255 characters yet the compiler is stating that the file doesnt exist.

    Thanks
    Paul

     
  • Rob Mensching

    Rob Mensching - 2013-08-21
    • Status: open --> migrated
     
Auth0 Logo