ok i made the service work, but now when i try to use the tool on the basemap, Arcmap crashes.
I created the base map and published it, it was fine.
Then i created the map with the tool layer and published it, and it was fine.
But when i use the tool coming from the map with tool layer on the base map, Arcmap shuts down and the following window comes: