Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 12, 2011 04:29 PM by fieldruan
0 Points
5 Posts
Apr 16, 2010 07:42 AM|LINK
Hi, I'm using vs2010, Framework4 and the related AjaxControlToolkit v4.0.30210
Other controls works great such as the html editor, but the AsyncFileUpload return always "The file attached is invalid."
How can I fix this?
Apr 19, 2010 04:10 PM|LINK
I found workaround: put <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> in the web.config
Member
2 Points
1 Post
Apr 20, 2010 08:39 PM|LINK
I tried <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
It worked, but it isn't compatible whit .netFramework 4.0. So use <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/> to be compatible with 4.0
Thanks for help me
Apr 24, 2010 11:00 PM|LINK
Self help's a wonderful thing :o) ... Thanks for the pointer.
I found that setting the clientIdMode="AutoID" on the Async Upload Control itself also resolved it.
582 Points
186 Posts
Jun 09, 2010 01:46 PM|LINK
Yes, only put ClientIDMode="AutoID" can be fix!!
118 Points
24 Posts
Dec 13, 2010 02:01 PM|LINK
And here is an older blog post with an example AsyncFileUpload tag using ClientIDMode="AutoID", in case you wanted an example in context.
It's surprising what such a simple fix can do!
AsyncFileUpload ClientIDMode
168 Points
37 Posts
Mar 23, 2011 03:42 PM|LINK
Thanks for the tip. It works fine now.
6 Points
3 Posts
Apr 19, 2011 09:07 PM|LINK
I add this tag <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/> to my WEB.CONFIG ,and it's work with Me.
May 12, 2011 04:29 PM|LINK
bastianonm
0 Points
5 Posts
AsyncFileUpload return always: "The file attached is invalid."
Apr 16, 2010 07:42 AM|LINK
Hi, I'm using vs2010, Framework4 and the related AjaxControlToolkit v4.0.30210
Other controls works great such as the html editor, but the AsyncFileUpload return always "The file attached is invalid."
How can I fix this?
bastianonm
0 Points
5 Posts
Re: AsyncFileUpload return always: "The file attached is invalid."
Apr 19, 2010 04:10 PM|LINK
I found workaround: put <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> in the web.config
Fabiano Vile...
Member
2 Points
1 Post
Re: AsyncFileUpload return always: "The file attached is invalid."
Apr 20, 2010 08:39 PM|LINK
I tried <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
It worked, but it isn't compatible whit .netFramework 4.0.
So use <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/> to be compatible with 4.0
Thanks for help me
edwardjcp
Member
2 Points
1 Post
Re: AsyncFileUpload return always: "The file attached is invalid."
Apr 24, 2010 11:00 PM|LINK
Self help's a wonderful thing :o) ... Thanks for the pointer.
I found that setting the clientIdMode="AutoID" on the Async Upload Control itself also resolved it.
SilverNight
Member
582 Points
186 Posts
Re: AsyncFileUpload return always: "The file attached is invalid."
Jun 09, 2010 01:46 PM|LINK
Yes, only put ClientIDMode="AutoID" can be fix!!
I am a Chinese and live in HongKong
Sorry for my poor English. m(._.")m
Dekker500
Member
118 Points
24 Posts
Re: AsyncFileUpload return always: "The file attached is invalid."
Dec 13, 2010 02:01 PM|LINK
And here is an older blog post with an example AsyncFileUpload tag using ClientIDMode="AutoID", in case you wanted an example in context.
It's surprising what such a simple fix can do!
AsyncFileUpload ClientIDMode
[Don't forget to click on Mark as answer on the post that helped you ]
calin.berind...
Member
168 Points
37 Posts
Re: AsyncFileUpload return always: "The file attached is invalid."
Mar 23, 2011 03:42 PM|LINK
Thanks for the tip. It works fine now.
Habita73
Member
6 Points
3 Posts
Re: AsyncFileUpload return always: "The file attached is invalid."
Apr 19, 2011 09:07 PM|LINK
I add this tag <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/> to my WEB.CONFIG ,and it's work with Me.
</div>fieldruan
Member
2 Points
1 Post
Re: AsyncFileUpload return always: "The file attached is invalid."
May 12, 2011 04:29 PM|LINK