Solved

Configuration Error on file or assembly not loading

Posted on 2011-02-28
6
2,920 Views
Last Modified: 2012-05-11
I downloaded MSChart.exe and installed on my local machine. My application with chart is working fine. on my local machine. After I posted the application on a testing server, I got the following error. The error locates at line 67: assembly="System.Web.DataVisualization.Design -
-------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web.DataVisualization.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 65:                         <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 66:                         <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 67:                         <add assembly="System.Web.DataVisualization.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 68:                         <add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 69:                         <add assembly="System.Windows.Forms.DataVisualization.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
 

Source File: C:\WebApps\OBSAPP\web.config    Line: 67

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.DataVisualization.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
-------------------------------------------------------------------------------------
How can I resolve it? Please help.
0
Comment
Question by:minglelinch
6 Comments
 
LVL 12

Expert Comment

by:HugoHiasl
ID: 35002094
You used the Microsoft Charting components but the library seems not to be available on the target system. Did you only copy the executable without using an installer?
0
 
LVL 5

Expert Comment

by:jijeesh
ID: 35002108
Can you check .NET framework is installed on that machine?
0
 
LVL 1

Author Comment

by:minglelinch
ID: 35002169
I published my application to that server and I installed MSChart on that machine.
0
 
LVL 1

Accepted Solution

by:
minglelinch earned 0 total points
ID: 35002333
I resolved my problem by

1) Install MS Chart on that server
2) Re-deploy the application onto the test server
5) Create a temp image folder at the test server "C:\TempImageFiles"

After I did the above, the error goes away.  This link helped me
http://social.msdn.microsoft.com/Forums/en/MSWinWebChart/thread/d976b659-264a-4731-935c-08c02865002f

0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 35913594
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Checkbox in a dynamic GridVIew is not clickable? 5 25
VB.net Move a class from Solution Items to a project 2 22
MediaHelp 4 21
Save ms data to server side. 19 42
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now