I would like to create a file with an ArcGIS Server Object Extension and return the url. Is this possible? Where would I write the file?
I'm working with .Net, IIS, and AGS 10.1.
It is possible. First, you need to register output directory or parent directory as "Data store". Because, ArcGIS Server 10.1 can only access to "Data store" directory. Next, add the output directory as IIS Virtual directory. Then, you can create file to output directory and access it from IIS.
To get more information about Data store, please follow,
Here is the sample code. This code is from REST template.
Hope this help you.
in ags server 10.1, the server directory arcgisserver can be access with the url, you do not need to register it, so i always export a file,special an image file in the arcgisserver directory and then given the url to the client.