adding custom feature to existing installation error

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.
12/30/2010 3:17:19 AM
Gravatar
Total Posts 4

adding custom feature to existing installation error

He friends

I have an existing installation of mojoportal, I develop a custom feature. when I want to add this feature to Website, I get this error:

Could not load file or assembly [MyCustomFeature.dll] or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I found out when I delete my custom dll from bin folder the error goes away, but my custom feature of course crashed.

in addition I use FTP to copy my feature files

what should I do?

12/30/2010 9:53:37 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: adding custom feature to existing installation error

It sounds like maybe you are developing your custom feature using .NET 4, but the site is running under .NET 3.5? I'd recommend you use TortoiseHG to get up to date on the mojoPortal source, develop your feature, and deploy/upgrade mojoPortal at the time you install your custom feature. That's the way I do things and it works very well.

 

12/31/2010 2:38:26 PM
Gravatar
Total Posts 4

Re: adding custom feature to existing installation error

I use .Net Framework 4, when I delete everything on server and follow the structure comes from here

I have got another error about Web.config and IIS core. The error details come below

Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x80070032
Config Error The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

 

Can you tell me what should I do? there is more than 5 days I have challenged with it

1/2/2011 9:02:59 AM
Gravatar
Total Posts 4

Re: adding custom feature to existing installation error

I rent a host to upload my mojoportal project, the host support both .net 4 and MSSQL Server, i Upload my mojo portal project files by ftp then change connection string and correct the permission of data folder, then i got this error:

The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

the host have a microsoft application installer witch when I use it to install mojoportal everythings go fine but when i upload my custom feature dll files to bin folder i got another error ebout build version,

is there anybody help me?

1/3/2011 5:38:06 AM
Gravatar
Total Posts 18439

Re: adding custom feature to existing installation error

Hi,

The version of mojoPortal in the Web App Gallery (the Web Platform Installer) is compiled for .NET 3.5, so when you upload your custom code that was compiled against a version of mojoPortal for .NET 4 it will not work. If you have .NET 4 hosting you should upload the mojoPortal package for .NET 4. You can download it from Codeplex and do manual upgrade. Or as Jamie says, really if you are working with the mojoPortal source code the best way is to produce your own deployment package built from the same code and including both mojoPortal and your custom features in the same deployment package.

There are differences between Web.config file for .NET 4 and .NET 3.5, this error makes me think your hosting is really .NET 3.5:

Config Error The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

because under .NET 4 that section does not need to b declared in Web.config because it is already declared in the machine.config file for .NET 4.

See breaking changes for .NET 4.

Typically if you declare the system.web.extensions section in Web.config under .NET 4 you get the opposite error about a duplicate section declaration whereas under .NET 3.5 if you leave it out you get the missing section that you posted because it does need to be declared under .NET 3.5.

Hope it helps,

Joe

1/3/2011 12:17:36 PM
Gravatar
Total Posts 4

Re: adding custom feature to existing installation error

Hi Joe

Thank you for your reply. the portal now is working fine and everything is good.

my host have some problem about .net4 and now the problem is go away.

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