log4net issue in .net 4.0

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.
2/8/2012 5:28:22 AM
Gravatar
Total Posts 9

log4net issue in .net 4.0

I am creating a module in mojoPortal, but while adding log4net reference in myproject.UI the message shows:

log4net version 1.2.10.0  is incompatible with .net framework 4.

In order to add it, you should to change the project target to a compatible framework.

I know that log4net 1.2.10.0 don't support .net 4.0, and i read and searched all forum regarding to log4net in mojoPortal, but still i am not getting how to solve this.

So please help and discuss in detail that how to solve it.

Thanks

2/8/2012 6:58:07 AM
Gravatar
Total Posts 18439

Re: log4net issue in .net 4.0

Hi,

We are using log4net everywhere and have had no problems with .NET 4 projects referencing it. I just removed the reference and added it again in one of my cusotm projects and I did not get any errors.

What steps are you using to add a reference?

The way I do it is right click the references node in my project and choose add reference, then I click the Browse tab, and then I browse to the log4net.dll in the _libs folder included with the mojoPortal source code.

Hope that helps,

Joe

2/9/2012 6:54:31 AM
Gravatar
Total Posts 9

Re: log4net issue in .net 4.0

Now I have added log4net reference, I am following this tutorial http://geekswithblogs.net/strongeye/archive/2009/12/16/creating-a-mojoportal-module.aspx

Now I have one issue when I build my project following error showing:

Error    1    The command "xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\bin\lr.UI.UI.dll" "C:\tortoiseHGSourceCode\Web\bin\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\bin\lr.UI.Business.dll" "C:\tortoiseHGSourceCode\Web\bin\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\bin\lr.UI.Data.dll" "C:\tortoiseHGSourceCode\Web\bin\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\*.ashx" "C:\tortoiseHGSourceCode\Web\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\Controls\*.ascx" "C:\tortoiseHGSourceCode\Web\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\Controls\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\*.aspx" "C:\tortoiseHGSourceCode\Web\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\Controls\*.ascx" "C:\tortoiseHGSourceCode\Web\C:\tortoiseHGSourceCode\lr.UI\lr.UI.csproj\Controls\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\App_GlobalResources\*.resx" "C:\tortoiseHGSourceCode\Web\App_GlobalResources\"
xcopy /s /y "C:\tortoiseHGSourceCode\lr.UI\Setup\*" "C:\tortoiseHGSourceCode\Web\Setup"
" exited with code 4.    lr.UI

My project name is lr and my project build failed.

Please let me aware about it

Thanks

2/9/2012 9:50:01 AM
Gravatar
Total Posts 18439

Re: log4net issue in .net 4.0

It means you have mistakes in your post build event. you should studdy the psot build event in other features like WebStore to figure out what you have wrong in yours. Don't add entries to copy files that don't exist. For example if you don't have any .ashx files then you should not have anything in your post build event that tries to copy such files it will cause an error.

Hope that helps,

Joe

2/14/2012 10:54:31 PM
Gravatar
Total Posts 9

Re: log4net issue in .net 4.0

Thanks for your support. I helped with webstore done successfully post build.  After successfully post build what is the next step, because after post build I go to Admin  > AdvanceTool> And add module. But when this module add in page there is nothing showing. Now I want to ask which step I missed, I think i missed that installation of module in mojoportal, that's why its not showing in setup/default.aspx. So I am not getting how to install my module in mojoportal. so plz help regarding it.

I followed http://geekswithblogs.net/strongeye/archive/2009/12/16/creating-a-mojoportal-module.aspx 

 

Thanks

2/20/2012 7:53:38 AM
Gravatar
Total Posts 18439

Re: log4net issue in .net 4.0

If there is an error loading your custom module it will be logged in the mojoPortal log under Administration > System Log

Hope that helps,

Joe

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