Error on production server and IE

Oct 4, 2009 at 12:23 PM

I found your work very good, but I have a problem which only appears on my production server, when using IE.

(It works on my dev computer, with IE and Firefox, and on my production server,with Firefox)

I always got an error, and this is the tooltip error in your component :

--

System.Net.WebException: RemoteServer returned an error : NotFound. ---> System.Net.WebException:  RemoteServer returned an error: NotFound

System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(lAsyncResult asyncResult)

System.Net.Browser.BrowserHttpWebRequest.<>c_DisplayClass5.<EndGetResponse>b_4(Object sendState) 

System.Net.Browser.AsyncHelper.<>c_DisplayClass2.<BeginOnUI>b_0(Ob)ect sendState)

--- end of internal stack frace ---

System.Net.Browser.AsyncHelperBeginOnUI(SendOrPostCallback beginMethod, Object state)

System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

Vci.Silverlight.FileUploader.FIttpFileUploader.ReadHttpResponseCallback(IAsyncResult asynchronousResult)

--

The only specific thing i can think is that the silverlight component in located in an authentication-needed page.

But then, it's working in Firefox, so..

Oct 4, 2009 at 1:01 PM

I'm nearly it's a problem with my webserver, since I'm seeing the same kind of weirdness (things working perfectly in Firefox, not in IE) with a totally different component ( Elmah error logging)

 

but what ?

 

Jan 12, 2010 at 12:25 AM

I have the same problem in the production server... "RemoteServer returned an error: NotFound"...

 How did you resolve the problem?

Thanks

 

Coordinator
Jan 12, 2010 at 2:00 AM

If I had to guess, the error is because the uploader control cannot locate your http handler that is to receive the files.  There are two things that affect how it locates the http handler:

1. The http handler must be properly configured. See http://silverlightuploader.codeplex.com/wikipage?title=Integrating%20with%20an%20Existing%20Website&referringTitle=Home for more details, the section titled "Configure the HTTP Handler".

2. The HandlerPath of the asp.net UploaderControl must point to the path configured above. See this thread for a discussion of what may be a related problem: http://silverlightuploader.codeplex.com/Thread/View.aspx?ThreadId=57864.

 

If that information doesn't help, I would need some more details about your setup.  Have you tried running it in the debugger with silverlight debugging enabled and getting more information about the error that way?

Jan 12, 2010 at 9:46 AM

Hi,

In my localhost I don't have problem. All work fine!

I tryed 2 diferent production server (IIS6 and IIS7) and I 'got' the same error...

Yes, the items 1 and 2 (above) are ok.

The problem occurs when I upload a large numbers of files (500 files at 500 Kb per file)...when proccessing the file number 200 (more less) some files fails to upload

and after that I can't load the silverlight application (hang). The main problem is that after hang no one can load the silverlight app I must wait some time out (near half hour) and after that I can load the silverlight application again. But I tested the web server and all is ok.

 

 

Coordinator
Jan 12, 2010 at 6:31 PM

You say that after the silverlight application hangs, nobody can load the silverlight application for a while.  This is a very strong indicator that you have a server-side problem, not a problem with the silverlight control (it stops serving up the xap file for people... which indicates that your server has become unresponsive to requests).  It sounds like whatever you are doing in your server-side code that processes files is causing the server to hang...

I could be wrong, but that sounds like the most probable cause from what you describe.  Unfortunately I have not run into anything similar, so I'm afraid that I'm not much help.  I'd suggest reviewing your file processing code... maybe holding too much in memory?  Hard to say.

Jan 12, 2010 at 9:40 PM

Yes, I now.

In the server side after send a file I query a database and create a thumbnail of the image...

locally works without problemas...

Thanks.

See ya.

Aug 12, 2011 at 2:48 AM
Edited Oct 4, 2011 at 5:33 AM

Hi,

I have this control embedded in silverlight application where I am constructing it in the silverlight run time

 

 

 public void _BuildUploader(string _ToFolderName, int _ToFolderID)
        {
            if (_fileUploader == null)
            {
                string _handlerPath = "/BNA_V2/UploaderControlHandler.ashx";

                _fileUploader = new DDS_Components.DDS_FileUploader(this);

                Dictionary<string, string> _parameter = new Dictionary<string,string>();

                _parameter.Add("UploadHandlerPath", _handlerPath);
                _parameter.Add("UploadedFileProcessorType", "BNA.FileUploader.FileProcessor, BNA.FileUploader");
                _parameter.Add("MultiSelect", "True");

                _fileUploader.InitializeFromInitParams(_parameter);
            }
}

 

I get this to work in the developers but not on production with the handler ReadResponceCallBack - NotFound..

I tested your native version on the production (in /test/ and /) and it worked. I attached the debug to the production and it still doesn't find the handler.

If there's anything else I could check?

 

EDIT : ----- Fix below

http://silverlightuploader.codeplex.com/discussions/231839