Failed to open Main.cs - Packaging error

Failed to open Main.cs - Packaging error

Hi, An ISV followed the packaging guidelines and created an .msi package using MS Visual studio 2008. The app failed validation because once the app is launched from AppUp, it throws an error " Failed to open Main.cs" . However it launches from program Menu and desktop Shortcut. Please help in identifying the error. Regards, Priya
8 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Priya,

In addition to Roovens excellent reply:

This is usually a resource issue. Indeed beta testing wil get to the root of the issue quickly. The application is not able to locate a particular image or other resource when executed from AppUp.

Are you including a file named Main.cs for deployment in your MSI? If so, may I ask why source code has been included?

Hi All,
Is it not that every .Net application is compiled (VB.Net is compiled using it's compiler, c# is compiled using it's specific compiler....) and then an Assembly is created, and assemblies can be in 2 formats (.dll & .exe) and then compilation cycle is over & runtime takes the control of Assembly & allocates & de-allocates the resources (etc). So If the app is compiled shouldn't an Exe be created is bin folder (default). And Main.cs being the host file or startup definition be a part of the compiled version? And once completed (i.e. exe generated) creating a MSI is easy.

Did your code use some method read something from the exe file directory ? ex: Environment.CurrentDirectory ......
If yes, using Assembly Class to get the exe file directory.
like:
Path.GetDirectoryName( new Uri(this.GetType().Assembly.CodeBase).LocalPath)

If feasible you could also embed the item as a resource to keep file path issues out of the equation.

Hi Priyadharshini-k,

The most common reason for these kind of failures could mainly be because the targets/paths are not properly set while packaging the application.
I would recommend the developers go through the packaging of the application again and check if everything is properly set. The following links might be useful in troubleshooting the exact cause of the failure:

http://appdeveloper.intel.com/en-us/node/1324
http://appdeveloper.intel.com/en-us/blog/2009/12/18/include-all-your-redistributable-library-packages-msi
http://appdeveloper.intel.com/en-us/article/troubleshooting-validation-failures

Also to better troubleshoot the issue, it is recommended that the developer beta test their application to see if they are getting any issues while launching the app via the AppUp(SM) Center before submitting for validation: http://appdeveloper.intel.com/en-us/article/beta-testing

Please do not hesitate to contact us if you need further help.

Regards
Rooven

Intel® Technical Support
Intel® Atom™ Developer Program
Intel AppUp(SM) Center

Regards,
DG Rooven

Hi Brian,

It is an opensource app and ISV is submitting it as opensource,free ware without integrating the SDK. The app is developed using torque game builder.

How do we resolve this issue ?

Regards,
Priya

Priya,

Ok, this makes more sense now. Your application can not find the file, this post should get you going in the correct direction:

http://appdeveloper.intel.com/en-us/node/916

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui