Select to view content in your preferred language

Runnning python Script tool(.tbx) on Button click event in arcgis pro sdk .net

970
3
02-17-2022 01:24 AM
SanjaykumarRajbhar
New Contributor II

I am following this Guide to achieve the Embedding Toolboxes. but it says error about which I am clueless. can you please guide what went wrong.

 

Error:  Access to this resource is forbidden, regardless of authorization. (status code 403).

SanjaykumarRajbhar_0-1645089739699.png

 

Also after few minutes later , clicking on button gives me error

 

SanjaykumarRajbhar_0-1645091332568.png

 

ps. just started learning practicing Pro SDK though I'm good at arcpy.

Tags (3)
3 Replies
Justin_P
New Contributor III

Did you ever figure out the problem?

BlakeMorrell34
New Contributor

@SanjaykumarRajbhar  Please let us know if you ever solved the problem. I am encountering the same error.

0 Kudos
BlakeMorrell34
New Contributor

Solved! At least for me... I am using Visual Studio 2022 and ArcGIS Pro 3.1.2. Windows 11.  followed this guide: https://youtu.be/0HuXF_lJY0o?si=FId8Gk7XVKW-klcC 

I got the same error as the original post. In Visual Studio, I forgot to change the ArcGIS Pro Python Toolbox .pyt file property "Copy to Output Directory" value from 'Do Not Copy' to 'Copy Always'. See attached picture.

Learn how to work with the ArcGIS Pro SDK to create Pro Add-ins using C# and .NET Framework. In this video we download and install Visual Studio 2019, .NET 4.8 Framework and ArcGIS Pro SDK. Code - https://github.com/franchyze923/ArcGIS-Pro-Add-In-Tutorials Useful Links - ...
0 Kudos