Enhance Search - By Spatial - Search failed !

1922
20
Jump to solution
11-30-2017 06:41 AM
DanielMunoz
Occasional Contributor

Good morning!

The enhance search widget works great on the desktop browser but I'm not able to make it work on the mobile devices, I'm using the Launchpad Theme, I was able to get a result once using the selection never using the buffer, I tried to get an error report simulating mobile devices with device mode in chrome but it didn't report any errors and performed as designed. Any ideas are most welcome, thank you!

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Daniel,

   In your case there is no need for username and password on your server url, as for the traffic and route urls you use your AGOL username and password.

View solution in original post

20 Replies
DanielMunoz
Occasional Contributor
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Daniel,

   The buffer portion of the widget will Normally require that you have a Proxy setup because the buffer geometry will normally have a large geometry string that exceeds the Get limit of most browsers and the Proxy is need to do a Put instead.

I see that even on Desktop the buffer is failing because of the missing proxy.

DanielMunoz
Occasional Contributor

Robert. Thank you very much. I will work on setting up a proxy. Daniel

0 Kudos
DanielMunoz
Occasional Contributor

Robert, I set up the proxy with no luck, after many days of trouble shooting still is not working when I go to http://localhost/proxy/proxy.ashx?ping I get the below message:

Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

c:\inetpub\wwwroot\proxy\proxy.ashx(160,30): warning CS0168: The variable 'e' is declared but never used
c:\inetpub\wwwroot\proxy\proxy.ashx(561,69): error CS0117: 'System.Net.SecurityProtocolType' does not contain a definition for 'Tls12'

I have a server win 2008 R2 with .NET 4.0, I applied all the MS updates, I edited the registry to make sure TLS 1.2 is working, an ssl report from ssl labs shows the  protocol TLS 1.2 is good, I understand this might be out of realm of the app  but I'm hoping you have seen this behavior and have a suggestion. thank you! Daniel

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Daniel,

I have never seen that error.

OK, some basic questions.

  1. Did you set the proxy folder as an "Application" in IIS?
  2. Is the proxy app using .net 4.0 application pool in IIS?
  3. What version of the Proxy are you using?
0 Kudos
DanielMunoz
Occasional Contributor

1. Yes

2. Yes

3. 1.1.2 ? i downloaded from this link: GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP. 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Daniel,

2. image show me that you have an app pool for .net 4.0 but does not tell me that you are using this application pool for your proxy app?

If you right click on the proxy app in IIS and choose "Manage Application" >  Advanced Settings... Does Application Pool say "ASP.Net v4.0"?

0 Kudos
DanielMunoz
Occasional Contributor

Robert. Below is the full page error:

Server Error in '/proxy' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0117: 'System.Net.SecurityProtocolType' does not contain a definition for 'Tls12'

Source Error:

Line 559: private System.Net.HttpWebRequest createHTTPRequest(string uri, string method, string contentType, System.Net.NetworkCredential credentials = null)
Line 560: {
Line 561: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Line 562: System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(uri);
Line 563: req.ServicePoint.Expect100Continue = false;

Source File: c:\inetpub\wwwroot\proxy\proxy.ashx Line: 561

Compiler Warning Messages:
Warning: CS0168: The variable 'e' is declared but never used
Source Error:

c:\inetpub\wwwroot\proxy\proxy.ashx

Line 158:
Line 159: }
Line 160: catch (Exception e)
Line 161: {
Line 162: log(TraceLevel.Warning, "Proxy is being used from an invalid referer: " + context.Request.Headers["referer"]);


Show Detailed Compiler Output:


c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\proxy\d112e4ea\f2a5984e\App_Web_proxy.ashx.cdcab7d2.n_ayiquf.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\proxy\d112e4ea\f2a5984e\App_Web_proxy.ashx.cdcab7d2.n_ayiquf.0.cs" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\proxy\d112e4ea\f2a5984e\App_Web_proxy.ashx.cdcab7d2.n_ayiquf.1.cs"


Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

c:\inetpub\wwwroot\proxy\proxy.ashx(160,30): warning CS0168: The variable 'e' is declared but never used
c:\inetpub\wwwroot\proxy\proxy.ashx(561,69): error CS0117: 'System.Net.SecurityProtocolType' does not contain a definition for 'Tls12'


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Daniel,

  If you are a US customer under current maintenance I would give esri tech support a call on this.

0 Kudos