.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

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