AnsweredAssumed Answered

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

Question asked by nghiep_neolab on Nov 14, 2017
Latest reply on Nov 15, 2017 by nghiep_neolab

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.