Security Exception when Uploading From Silverlight to PHP -


i using official microsoft example , this example basis code upload file silverlight php script.

i calling **httpwebrequest.begingetrequeststream()**, writing file on file stream, , calling **httpwebrequest.begingetresponse()** response. when call httpwebresponse.endgetresponse() following exception every single time:

{system.security.securityexception ---> system.security.securityexception: security error.    @ system.net.browser.browserhttpwebrequest.internalendgetresponse(iasyncresult asyncresult)    @ system.net.browser.browserhttpwebrequest.<>c__displayclass5.<endgetresponse>b__4(object sendstate)    @ system.net.browser.asynchelper.<>c__displayclass2.<beginonui>b__0(object sendstate)    --- end of inner exception stack trace ---    @ system.net.browser.asynchelper.beginonui(sendorpostcallback beginmethod, object state)    @ system.net.browser.browserhttpwebrequest.endgetresponse(iasyncresult asyncresult)    @ fileupload.fileuploadprocess.getreponsecallback(iasyncresult asyncresult)} 

i have both clientaccesspolicy.xml , crossdomain.xml files in base directory allow access. ran fiddler , have seen download clientaccesspolicy.xml file hitting correctly.

the php file running on apache2 , fread on php://input read data examples show. not receiving data leads me believe securityexception forcing abort write.

has seen issue before , can point me in right direction of solution?

have checked make sure webserver/php application has write access directory plan on storing uploaded file to?

this causing abort prematurely.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -