Compile error. Help!!

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/27/2014 10:00:45 AM
Gravatar
Total Posts 17

Compile error. Help!!

I downloaded the mojoportal source, version 2.4.0.6. I tried to compile the project and everything is fine.
Since my provider supports the 4.0 version of the NET I tried to compile from the solution "mojoportal.net40.sln"

I didn't get any error message, but once passed to test in the browser I get the following error message

"CS0234: the type or namespace name ' Mvc ' does not exist in the namespace ' system.Web '; are you missing an assembly reference"

I can't figure out where the problem lies.
I tried the compiled files downloaded from repositories are functioning properly.

But I need the working sources for processing of my custom feature

 

 

8/27/2014 10:50:21 AM
Gravatar
Total Posts 18439

Re: Compile error. Help!!

If you want to work with the net40 solution you have to replace the contents of Web.config with the contents of Web.net40.config before you can build the solution, and you may have to do the same in other projects like mojoPortal.Features.UI and WebStore.UI, which also have Web.config files.

Note that .NET version is confusing because even .NET 4.5 is identified by version 4, ie if you install .NET 4.5 on the server it will still show up in Administration > System Info as version 4

8/29/2014 4:14:30 AM
Gravatar
Total Posts 17

Re: Compile error. Help!!

thanks! 
I saw the file (web.net40.config etc.) and i renamed it.
But now I have a new error.

Could not load type 'mojoPortal.Web.Routing.RoutingModule' from assembly 'mojoPortal.Web'. (E: \ Sites \ mojo_dev_new \ Web \ web.config line 856)

Have you new suggestion?

8/29/2014 6:52:37 AM
Gravatar
Total Posts 18439

Re: Compile error. Help!!

look for this in 2 places in web.config and remove it

<add name="UrlRoutingModule" type="mojoPortal.Web.Routing.RoutingModule, mojoPortal.Web" />

its in both <httpModules> and in <modules>, remove it from both places should fix the error. I will remove it from my copy as well so it gets updated in the repository

8/29/2014 8:48:03 AM
Gravatar
Total Posts 17

Re: Compile error. Help!!

Thaks. 
Working well! 
A beer for you incoming!!!
 

8/29/2014 9:23:09 AM
Gravatar
Total Posts 18439

Re: Compile error. Help!!

Thanks for the beer! Much appreciated.

Cheers,

Joe

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