<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Internal Server Error 500  executing ArcPy GPK in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545196#M2764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not had any success configuring fiddler with ArcGIS Server 10.2.&amp;nbsp; Any clues as to how to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have it running on the same box as this and it uses the default port of 6080.&amp;nbsp; No matter what I do I can't see any messages from the console WPF application and the ArcGIS Server service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Nov 2013 16:40:17 GMT</pubDate>
    <dc:creator>JohnPtasznik</dc:creator>
    <dc:date>2013-11-08T16:40:17Z</dc:date>
    <item>
      <title>Internal Server Error 500  executing ArcPy GPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545194#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created an ArcPy GP Function based on a model I built.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can execute it in Desktop and it behaves as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I publish the package and when I run my program against it I get the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Net.WebException: The remote server returned an error: (500) Internal Server Error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest&amp;amp; request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Net.WebClient.DownloadString(Uri address)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Tasks.TaskBase.Request(String url, Dictionary`2 parameters, Boolean forcePost)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Tasks.Geoprocessor.Execute(List`1 parameters)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at RoutingWithGeoProcesingPackage.Program.RunTool(Geoprocessor gpTask) in c:\Code\CAD\Prototypes\GIS\RoutingWithGeoProcesingPackage\RoutingWithGeoProcesingPackage\Program.cs:line 112&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at RoutingWithGeoProcesingPackage.Program.Main() in c:\Code\CAD\Prototypes\GIS\RoutingWithGeoProcesingPackage\RoutingWithGeoProcesingPackage\Program.cs:line 48&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
# Import arcpy module
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("Network")

# Script arguments
Stops = arcpy.GetParameterAsText(0)

Barriers = arcpy.GetParameterAsText(1)

Impedance_Attribute = arcpy.GetParameterAsText(3)
if Impedance_Attribute == '#' or not Impedance_Attribute:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Impedance_Attribute = "Time" # provide a default value if unspecified

Restrictions = arcpy.GetParameterAsText(4)
if Restrictions == '#' or not Restrictions:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Restrictions = "Oneway" # provide a default value if unspecified

Vehicle_Weight = arcpy.GetParameterAsText(5)

Vehicle_Height = arcpy.GetParameterAsText(6)

Directions_XML_File = arcpy.GetParameterAsText(7)

# Local variables:
Input_Network_Dataset = "C:\\ServerData\\GCSRouting.gdb\\NetworkDataset_Data\\Streets_ND"
Route = "SolvedRoute"

# Process: Make Route Layer
arcpy.MakeRouteLayer_na(Input_Network_Dataset, Route, Impedance_Attribute, "USE_INPUT_ORDER", "PRESERVE_BOTH", "NO_TIMEWINDOWS", "", "ALLOW_UTURNS", Restrictions, "NO_HIERARCHY", "", "TRUE_LINES_WITH_MEASURES", "")

# Process: Add Vehicle Weight
if Vehicle_Weight:
 arcpy.UpdateAnalysisLayerAttributeParameter_na(Route, "WeightRestrtiction", "Vehicle Weight", Vehicle_Weight)

# Process: Add Vehicle Height
if Vehicle_Height:
 arcpy.UpdateAnalysisLayerAttributeParameter_na(Route, "HeightRestriction", "Vehicle Height", Vehicle_Height)

# Process: Add Stops
arcpy.AddLocations_na(Route, "Stops", Stops, "", "5000 Meters", "", "Driveways SHAPE;Streets SHAPE;Driveway_Endpoints SHAPE;Streets_ND_Junctions NONE", "MATCH_TO_CLOSEST", "CLEAR", "NO_SNAP", "5 Meters", "INCLUDE", "Driveways #;Streets #;Driveway_Endpoints #;Streets_ND_Junctions #")

# Process: Add Barriers
if Barriers:
 arcpy.AddLocations_na(Route, "Point Barriers", Barriers,"", "5000 Meters", "", "Driveways SHAPE;Streets SHAPE;Driveway_Endpoints SHAPE;Streets_ND_Junctions NONE", "MATCH_TO_CLOSEST", "CLEAR", "NO_SNAP", "5 Meters", "INCLUDE", "Driveways #;Streets #;Driveway_Endpoints #;Streets_ND_Junctions #")

# Process: Directions
arcpy.env.workspace = "in_memory"
if Directions_XML_File == '#' or not Directions_XML_File:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Directions_XML_File = arcpy.CreateUniqueName("Directions.xml", arcpy.env.scratchFolder)

arcpy.AddMessage("Directions XML = " + Directions_XML_File)
arcpy.Directions_na(Route, "XML", Directions_XML_File, "Miles", "REPORT_TIME", "Time", "en", "NA Desktop")
#, "")

# Process: Select Data
SelectResults = arcpy.SelectData_management(Route, "Routes")
SelectLayer = SelectResults.getOutput(0)

OutFeatureSet = arcpy.FeatureSet()
OutFeatureSet.load(SelectLayer)
arcpy.SetParameter(2, OutFeatureSet)
arcpy.SetParameter(7, Directions_XML_File)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545194#M2762</guid>
      <dc:creator>JohnPtasznik</dc:creator>
      <dc:date>2013-11-05T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Server Error 500  executing ArcPy GPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545195#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you considered running Fiddler to see what is being pushed back and forward ? that might give you some insight in what is going wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://fiddler2.com/"&gt;http://fiddler2.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 16:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545195#M2763</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2013-11-08T16:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Server Error 500  executing ArcPy GPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545196#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not had any success configuring fiddler with ArcGIS Server 10.2.&amp;nbsp; Any clues as to how to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have it running on the same box as this and it uses the default port of 6080.&amp;nbsp; No matter what I do I can't see any messages from the console WPF application and the ArcGIS Server service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 16:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545196#M2764</guid>
      <dc:creator>JohnPtasznik</dc:creator>
      <dc:date>2013-11-08T16:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Server Error 500  executing ArcPy GPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545197#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure about 10.2, but in 10.1.1 you will need to use the Local Server Utility that is installed and accessible through the Start button. This has an option to enable HTTP debugging of .NET client applications.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 18:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545197#M2765</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2013-11-08T18:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Server Error 500  executing ArcPy GPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545198#M2766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://fiddler2.com/documentation/Configure-Fiddler/Tasks/MonitorLocalTraffic"&gt;http://fiddler2.com/documentation/Configure-Fiddler/Tasks/MonitorLocalTraffic&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545198#M2766</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-11-08T19:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Server Error 500  executing ArcPy GPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545199#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the help.&amp;nbsp; I forgot about the debug option on the local server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 19:57:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/internal-server-error-500-nbsp-executing-arcpy-gpk/m-p/545199#M2767</guid>
      <dc:creator>JohnPtasznik</dc:creator>
      <dc:date>2013-11-11T19:57:45Z</dc:date>
    </item>
  </channel>
</rss>

