a quick note: If you have problems using vb.net

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.
5/30/2011 4:33:35 AM
Gravatar
Total Posts 18

a quick note: If you have problems using vb.net

Hey there,

I´m a bit unsure if this has already been posted...however:

As some might had issues and stopped using VB.Net for their custom modules.
There´s one important thing you need to have in mind.

The Default Mojoportal Source and Web Config has only the C# compiler activated,thus
is unable to use VB code behind files.

To enable vb.net code behind files you need to add the VB Compiler to your web.config file.

Open your web.config file and look for the "<compiler>" section.
right beneath the C# compiler (<compiler language="c#;cs;csharp"[...]</compiler>)

you have to add the section for Visual Basic:


<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <providerOption name="CompilerVersion" value="v3.5"/>
    <providerOption name="OptionInfer" value="true"/>
    <providerOption name="WarnAsError" value="false"/>
   </compiler>

This code snippet is for .Net 3.5 Installations. If you´re already using a .Net 4.0 installation here´s a quick guide on how to get the VB compiler definition for 4.0.
 

 - Create a new , blank, web application using VB.Net 4.0
 - Open the web.config file of the created application
 - Simply browse to the "<compilers>" section and copy the whole
   VB Definition to your MojoPortal web.config file.

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