Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic is there any way I can set ShapeLibraryLocation pr (Read 2874 times)
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
is there any way I can set ShapeLibraryLocation pr
Mar 3rd, 2011 at 5:26pm
Print Post  
Dear Sir/Madam,

Currently we have to use custom shapes for users to draw their processes, then LeanIcons.shl had be defined in shape designer.

So we use tag called ShapeListBox in aspx page shown in the following,

<ndiag:ShapeListBox ID="ShapeListBox1" runat="server" Height="450px" Style="background-color: white"
Width="200px" ShapeLibraryLocation="LeanIcons.shl">
</ndiag:ShapeListBox>

It works fine when developing, custom shapes can be shown in the panel. The url is below,

http://localhost:4625/DevelopmentSite/management/EditProcess.aspx

When I deployed this service on live server and I got the error below in the Java’s console


java.io.FileNotFoundException: http://www.company.com/management/LeanIcons.shl

java.lang.RuntimeException: java.io.FileNotFoundException:
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unkn
own Source)

at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(U
nknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)

... 4 more
CreateGUI didn't complete successfully.

And the shapes are all set to default, so I cannot use custom shape defined in LeanIcons.shl on live server.

The problem could be addressed on Virtual Directory
In Develop environment:
http://localhost:4625/DevelopmentSite/management/EditProcess.aspx ----->it works fine.
In Live environment:
http://www.company.com/management/EditProcess.aspx ----> custom shape cannot be used


So is there any way I can set ShapeLibraryLocation properly?

I try to use “~/management/LeanIcons.shl” in ndiag:ShapeListBox tag, the path will be generated as http://www.company.com/management/~/management/LeanIcons.shl

Any suggestions?
PS:Environment is NetDiagram Trial Version 3.1.1 /Windows Server 2003/ Asp.net 2.0
Many Thanks,
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: is there any way I can set ShapeLibraryLocatio
Reply #1 - Mar 3rd, 2011 at 5:42pm
Print Post  
Hi,

The server might be configured to serve only some file types. Try adding the .shl extension to the serve list, or renaming the file to .xml.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
Re: is there any way I can set ShapeLibraryLocatio
Reply #2 - Mar 4th, 2011 at 9:44am
Print Post  
Hi,

I add a new MIME Type (text/xml) in IIS 6 for .shl file

and it works very well now.

many thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint