Results 1 to 5 of 5

Thread: Problem distributing project with chart

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Problem distributing project with chart

    I have added a Chart v3.5 to my VB 2010 project and the chart displays correctly.

    I have published the project and when I distribute it and the user updates and tries to run the project there is the error message asking if you want to send details of the error to microsoft.

    I assume the error is caused by the Chart component being missing from the project as if I remove the chart the user can use the program.

    Is there something missing as I cannot see where the chart component is added to my distribution.

    Should it appear in Publish - Application Files?

    Thanks.

  2. #2

    Re: Problem distributing project with chart

    In the References area of your Project, you should be able to select the DLL/Component to "Copy Local", which will create a copy of the DLL and place it in the Debug/Release folder on a compile. Without it installed on other PC's, of course your program will crash.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Re: Problem distributing project with chart

    Thanks.
    In the Solution Explorer under references I have System.Windows.Forms.DataVisualization - I have set 'Copy Local' to True (for most other references 'Copy Local' is false).

    If I go into Public - Applcation Files, System.Windows.Forms.DataVisualization is not listed - I'm not sure is this is significant.

    When I publish the project and deploy it I get the message "MyApp has encountered a problem and needs to close...".

    When I check what programs have been installed, System.Windows.Forms.DataVisualization is not there.

    I'm not sure what I'm missing.
    Thanks

  4. #4

    Re: Problem distributing project with chart

    It wouldn't be an installed program. The DLL should be with your application EXE or registered in the GAC. When you're deploying, can you make sure the dependency is actually being included?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Re: Problem distributing project with chart

    Thanks, but how can I check the following?

    "When you're deploying, can you make sure the dependency is actually being included?"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width