ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  installation problems with ASP.NET version
Posted by Jari Likonen on Dec-27-2013 12:03
Attachments:
Hi,

I'm trying to install asp.net version and I have copied the netchartdir.dll to the bin folder. I have opened the main page for demo programs and when I click on "◾To check the ChartDirector installation, click here." I get the following error message (see the attached file). Any ideas what is causing it?

Best regards,
Jari
Capture.JPG

  Re: installation problems with ASP.NET version
Posted by Peter Kwan on Dec-27-2013 13:59
Hi Jari,

Please copy the "CSharpASP" and/or "VBNetASP" subdirectory to your web application directory (to the wwwroot directory if you are using the root web application), not the NetWebCharts subdirectory. The URL you should should like:

http://localhost/myWebApp/CSharpASP/index.htm

where myWebApp is your web application directory. If you are using the root web application, is should be like:

http://localhost/CSharpASP/index.htm

The NetWebCharts subdirectory contains the web.config file, and so must be the web application directory. You may open it directory with Visual Studio as a Web Site. You cannot "copy" it to wwwroot using the File Explorer, as the IIS will treat it as a normal subdirectory, not a web application subdirectory. The error message you encountered means the IIS detected the web.config file, but the NetWebCharts subdirectory is not configured as a web application subdirectory in IIS. To use NetWebCharts in IIS, you have to create it in IIS as a web application. You can use Visual Studio to do this.

Hope this can help.

Regards
Peter Kwan

  Re: installation problems with ASP.NET version
Posted by Jari Likonen on Dec-27-2013 15:58
Hi again,

In fact I'm not running IIS but Homeseer home automation software (www.homeseer.com) which has a built in web server.

Best regards,
Jari

  Re: installation problems with ASP.NET version
Posted by Jari Likonen on Dec-27-2013 15:53
Attachments:
Hi Peter,

I still get (new) error messages when trying to Check the Chartdirector installation in the index.htm page (see attached sceen copy). I also tried to run one demo (Simple Pie Chart, see second screen copy). Any ideas about these problems?
Capture.JPG
Capture2.JPG

  Re: installation problems with ASP.NET version
Posted by Peter Kwan on Dec-27-2013 18:59
Hi Jari,

The only reason I can think of is that there are two ChartDirector DLLs included somehow, and so the server is confused which one the code is referring to.

There are two options to use ChartDirector in ASP.NET:

(a) Putting the strong-named ChartDirector DLL into GAC and adding the folloiwng line in web.config or machine.config:

<add assembly="netchartdir, Version=[version], Culture=neutral, PublicKeyToken=[public_key_token]"/>

or

(b) Putting the "netchartdir.dll" into the "bin" subdirectory of the web application. Note that only one ChartDirector DLL "netchartdir.dll" is needed. Do not put other "netchartdir?????.dll" there.

Only one of the above should be used. If you are using the strong-named ChartDirector DLL, please remove the one in the "bin" subdirectory.

Please kindly let me know if this could solve the problem.

Regards
Peter Kwan

  Re: installation problems with ASP.NET version
Posted by Jari Likonen on Dec-27-2013 19:29
Hi Peter,

Option b solved all the problems. There were dll files also in the bin folder for my Homeseer program so there were dll files in two different folders. Many thanks for your help.

Best regards,
Jari