.Net Framework 3.5 EntityDataSource and new dynamic data controls

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/31/2008 3:16:19 PM
Gravatar
Total Posts 22
Kenneth Haugland

.Net Framework 3.5 EntityDataSource and new dynamic data controls

.Net Framework 3.5 EntityDataSource and new dynamic data controls

I would like to use the new EntityDataSource  and the new dynamic data controls which seems very powerfull. Unfortunately I need to use 3.5 (sp1) to be able to use these controls. Any suggestions how to workaround this? I get a version clash between the version used in the the web project config and the main web config.

(0): error CS1705: Assembly 'System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' uses 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Should I change the settings in the mojoportal webconfig to reference the new dlls, or is there some other ways to do this without modifying the main web config?

Regards

Kenneth

9/1/2008 5:42:13 AM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Hi Kenneth,

To use those things I "think" you will need to:

  1. comment out the version I have in Web.config
  2. In VS 2008, right click the mojoPortal.Web project and choose properties
  3. on the application tab, change the Target Framework to 3.5
  4. branch down the references node in mojoPortal.Web using VS solution explorer
  5. delete the reference to System.Web.Extensions (it points to _libs/System.Web.Extensions.dll which is the 2.0 version)
  6. right click references node and choose add reference
  7. on the .NET tab find System.Web.Extensions (3.5) and set a reference
  8. look in Web/bin and delete the old System.Web./Extensions.dll from there
  9. rebuild

I'm hesistant to make this change myself in mojoportal. I want to keep compatibility with Mono and also I need to investigate whether 3.5 is already widely available at hosting providers. I don't want to break things for people who are limited to 2.0 hosting. If my concern about hosting can be put to rest I think it may be possible to workaround the issue for Mono because we use a custom Web.config for Mono and the MonoDevelop project can still reference the 2.0 version. This workaround would at least enable Windows developers to use 3.5 in their own custom features. I won't be using 3.5 in the core until Mono is compatible.

Hope it helps,

Joe

9/1/2008 6:14:42 AM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

I forgot to mention, you may also need to add the Web.config reference with the correct version. Maybe copy the ocmmented out one and change the version.

If you try this and it works please let me know and I'll create a little documentation page about how to do it in the developer docs section.

Best,

Joe

9/1/2008 8:31:14 AM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Thanks for the quick answer.

I will try this when I finished at work and post an update.

I understand you must prioritize mono and 2.0 until it is more wildly supported, but there is a lof of nice stuff in 3.5 sp1 which I would like to use.

Regards

Kenneth

9/1/2008 4:33:46 PM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

I tried your suggestion and it almost worked.

I got it up and running and it seems to work almost. The first problem that came up is that when i made a new page the main settings pages content dissapeared at once. ie it is drawn and then hidden it seems (like a flash). I am talking about the place where one can choose the name, icon etc. There might be something else that did this, but it is to late for me to look at it now.

Kenneth

 

9/4/2008 4:23:42 PM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

I still get the problem that the PageSettings is hidden after it is loaded.  When i debug the page in FireBug the contents is show until the line marked below is executed.

Any ideas?

Otherwise I will just show it again with javascript.

Regards

 

Kenneth

 

<script type="text/javascript">
755//<![CDATA[
756
757theForm.oldSubmit = theForm.submit;
758theForm.submit = WebForm_SaveScrollPositionSubmit;
759
760theForm.oldOnSubmit = theForm.onsubmit;
761theForm.onsubmit = WebForm_SaveScrollPositionOnSubmit;
762Sys.Application.initialize();   ////////////////////////////////////////////Here it hides the settings panel. Difficult to trace it
763//]]>
764</script>
765</form>
766</body>
767</html>

9/5/2008 7:08:25 AM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

It must be some kind of interaction with ExtJs because the ExtJs tabs are inside an update panel. Since it works with the previous version  I can only assume its some new bug in the new version of System.Web.Extensions.dll

You might inquire about this in the forums on the asp.net site, I've seen posts in the past about issues using ExtJs with MS Ajax.

I've added a setting so you can disable the ExtJsTabs which may help in narrowing it down. If it doesn't disappear with the tabs disabled then its definitely some interaction with ExtJs

<add key="DisableExtJsTabs" value="true" />

The new setting will be in svn trunk by tonight, just add the above to your Web.config or user.config after you do svn update.

Best,

Joe

9/5/2008 7:14:32 AM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

 

Great, I will try this when I am finished with work.

Best,

Kenneth

9/5/2008 7:16:30 AM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

I would also verify whether the problem is skin related, if it happens no matter which skin is used or if it only happens using particular skins.

Best,

Joe

9/5/2008 11:33:05 AM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Tried out the new setting, but it did not make any difference.

The strange thing is that some of the tabs are hidden there and some not.

The Sitesettings->General tab is hidden but the Site Settings -> Security is not hidden.
 

Looks like the panel surrounding the settings does not leave enough space because i was able to see the

top of the settings (right above the save button).

I also tried mojoportal locally with the new google chrome and it did not have the problem I had with firefox.

So I think this solves the problem.

Thanks for all the help.

Regards

Kenneth

 

 

 

 

 

9/6/2008 8:12:49 AM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Hi Kenneth,

Tried out the new setting, but it did not make any difference.

How did you do that, the setting wasn't implemented in svn trunk until late last night after you posted. Unless you got the code from my sandbox..

So I think this solves the problem.

Sorry, I'm confused what solves what problem? You mean you solved it? Its no longer hidden? Or you just plan to use Chrome?

Best,

Joe

9/8/2008 3:27:48 PM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls


Hi Joe!

Seems like I was a bit to quick trying the new setting. In retrospect it is not very strange that there was noe difference .)

I have tried the setting now and it worked great. The Page settings are all shown now.

I have tried to make a uc and deployed it in mojoportal. I used the calender extender and it worked fine.

I made a new directory under bin with the 3.5sp1 and changed the references to the ajaxtoolkit in the web project.

Any chance there could be made a 3.5sp1 version as with the mono version?

Regards

Kenneth

 

 


 

9/9/2008 7:49:01 AM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Hi Kenneth,

I can't think of a way to make it easy like with Mono. With Mono we have separate MonoDevelop project files, but in VS we will be using the same project files and references are included in the .csproj file. If we make separate projects and solutions for framework 3.5 it will be a maintenance problem to make sure new files are added to each project.

If you want to zip the 3.5 version dll files and send them to me I'll add them under _libs\net35

but the people who want to use it will have to change the references themselves. If you can outline the basic steps that worked I can add a developer document with those steps.

I'm still a little confused. Is it working for you now with the Tabs enabled or only with them disabled?

Best,

Joe

9/9/2008 4:54:09 PM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Hi Joe!

When I used the new setting it worked much better. All the content was shown then. ie <add key="DisableExtJsTabs" value="true" />

The procedure to change the ajaxextensions were pretty much the same as you suggested. 

I can redo the procedure and write down what I did, but I dont have time for that before the weekend.

Thanks for the quick answers.

Regards

Kenneth

 

 

9/10/2008 7:27:06 AM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Ok, so if I understand you correctly, you are saying that though you are able to use the 3.5 framework version of ajaxtoolkit, it doesn't work with ExtJs tabs (the content is hidden if ExtJs tabs are enabled). This is really the main thing I was wanting to find out. More and more I've been having various problems with ExtJs tabs, problems with display in Firefox 3, problems when using an FCKeditor in more than 1 tab. Since the new version of ExtJs has changed the license to GPL, I can no longer upgrade to new versions of ExtJs.

So I'm thinking of switching to YUI tabs everywhere that we are currently using ExtJs tabs. YUI tabs has worked for me in a few places where I've tried it where ExtJs didn't work well. Once I have switched it, you can tell me if it works with the .NET 3.5 version of ajaxtoolkit.

I have added a folder under _libs with the 3.5 versions of ajaxtoolkit and enterprise blocks 4.0. We have not been able to use enterprise block historically due to the license but in the 4.0 release they changed to MsPl license which is compatible. I still can't use it in the core of mojoportal until we change the target runtime to 3.5. Not sure yet when we will do that but it is only a matter of time.

Best,

Joe

9/10/2008 5:38:19 PM
Gravatar
Total Posts 18439

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

I just committed the change to trunk with YUI tabs now being used on Page Settings and Site Settings. Please let me know if it works for you using the .NET 3.5 version of ajax.

Thanks,

Joe

9/12/2008 1:46:37 AM
Gravatar
Total Posts 22
Kenneth Haugland

Re: .Net Framework 3.5 EntityDataSource and new dynamic data controls

Hi!

I tried it out yesterday, worked fine. A bit different layoyt, but still looks good.

Regards

Kenneth

You must sign in to post in the forums. This thread is closed to new posts.