Click here to Skip to main content
15,896,428 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
My project is in .Net 4 and works good,
But in setup project i got some errors like this:
Warning 2 The 'SAP Crystal Reports Runtime Engine for .NET Framework' item selected requires 'Microsoft.Data.Access.Components.2.8'. Select the missing prerequisite in the Prerequisites Dialog Box or create a bootstrapper package for the missing prerequisite.

C#
Error   4   The install location for prerequisites has not been set to 'component vendor's web site' and the file 'Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_5.msi' in item 'SAP Crystal Reports Runtime Engine for .NET Framework' can not be located on disk. See Help for more information.


and building faild!!
also my app.config is:
XML
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
    <add name="vam.Properties.Settings.vamConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=G:\vam\vam\bin\Debug\vam.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

please help
Posted
v2
Comments
[no name] 4-May-13 12:20pm    
And now why are you reposting?
FM7 4-May-13 15:36pm    
what you mean?

1 solution

in setup project solution explorer , right click and then select properties then in properties form click prerequistic , select .Net framework in list and other prerequistic.
 
Share this answer
 
Comments
FM7 4-May-13 15:39pm    
i do all of them,but still errors appears!
Mojtaba Eng 4-May-13 22:08pm    
in prerequisite selection after selection , select option "Download prerequisite from same location as my application" under prerequisite selection box , by click on its radiobutton
FM7 5-May-13 4:32am    
ok my friend agha mojtaba.it's very simple.i know.
i do all.but i don't know what is the problem in building.
Mojtaba Eng 5-May-13 6:31am    
Ok ,
1-
Error 4 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_5.msi' in item 'SAP Crystal Reports Runtime Engine for .NET Framework' can not be located on disk. See Help for more information.

you must select component vendor's web site radio for Crystal setup !

2- put your DB file in known system folder for example system32 or in your application assembly side , Application.StartupPath or Envirenment.SystemDirectory
for rational path.
2-Write your own setup project by wizard form design , not by vs.net setup. simply you can link your prerequisite in the form or by wizard form and setup all them , then add your database and other config. it is seems be best.
good luck

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900