Select to view content in your preferred language

ArcGIS doesn't work on IIS > Not signed into Portal

889
2
11-14-2017 06:58 PM
NghiepNeoLab
Emerging Contributor

Hello everybody,

I am trying to configure and use arcpy on IIS. I can run basic Python code but I cannot import arcpy. The error message is "Not signed into Portal".

Actually I have signed in on ArcGIS application..

I installed ArcGIS at location:

C:/Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/python.exe

My IIS is 

My CGI configuration is 

I write basically Python script

When I try to run my script on Windows Command Prompt without IIS environment. It works well.

When I try to run my script on browser of IIS (for example Chrome). It doesn't work

But if I remove "import arcpy" outside my python script, and try again. It works

I don't know why. I have searched to find the solution but I cannot fix it.

I really need to resolve it soon because School deadline is short. If someone know how to fix please help me

Thank a lot.

p/s: I am sorry about my English.

0 Kudos
2 Replies
RebeccaStrauch__GISP
MVP Emeritus

I'm not an IIS expert, but I don't think arcpy is meant to run in a browser in that manner.  Typically you would create a geoprocessing service to run in a web app (or Desktop app).  It might help to explain a little more about what you are trying to do. What ArcGIS software and versions you have access too, etc.  Also, posting your code using /blogs/dan_patterson/2016/08/14/script-formatting?sr=search&searchId=347edb37-9b0e-4ffc-81c4-f4d1da2...‌  would help.

Also tagging https://community.esri.com/community/gis/applications/arcgis-pro?sr=search&searchId=c318f72e-68a6-4d...https://community.esri.com/groups/arcgis-pro-tasks?sr=search&searchId=c318f72e-68a6-4d1e-919b-057055...‌ since you mention you have that installed.

0 Kudos
NghiepNeoLab
Emerging Contributor

Thank @Rebecca Strauch

0 Kudos