Select to view content in your preferred language

attachments

3331
6
03-04-2011 05:26 AM
philippschnetzer
Frequent Contributor
I have the editor widget working but am experiencing some issues with attachments.  I am able to upload an attachment but once I wish to show that attachment and it attempts to open in a new browser window I get the following error:
Server Error - The remote server returned an error: (404) Not Found.
Code: 500

I used firebug to try to figure out what is going on but cannot seem to get more info than the error above...

I looked at the attachments table created in the SDE and the uploads get entered into the table fine...the problem is in their retrieval.  As a side note...where are the actual uploaded documents stored??

Thanks for the help!
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Philipp,

   I don't know an explanation to your error but the answer to where the attachments are store is in a BLOB field as a binary object.
0 Kudos
philippschnetzer
Frequent Contributor
thanks, I see that now - I just didn't know you could store any type of file in such a field....

I reconfigured my arcgisserver virtual directories to make sure they are all in inetpub/wwwroot and available for my website...

Now when I try to view an attachment through my flex site I get the following error:
Server Error - Unable to connect to the remote server
Code: 500

The server is set-up so that it cannot 'see' itself (I am not the IT guy so I cannot explain this any further...) meaning, I cannot view my flex site if I use a web browser directly on the server (unless I use the IP address and change all the references to the domain name in the code to the IP address instead).  Could this be affecting the ability to view an attachment??

Do I need to add the SDE database to some type of virtual directory? I have basically kept most default installation parameters - meaning the SQL databases are stored in "c:/program files/microsoft sql express/....... "

continued thanks...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   I know that I added the ArcGISSOC and ArcGISWebServices as users to my SQL Server.
0 Kudos
philippschnetzer
Frequent Contributor
Robert,

I did that too....also added the ArcGISSOM too just in case...

I will continue to try to resolve this as this is a vital component for my application.

Thanks for your assistance.
0 Kudos
BarrettStanke
Deactivated User
http://forums.arcgis.com/threads/15154-Edit-Widget-amp-Attachments?p=48846#post48846

Not sure if this is the same problem, sounds somewhat similar though.  Anyway figured I'd throw it out there.
0 Kudos
AHay
by
Deactivated User
We have been having some problems with the attachments and the edit widget.

We had this all working fine and then it stopped 😞
we can view attachments through the editor widget we just cannot submit them :-((

we choose the file to attach, its name comes across to attachment widget but then we cannot click the "submit" button, the "cancel" button works but cannot submit new one.

Image Attachment1.png = cann access attachment
image atatchment2.png = can get name across to editor widget
image attachment3.png "submit" button changes colour on hover but no action on click

i can add attachments with desktop, and i can view and add them through rest interface just not through the editor widget.

Anyone have any ideas?
** a possible cause may be that we have changed default arcgisserver directory (i.e cache input output etc directories folder from c:\ to d:\ -- could this cause problem


We usually use chrome as browser i used IE and it threw and error YAY! any one know what this error means (smiley face was not in orig)
JSONParseError: Unexpected < encountered
at com.esri.serialization.json::JSONTokenizer/parseError()
at com.esri.serialization.json::JSONTokenizer/getNextToken()
at com.esri.serialization.json::JSONDecoder/nextToken()
at com.esri.serialization.json::JSONDecoder()
at com.esri.serialization.json::JSON$/decode()
at Function/com.esri.ags.tasks:FeatureServiceTask/addAttachment/com.esri.ags.tasks:onComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.esri.ags.utils::MultipartURLLoader/onComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
0 Kudos