Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader requires .Net 3.5 System.Web.Extensions? Options
Daniel
Posted: Tuesday, February 9, 2010 10:44:11 AM
Rank: Newbie
Groups: Member

Joined: 2/9/2010
Posts: 4
Hi, I was under the impression that the AJAXUpload control would work with .Net 2.0?

Our application is running .Net 2.0 and when I add the AJAXUploader into the project it tries to add a binding reference from version 0.0.0.0 to 3.5.0.0 to 3.5.0.0 of System.Web.Extensions.

Do I have to upgrade the project to .Net3.5, or is there a version of the uploader built against version 1 of the System.Web.Extensions dll?

We are currently trialling this product and will be purchasing it if you can help out.
eo_support
Posted: Tuesday, February 9, 2010 11:01:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

No. The uploader does not require .NET 3.5. It works on .NET 1.1, .NET 2.0 and .NET 3.5. Any version is fine. The uploader is aslo independent from ASP.NET AJAX. So it doesn't need any version of System.Web.Extensions.

Thus I am not sure why/who brings 3.5 into your project. You may want to try manually delete/change it back to 2.0. If someone indeed needs it, the compiler should be able to tell you who is not happy after you changed it.

Thanks!
Daniel
Posted: Wednesday, February 10, 2010 5:54:43 AM
Rank: Newbie
Groups: Member

Joined: 2/9/2010
Posts: 4
If I add EO.Web as a reference to my project, it then wants to use Version 3.5. If I remove EO.Web then no warning is shown. The version of my System.Web.Extensions file in my Web Application project is "1.0.61025.0".

The problem is definitely caused by EO.Web.

No warning seems to be shown when the project is a WebSite project and NOT a web application project.
eo_support
Posted: Wednesday, February 10, 2010 9:42:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That is a big strange. We tried the following cases on VS2005 and VS2008 and they all work fine:

Case 1: New project in VS2005

1. Start a new Web Application project from File -> New -> Project -> Visual C# -> Web -> ASP.NET Web Application. The generated empty project does not contain System.Web.Extensions;
2. Drag any of our controls from toolbox to the form. No new reference is added (except for EO.Web.dll);

Case 2: New project in VS 2008

1. Start a new Web Application project from File -> New -> Project -> Visual C# -> Web -> ASP.NET Web Application. The generated project does contain System.Web.Extensions. However this is added by Visual Studio;
2. Delete the reference to System.Web.Extensions from project explorer;
3. Drag any of our controls from toolbox to webform. No new reference is added (except for EO.Web.dll);

Case 3: Loading an existing VS2005 project that uses System.Web.Extensions 1.0 into VS2008

1. Create a new VS2005 project from File -> New -> Project -> Visual C# -> Web -> ASP.NET AJAX Enabled Web Application;
2. The new project uses System.Web.Extensions 1.0.61025.0 because "ASP.NET AJAX Enabled Web Application" was used, not "ASP.NET Web Application";
3. Load the project with VS 2008, it prompt to convert project file. Once it finishes converting project file, it askes whether you want to switch from .NET 2.0 to .NET 3.5. Note EO.Web is not even added to the project at this point;
4. Choose no to stay on .NET 2.0;
5. Drag any of our control to your Web Form. No new reference is added except for EO.Web.dll;

In all cases adding our control to the project does not affect anything with your .NET version or System.Web.Extensions version. You can try these steps and see if it gives you the same result.

In any case our product does not require .NET 3.5. It does not use System.Web.Extensions.dll at all. So even if it prompts, you can just say no and stay on .NET 2.0.

Thanks!
Daniel
Posted: Wednesday, February 10, 2010 10:03:56 AM
Rank: Newbie
Groups: Member

Joined: 2/9/2010
Posts: 4
You're right, I can't get this problem in a new project. It must be something in my current solution... even though everything is .Net2.0 on Visual Studios 2005 on my solution and the warning only appears when adding a reference to your control. Bizarre.

It does, however, work perfectly even with the warning message there. I just despise warning messages in my projects!
eo_support
Posted: Wednesday, February 10, 2010 10:08:31 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
OK. I guess we can just ignore the message for now. Please feel free to let us know if you run into any other problems.

Thanks!
Daniel
Posted: Wednesday, February 10, 2010 10:17:44 AM
Rank: Newbie
Groups: Member

Joined: 2/9/2010
Posts: 4
Actually, while I've got your attention, is there any way to stop the uploaded list appearing after an upload?

My control is set to AutoPostback, however there's a split second after successfully uploading where the checkbox, delete, etc list appears under the progress bar showing what was uploaded.
eo_support
Posted: Wednesday, February 10, 2010 10:23:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. You can do that by customizing the uploader's LayoutTemplate. See here for more details:

http://www.essentialobjects.com/forum/postst4218_AJAXUploader.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.