There seem to be some authentication issue going on with your web server. If I navigate to it via the REST Service Directory, I can see that it has one PDF attachment: http://emrgisviewer.emr-inc.com/ArcGIS/rest/services/CPR/CPR_Data/FeatureServer/2/818/attachments but when I click the PDF link: http://emrgisviewer.emr-inc.com/ArcGIS/rest/services/CPR/CPR_Data/FeatureServer/2/818/attachments/801 I get an "Unauthorized" error: Server Error - The remote server returned an error: (401) Unauthorized.Code: 500
I too found out that virtual directory was not created in IIS for my arcgisoutput directory. Soon as I made that virtual directory in IIS and made sure the permissions would allow for web access, and it worked!One thing to note is that my virtual directory is called "arcgisoutput", is pathed to"c:\arcgisserver\arcgisoutput", and it appears as www.fishcda.com/arcgisoutput, however if you look at the actual link that is supplied by rest it looks like the links above (e.g. http://www.fishcda.com/ArcGIS/rest/services/SampleEdit/FeatureServer/3/411/attachments/2). This may lead some to believe that you need to have this crazy long path/nested virtual directories all set up (at least that is what I thought at first look). Apparently, through the magic of ArcGIS Server it translates all this and points the file back to the simple location such as www.fishcda.com\arcgisoutput.Hope that helps someone,
What is the URL that it is trying to open? It should probably be similar to something like:http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0/1658885/attachments/30882 ...
Yes, both the web server and ArcGIS Services can limit the file size. Both are configurable..NET The max allowed upload size is the smallest value defined by: a. <MaxUploadSize>20480</MaxUploadSize> as defined in rest.config. or b. ASP .NET Max Request length as defined in web.config <httpRuntime maxRequestLength=10240" />.See http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=35971 for more info.Java The default max allowed upload size is 20 MB. This can be modified by setting "config.max-upload-size" property in rest-config.properties.From "Problem: How do I upload large attachments?" in the FAQ:http://help.arcgis.com/en/webapi/flex/help/index.html#references/faq.htm
When I edit locations within viewer 2.1, all my edits save properly but clicking the link to the attachment opens another window but the file doesn't open and I get a dreaded HTTP 500 Internal Server Error. How do I go about correcting this?
Also, is there a limit to the size of file you can attach? Having trouble with anything over 5 MB.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.