+ Reply to Thread
Results 1 to 14 of 14

Thread: Add "Utility Network Analyst" in Web Application (.NET)

  1. #1
    Yusuf Irzan
    Join Date
    Mar 2012
    Posts
    17
    Points
    0
    Answers Provided
    2


    0

    Default Add "Utility Network Analyst" in Web Application (.NET)

    Is it possible to add Utility Network Analyst in web application using ADF?

    I've search in Toolbox, and can't find this tool.

    I am also try Network Trace Task.
    But I can't compile ArcObjectsRoutines (part of Network Trace Task).
    It produce this error :
    Code:
    Error	1	The assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not registered for COM Interop. Please register it with regasm.exe /tlb.
    Error	2	The assembly "D:\Work\ADF Utility Network Tools\ArcObjectsRoutines_NET\bin\ArcObjectsRoutines.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'ArcObjectsRoutines.TraceTools.RealIsolation(pJuncCollection), ArcObjectsRoutines'. Error: Error loading type library/DLL.
    Is it another way to add Utility Network Analyst ? Or may be we can't add this tool?

    Note : I'm using ArcGIS 10, and .NET 3.5 (Visual Studio 2010)

    Thanks.

  2. #2
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    seeing the link this project (Network Trace Task) is for 9.3 so you need recompile dll for 10
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

  3. #3
    Yusuf Irzan
    Join Date
    Mar 2012
    Posts
    17
    Points
    0
    Answers Provided
    2


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    Quote Originally Posted by ciava.at View Post
    seeing the link this project (Network Trace Task) is for 9.3 so you need recompile dll for 10
    Hi,
    I've compile all component to .NET 3.5 and adjusting the dll's with ArcGIS version 10, except for NetworkTraceTask that I could not compile.
    So I followed the readme, and I try to make a web application from ArcGIS Server Manager.
    But when I want to configure "Network Trace", it yield an error :
    Could not get type information for NetworkTraceTask, NetworkTraceTask, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9558da685de82a0f using System.Type.GetType

    So, where is the problem?
    Am I missing some step or configuration?

    Maybe one of you have to try this (and success to apply in your web application) ?

  4. #4
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    What's the problem when do you compile NetworkTraceTask?
    Remember that in 10.1 you cannot use this project because yuou cannot use server context so you search a solution that expose soe via rest. I have attach soe rest esri.
    Last edited by ciava.at; 04-05-2012 at 11:22 AM.
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

  5. #5
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    I have add attachments (soe esri geometry network)
    Attached Files
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

  6. #6
    Yusuf Irzan
    Join Date
    Mar 2012
    Posts
    17
    Points
    0
    Answers Provided
    2


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    I can't compile NetworkTraceTask because it have missing references.
    I attached picture of missing references.
    How can I find this missing references?

    By the way, how to register your SOE?
    I ran RegisterNetworkTraceSOE and it yield error :
    Unhandled Exception: System.Runtime.InteropServices.COMException (0x800401F3): Server Object Extension type WVWANetworkTraceSOE can not be registered with Server Object type MapServer because the Server Object Extension is invalid. Please check if it is deployed correctly.
    at ESRI.ArcGIS.Server.IServerObjectAdmin2.AddExtensionType(String SOTypeName,
    IServerObjectExtensionType pSOEType)
    at RegisterNetworkTraceSOE.Program.Main(String[] args) in D:\Yusuf\Work\TracingSOE_Backup\WVWANetworkTraceSOE\RegisterNetworkTraceSOE\Program.cs:line 67
    UPDATE :
    I've been successfully compile NetworkTraceTask, and made a Web Application using wizard in ArcGIS Server Manager.
    But another problem come.
    When I place a flag on map, it yield error like this

    Page_Error
    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at NetworkTraceService92.NetTraceService.UTIL_GetServerContext(String sServerName, String sServiceName) in C:\inetpub\wwwroot\demos\NetworkTraceService\App_Code\NetTraceService.vb:line 317 at NetworkTraceService92.NetTraceService.FindJunction(Double inX, Double inY, String sServerName, String sServiceName, String sVersionName, String sMapName, String sNetName, Double dTol) in C:\inetpub\wwwroot\demos\NetworkTraceService\App_Code\NetTraceService.vb:line 27

    --- End of inner exception stack trace ---

    Application Error at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at NetworkTraceTask.NetTraceService.NetTraceService.FindJunction(Double inX, Double inY, String sServerName, String sServiceName, String sVersionName, String sMapName, String sNetName, Double dTol) at NetworkTraceTask.NetworkTraceTask.NetworkTraceTask.AddPoint(Geometry pGeom, String sType) at NetworkTraceTask.NetworkTraceTask.AddPoint.ServerAction(ToolEventArgs args) at ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.handlePostBack(String clientAction, NameValueCollection parameters) at ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.GetCallbackResult() at ESRI.ArcGIS.ADF.Web.UI.WebControls.WebControl.RaisePostBackEvent(String eventArgument) at ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    I don't know what happen now.
    I've followed step by step in README.doc.
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	missing-references.JPG‎
Views:	48
Size:	16.7 KB
ID:	13332  
    Last edited by Mr.Y; 04-08-2012 at 08:07 PM.

  7. #7
    Yusuf Irzan
    Join Date
    Mar 2012
    Posts
    17
    Points
    0
    Answers Provided
    2


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    OK guys, I've found and correct the error, but it still have problem.
    After I place a flag, it not show any sign.
    Then I click "Execute" button, and it results :
    Network Trace results: No results found (0)
    So, the same question, anything wrong with this code?

    P.S : I do a change in source code, but it's a minor change.

  8. #8
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    have you tried use soe rest via service directory for see if your input and output are ok?
    This is soe rest so you must do call rest from your task.
    see sample call rest via net: http://rexdotnet.blogspot.it/2009/11...pi-in-net.html
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

  9. #9
    Yusuf Irzan
    Join Date
    Mar 2012
    Posts
    17
    Points
    0
    Answers Provided
    2


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    PROBLEM SOLVED
    Thanks to Mr. Ciava for help me

    But the problem is came from the source code itself.
    I've fixed the source code (just little fix) , and maybe I will upload it if I'm not busy.

    Thanks again for Mr. Ciava, and maybe I will try your SOE sometime

  10. #10
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    Mr. Y thank you for info but can you share with users forum the fix problem that you have found?
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

  11. #11
    David Booth
    Join Date
    May 2010
    Posts
    22
    Points
    0
    Answers Provided
    0


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    Quote Originally Posted by Mr.Y View Post
    PROBLEM SOLVED
    Thanks to Mr. Ciava for help me

    But the problem is came from the source code itself.
    I've fixed the source code (just little fix) , and maybe I will upload it if I'm not busy.

    Thanks again for Mr. Ciava, and maybe I will try your SOE sometime
    I'd really be interested in your script. If you could post it, that would be much appreciated.

    Thanks!

  12. #12
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    David, if you have patient in these days I post in gallery this extension soe rest.
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

  13. #13
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Add "Utility Network Analyst" in Web Application (.NET)

    here I have posted a Geometric Network soe rest (valve isolation and trace solve)
    http://resources.arcgis.com/Resource...9-02AE02C23A15
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

  14. #14
    Yusuf Irzan
    Join Date
    Mar 2012
    Posts
    17
    Points
    0
    Answers Provided
    2


    0
    This post is marked as the answer

    Lightbulb Re: Add "Utility Network Analyst" in Web Application (.NET)

    Dear All,
    I've uploaded my work, but I can't guarantee it's work as your needs because I'm not working on it anymore.
    If you have fix it and work successfully, please share with us

    Download Link : http://www.mediafire.com/?jyc7d2y8ht2c747

+ Reply to Thread

Posting Permissions

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