Jump to content
Software FX Community

Image links wrong


User (Legacy)

Recommended Posts

I just updated to the newest version of chartfx for Visual Studio 2005. 

When working with the webforms version I have a graph set to RenderFormat =

Image the links to the images have an extra / in front. IE: <img

id="m_Chart" src="//chartfx70/temp/CFT0426_09451324DD8.png" WIDTH="650"

HEIGHT="485" usemap="#m_ChartMap" border="0"/>

This means the graphs don't show up. Any clue what I did wrong? Down below

is the code fomr my aspx, any help would be really appreciated.

<chartfx7:Chart ID="m_Chart" runat="server" EnableViewState="False"

Height="350px" Width="580px" RenderFormat="Image">

<Series>

<chartfx7:SeriesAttributes />

<chartfx7:SeriesAttributes />

<chartfx7:SeriesAttributes />

</Series>

<AxisY Step="20">

<LabelsFormat Decimals="1" Format="Number" />

<Grids Major-Visible="False" />

</AxisY>

<AxisY2 Step="20">

<LabelsFormat Format="Number" CustomFormat="####0" />

</AxisY2>

<MainPane AxisY-Step="20" />

<AxisX>

<Grids Major-Visible="False" Major-Width="0" />

</AxisX>

</chartfx7:Chart>

--- Adam Kavan

--- akavan@prconline.com

Link to comment
Share on other sites

I am using the server built into visual studio.  My application is at 

http://localhost:1953/keydrivers/default.aspx which is at

C:\net\Applications\PRC\Web\EasyViewTest.root\EasyViewTest\EasyViewTest

locally.

We can see the graphs being dropped into the Chartfx70\temp folder in the

application but the componenet is outputting the wrong links.

Also, I have tried unistalling chartfx and reinstalling from the links I got

when I purchased it, it still does not work. Additionally one of my

coworkers tried upgrading his system and had the same thing happen to him.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:YsoinJWaGHA.1536@webserver3.softwarefx.com...

> Are you using IIS or the Visual Studio ASP.NET server (Cassini) ?

>

> Where is your application located (path) ?

>

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

keyDrivers is just a subdirectory of our site.

The application starts at

http://localhost:1953/

so what we really want is /chartfx70/temp/CFT0426_09451324DD8.png but

instead we are getting //chartfx70/temp/CFT0426_09451324DD8.png so Internet

Explorer is looking at http://chartfx70/temp/CFT0426_09451324DD8.png instead

of http://localhost:1953/chartfx70/temp/CFT0426_09451324DD8.png

So I just need to know if there is some property in chartFX that is adding

that first / .

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:LBNWLwWaGHA.1536@webserver3.softwarefx.com...

> The Url should have been:

>

> /keydrivers/chartfx70/temp/CFT0426_09451324DD8.png

>

> I see this is not your actual path, your folder is EasyViewTest. How did

> you do the mapping between "keyDrivers" and "EasyViewTest" ?

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

I just checked something else out.  A brand new solution with only a basic 

default page with only a chartfx graph with all of the default settings has

the exact same problem. The graph url has two / at the start so Internet

Expolorer things we are talking about another server.

"Adam Kavan" <akavan@prconline.com> wrote in message

news:8bloD1WaGHA.1536@webserver3.softwarefx.com...

> keyDrivers is just a subdirectory of our site.

>

> The application starts at

> http://localhost:1953/

>

> so what we really want is /chartfx70/temp/CFT0426_09451324DD8.png but

> instead we are getting //chartfx70/temp/CFT0426_09451324DD8.png so

> Internet Explorer is looking at

> http://chartfx70/temp/CFT0426_09451324DD8.png instead of

> http://localhost:1953/chartfx70/temp/CFT0426_09451324DD8.png

>

> So I just need to know if there is some property in chartFX that is adding

> that first / .

>

> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message

> news:LBNWLwWaGHA.1536@webserver3.softwarefx.com...

>> The Url should have been:

>>

>> /keydrivers/chartfx70/temp/CFT0426_09451324DD8.png

>>

>> I see this is not your actual path, your folder is EasyViewTest. How did

>> you do the mapping between "keyDrivers" and "EasyViewTest" ?

>> --

>> Francisco Padron

>> www.chartfx.com

>>

>

>

Link to comment
Share on other sites

There is something I do not understand.

When I create any ASP.NET application in VS.NET, I get it in a sub-folder.

My root directory is a folder which is the same as my project folder.

For example, if I create an application in:

C:\WebSites\Cfx70Test

My url will be:

http://localhost:1824/Cfx70Test/Default.aspx

Cfx70Test, Is my application's path

(HttpContext.Current.Request.ApplicationPath).

In your case, it seems that HttpContext.Current.Request.ApplicationPath is

"/". How did you make it that way ? Is there a setting in your project ? in

VS ? How do you create a project so that the root is "/"

In any case you found a bug when this situation happens (the root in Cassini

being "/") we will fix this in the next SP. Please contact Tech Support for

a hotfix. Notice that this problem only happens using Cassini, the behavior

will be correct in IIS (production).

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

This is something that changed in the latest revision update.  Everything 

was fine before the update.

Mark

> There is something I do not understand.

>

> When I create any ASP.NET application in VS.NET, I get it in a

> sub-folder.

>

> My root directory is a folder which is the same as my project folder.

>

> For example, if I create an application in:

>

> C:\WebSites\Cfx70Test

>

> My url will be:

>

> http://localhost:1824/Cfx70Test/Default.aspx

>

> Cfx70Test, Is my application's path

> (HttpContext.Current.Request.ApplicationPath).

> In your case, it seems that

> HttpContext.Current.Request.ApplicationPath is

> "/". How did you make it that way ? Is there a setting in your

> project ? in

> VS ? How do you create a project so that the root is "/"

> In any case you found a bug when this situation happens (the root in

> Cassini being "/") we will fix this in the next SP. Please contact

> Tech Support for a hotfix. Notice that this problem only happens using

> Cassini, the behavior will be correct in IIS (production).

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...