why do not work in FF 3.x?

Apr 13, 2009 at 6:06 PM
When I put this on Global.asax
public override void Init()
{
    base.Init();
    this.BeginRequest += new EventHandler(BeginRequest);
}
void BeginRequest(object sender, EventArgs e)
{
    com.flajaxian.FileUploader.RegisterAspCookies();
}

it returns this messagem error????

Cannot assign to 'BeginRequest' because it is a 'method group'

Coordinator
Apr 13, 2009 at 9:51 PM
Naming your method with exactly the same name as the event is not very good idea I would say :)
Apr 17, 2009 at 2:01 PM
uhm....

I did this

    public override void Init()
    {
        base.Init();
        this.BeginRequest += new EventHandler(BeginRequest_Upload);
    }

    void BeginRequest_Upload(object sender, EventArgs e)
    {
        com.flajaxian.FileUploader.RegisterAspCookies();
    }   


but still not working in firefox ;[
Apr 17, 2009 at 2:18 PM
Edited Apr 17, 2009 at 3:09 PM
OMG! now it's working!!!

o_O"

close this topic please !!!


Thank for the attention flajaxian
Apr 30, 2009 at 3:55 AM
This is not working for me in anything but IE at the moment.

This is my global.asax file:

<%@ Application Language="C#" %>

<script runat="server">

    public override void Init()
    {
        base.Init();
        this.BeginRequest += new EventHandler(BeginRequest_Upload);
    }

    void BeginRequest_Upload(object sender, EventArgs e)
    {
        com.flajaxian.FileUploader.RegisterAspCookies();
    }
    
    void Application_Start(object sender, EventArgs e)
    {

    }
    
    void Application_End(object sender, EventArgs e)
    {
        //  Code that runs on application shutdown

    } // supercalifragilisticexpialidocious
        
    void Application_Error(object sender, EventArgs e)
    {
        // Code that runs when an unhandled error occurs
        Exception ex = Server.GetLastError();
        string body = "<strong>Message: </strong>" + ex.InnerException.Message + "<br /><br /><strong>Data: </strong>" + ex.InnerException.Data +  "<br /><br /><strong>Stack Trace: </strong>" + ex.InnerException.StackTrace;
        Email.SimpleSend("Error on News", body, "cwis37@colostate.edu", "web_dev@mail.colostate.edu");
        HttpContext.Current.Response.Redirect("500.aspx");
    }

    void Session_Start(object sender, EventArgs e)
    {
        // Code that runs when a new session is started

    }

    void Session_End(object sender, EventArgs e)
    {
        // Code that runs when a session ends.
        // Note: The Session_End event is raised only when the sessionstate mode
        // is set to InProc in the Web.config file. If session mode is set to StateServer
        // or SQLServer, the event is not raised.

    }

    
        
</script>

Any help would be appreciated.
Apr 30, 2009 at 4:35 AM
Here is my ServerTracer from IE:

28)[2009-4-29 21:33:33.485]
onFileQueueEnds
27)[2009-4-29 21:33:33.478]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetChangedFileStates([{id:1,state:3,httpStatus:200,isLast:true}])
26)[2009-4-29 21:33:33.461]
-------------------------
onUploadComplete
Object type is: [com.flajaxian::FileReferenceHolder]
Object content is:
{
    id: 1,
    name: "01391_bigcitylife_1680x1050.jpg",
    hashKey: "01391_bigcitylife_1680x1050.jpg:520195:.jpg:Sat Nov 1 13:44:37 GMT-0600 2008:Sat Mar 1 13:36:10 GMT-0700 2008:null:",
    httpStatus: 200,
    state: 3,
    file: {
        modificationDate: Date.parse("Sat Mar 1 13:36:10 GMT-0700 2008"),
        creationDate: Date.parse("Sat Nov 1 13:44:37 GMT-0600 2008"),
        name: "01391_bigcitylife_1680x1050.jpg",
        size: 520195,
        creator: null,
        type: ".jpg"
    },
    bytes: 520195,
    parent: {
        count: 1
    }
}
-------------------------

25)[2009-4-29 21:33:33.453]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:520195,currTotal:520195,currLoaded:520195})
24)[2009-4-29 21:33:33.398]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:491520,currTotal:520195,currLoaded:491520})
23)[2009-4-29 21:33:33.349]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:458752,currTotal:520195,currLoaded:458752})
22)[2009-4-29 21:33:33.285]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:425984,currTotal:520195,currLoaded:425984})
21)[2009-4-29 21:33:33.205]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:393216,currTotal:520195,currLoaded:393216})
20)[2009-4-29 21:33:33.120]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:360448,currTotal:520195,currLoaded:360448})
19)[2009-4-29 21:33:33.85]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:327680,currTotal:520195,currLoaded:327680})
18)[2009-4-29 21:33:32.613]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:294912,currTotal:520195,currLoaded:294912})
17)[2009-4-29 21:33:31.909]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:262144,currTotal:520195,currLoaded:262144})
16)[2009-4-29 21:33:31.869]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:229376,currTotal:520195,currLoaded:229376})
15)[2009-4-29 21:33:31.821]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:196608,currTotal:520195,currLoaded:196608})
14)[2009-4-29 21:33:31.789]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:163840,currTotal:520195,currLoaded:163840})
13)[2009-4-29 21:33:31.726]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:131072,currTotal:520195,currLoaded:131072})
12)[2009-4-29 21:33:31.701]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:98304,currTotal:520195,currLoaded:98304})
11)[2009-4-29 21:33:31.621]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:65536,currTotal:520195,currLoaded:65536})
10)[2009-4-29 21:33:31.581]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:32768,currTotal:520195,currLoaded:32768})
9)[2009-4-29 21:33:31.566]
-------------------------
getFileUploadRequest:http://www.news.colostate.edu/admin-Broadcast.aspx?__ID=ctl00_main_TabContainer1_TabPanel5_FileUploader1&__AspCookie.Session=3mo0omr23ctqah553q14yo45&
Object type is: [flash.net::URLVariables]
Object content is:
{
}
-------------------------

8)[2009-4-29 21:33:31.550]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetChangedFileStates([{id:1,state:2,httpStatus:200,isLast:false}])
7)[2009-4-29 21:33:31.536]
initiateUpload
6)[2009-4-29 21:33:28.877]
onFilesSelected | state:1
5)[2009-4-29 21:33:28.870]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetFileList([{id:1,name:"01391_bigcitylife_1680x1050.jpg",bytes:520195,state:1}])
4)[2009-4-29 21:33:28.845]
-------------------------
onSelectFiles
Object type is: [Array]
Object content is:
[
    /*0*/{
        modificationDate: Date.parse("Sat Mar 1 13:36:10 GMT-0700 2008"),
        creationDate: Date.parse("Sat Nov 1 13:44:37 GMT-0600 2008"),
        name: "01391_bigcitylife_1680x1050.jpg",
        size: 520195,
        creator: null,
        type: ".jpg"
    }
]
-------------------------

3)[2009-4-29 21:33:16.990]
onBrowse
2)[2009-4-29 21:33:13.222]
-------------------------
doInitialize
Object type is: [Object]
Object content is:
{
    id: "ctl00_main_TabContainer1_TabPanel5_FileUploader1",
    uploadRequiresJsConfirmation: "false",
    initiallyInvisible: "false",
    isIE: "true",
    t: "633766293144218450",
    targetUrl: "http://www.news.colostate.edu/admin-Broadcast.aspx?__ID=ctl00_main_TabContainer1_TabPanel5_FileUploader1_(!AMP!)___AspCookie.Session=3mo0omr23ctqah553q14yo45_(!AMP!)_",
    maxFileSize: "1072668082176",
    maxFileQueueSize: "1072668082176",
    debug: "true",
    clearListAtEnd: "true",
    enabled: "true",
    maxFileNumberLimit: "2147483647",
    d: "BZuFentGQvTfYEuUTH9RAvMvh9NjwqnER_q6PyWUo25iJZxG9BM_J2snFEJZPalKTQw32K2jzNA1I5VUSzMj22YScSaYw2pP9m48P_NXluA1"
}
-------------------------

1)[2009-4-29 21:33:13.182]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_MarkInitialized()



...and here is my ServerTracer from Firefox:

28)[2009-4-29 21:35:30.78]
onFileQueueEnds
27)[2009-4-29 21:35:30.70]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetChangedFileStates([{id:1,state:3,httpStatus:200,isLast:true}])
26)[2009-4-29 21:35:30.54]
-------------------------
onUploadComplete
Object type is: [com.flajaxian::FileReferenceHolder]
Object content is:
{
    hashKey: "01391_bigcitylife_1680x1050.jpg:520195:.jpg:Sat Nov 1 13:44:37 GMT-0600 2008:Sat Mar 1 13:36:10 GMT-0700 2008:null:",
    parent: {
        count: 1
    },
    name: "01391_bigcitylife_1680x1050.jpg",
    state: 3,
    id: 1,
    bytes: 520195,
    file: {
        type: ".jpg",
        name: "01391_bigcitylife_1680x1050.jpg",
        creator: null,
        creationDate: Date.parse("Sat Nov 1 13:44:37 GMT-0600 2008"),
        size: 520195,
        modificationDate: Date.parse("Sat Mar 1 13:36:10 GMT-0700 2008")
    },
    httpStatus: 200
}
-------------------------

25)[2009-4-29 21:35:30.38]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:520195,currTotal:520195,currLoaded:520195})
24)[2009-4-29 21:35:29.942]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:491520,currTotal:520195,currLoaded:491520})
23)[2009-4-29 21:35:29.806]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:458752,currTotal:520195,currLoaded:458752})
22)[2009-4-29 21:35:29.782]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:425984,currTotal:520195,currLoaded:425984})
21)[2009-4-29 21:35:29.646]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:393216,currTotal:520195,currLoaded:393216})
20)[2009-4-29 21:35:29.614]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:360448,currTotal:520195,currLoaded:360448})
19)[2009-4-29 21:35:29.541]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:327680,currTotal:520195,currLoaded:327680})
18)[2009-4-29 21:35:29.461]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:294912,currTotal:520195,currLoaded:294912})
17)[2009-4-29 21:35:29.390]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:262144,currTotal:520195,currLoaded:262144})
16)[2009-4-29 21:35:29.341]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:229376,currTotal:520195,currLoaded:229376})
15)[2009-4-29 21:35:29.286]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:196608,currTotal:520195,currLoaded:196608})
14)[2009-4-29 21:35:29.238]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:163840,currTotal:520195,currLoaded:163840})
13)[2009-4-29 21:35:29.213]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:131072,currTotal:520195,currLoaded:131072})
12)[2009-4-29 21:35:29.198]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:98304,currTotal:520195,currLoaded:98304})
11)[2009-4-29 21:35:29.118]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:65536,currTotal:520195,currLoaded:65536})
10)[2009-4-29 21:35:29.87]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetUploadProgress({total:520195,loaded:32768,currTotal:520195,currLoaded:32768})
9)[2009-4-29 21:35:29.62]
-------------------------
getFileUploadRequest:http://www.news.colostate.edu/admin-Broadcast.aspx?__ID=ctl00_main_TabContainer1_TabPanel5_FileUploader1&__AspCookie.Session=qgtklu2fi3b0zg55hdas0h55&
Object type is: [flash.net::URLVariables]
Object content is:
{
}
-------------------------

8)[2009-4-29 21:35:29.54]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetChangedFileStates([{id:1,state:2,httpStatus:200,isLast:false}])
7)[2009-4-29 21:35:29.38]
initiateUpload
6)[2009-4-29 21:35:27.542]
onFilesSelected | state:1
5)[2009-4-29 21:35:27.534]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_SetFileList([{id:1,name:"01391_bigcitylife_1680x1050.jpg",bytes:520195,state:1}])
4)[2009-4-29 21:35:27.502]
-------------------------
onSelectFiles
Object type is: [Array]
Object content is:
[
    /*0*/{
        type: ".jpg",
        name: "01391_bigcitylife_1680x1050.jpg",
        creator: null,
        creationDate: Date.parse("Sat Nov 1 13:44:37 GMT-0600 2008"),
        size: 520195,
        modificationDate: Date.parse("Sat Mar 1 13:36:10 GMT-0700 2008")
    }
]
-------------------------

3)[2009-4-29 21:35:23.766]
onBrowse
2)[2009-4-29 21:35:22.190]
-------------------------
doInitialize
Object type is: [Object]
Object content is:
{
    debug: "true",
    maxFileQueueSize: "1072668082176",
    targetUrl: "http://www.news.colostate.edu/admin-Broadcast.aspx?__ID=ctl00_main_TabContainer1_TabPanel5_FileUploader1_(!AMP!)___AspCookie.Session=qgtklu2fi3b0zg55hdas0h55_(!AMP!)_",
    id: "ctl00_main_TabContainer1_TabPanel5_FileUploader1",
    d: "BZuFentGQvTfYEuUTH9RAvMvh9NjwqnER_q6PyWUo25iJZxG9BM_J2snFEJZPalKTQw32K2jzNA1I5VUSzMj22YScSaYw2pP9m48P_NXluA1",
    enabled: "true",
    clearListAtEnd: "true",
    isIE: "false",
    uploadRequiresJsConfirmation: "false",
    t: "633766293144218450",
    maxFileSize: "1072668082176",
    initiallyInvisible: "false",
    maxFileNumberLimit: "2147483647"
}
-------------------------

1)[2009-4-29 21:35:22.79]
CALL to JavaScript:ctl00_main_TabContainer1_TabPanel5_FileUploader1_MarkInitialized()

Coordinator
Apr 30, 2009 at 6:23 AM
Your Server Trace looks fine. Try looking the request with fiddler, may be there is a specific message on the page? Something not related to the uploader?
Apr 30, 2009 at 6:53 AM
It is somehow working now, of course. After of 5 hours of messing with it, I let it sit for an hour and now it works ?!?!?!?!