Could not load type 'mojoPortal.Web.Global'

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/7/2007 1:43:38 PM
Gravatar
Total Posts 3

Could not load type 'mojoPortal.Web.Global'

hello,
I downloaded the file "mojoportal-2-2-1-7-sourcecode.zip" and I create tables and spr in SQL Server 2005 Express and configured the "\web" subfolder in IIS as my Default Web Site (root).


When i run http://localhost/ I get this error:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'mojoPortal.Web.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="mojoPortal.Web.Global" %>

Source File: /global.asax Line: 1

Do I need to compile?

Bye
Luca (Italy)


4/7/2007 1:51:22 PM
Gravatar
Total Posts 18439

Re: Could not load type 'mojoPortal.Web.Global'

Hi Luca,

Yes you do need to compile the sourcecode, it does not come with compiled dlls.
If you use the release files they are already compiled and include no C# source code, but using the source code you must compile it yourself.

Hope it helps,

Joe
4/8/2007 3:19:47 AM
Gravatar
Total Posts 3

Re: Could not load type 'mojoPortal.Web.Global'

Joe,
thanks for your answer. That's ok now, installed succesfully using compiled files.

I didn't see the "\web" folder in mssqlreleasefiles.zip

Thanks,

Luca

PS: just a question: in version 2 did you stop the support to SQLITE db? I'm looking for a CMS based on "1-file-database" like ms Access or SQLite.

4/8/2007 8:30:17 AM
Gravatar
Total Posts 18439

Re: Could not load type 'mojoPortal.Web.Global'

Hi Luca,

Back around version 2.0.1 of mojoPortal it was working with SQLite (except for WebParts personalization) but somewhere between then and now it got broken. I spent a little time trying to fix it a few weeks ago but had no luck and got too busy with other things to keep trying.

I sent an email to Joseph Hill this morning to see if he might be able to look into it, he is the one that initially implemented the SQLite data layer. I'll let you know if he is able to help.

I will say when I was testing it back when it did work it was very slow so it seemed more a novelty to me rather than useful. Joseph and some others were doing some work a while back to get mojoPortal running under Mono on a Nokia internet tablet device so that was the motivation for using SQLite.

The 1.x version of mojoPortal (for .NET 1.1) should still work with SQLite as it has not been modified much in the past year whereas the 2.x branch has been under continual development.

Joe
11/17/2008 7:01:53 PM
Gravatar
Total Posts 1

Re: Could not load type 'mojoPortal.Web.Global'

Hi i am having the sameproblem that he mentioned at the begining of the foro, but how can i compile the solution on the hosting, i am just trying to run the mojoportal/setup, what should i do to solve this error. thanks.

11/18/2008 6:32:58 AM
Gravatar
Total Posts 18439

Re: Could not load type 'mojoPortal.Web.Global'

Hi,

You should not deploy source code to hosting or to a production server. If you are using a hosting provider you should use the pre-compiled release files not source code. mojoPortal uses the Web Application project type where all the C# code is compiled into dll files in the bin folder.

If working with the source code, you must build the solution with Visual Studio.

Hope it helps,

Joe

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