Build errors on 'mojoPortal.Web.Controls.CornerRounderTop' and 'TitleControl'

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.
1/12/2011 2:57:37 PM
Gravatar
Total Posts 7
Stop The World, I want To Get Off

Build errors on 'mojoPortal.Web.Controls.CornerRounderTop' and 'TitleControl'

Hello.


I'm trying to come up with a prototype web site for a prospect using mojoPortal.

I am coding on a Dell Dimension 9150 workstation logged into a network domain of Windows Small Business Server 2003. The workstation has four meg of ram, 98 gig HDD, Windows XP Pro, SP3, VS6.0 - VS2010, .Net Framework 1.1 - 4.0, ASP.NET 2.0, SQL Server Express 2008R2.

I have programmed in VB3.0, 6.0 ,VB.NET, Fortran and COBOL

I have developed three other web sites using starter kits in VB.NET, ASP.NET 2.0, .Net Framework 2.0 and SQL2008 Starter Edition.

At this point, I am trying to follow the Developer Training Videos so that I can learn how to create my own VB modules. From what I can read on the mojoPortal web site, I believe it is possible to create VB modules even though the original mojoPortal web application is written C#. If I am wrong about this, I hope somebody jumps in here to let me know.

I used TortoiseHG to create my source code folder and download the source code 2.3.6.0.

I didn’t want to, but I found that I needed to use the CodeSmith method of creating the code used in the videos. I didn’t realize that CodeSmith could generate VB code from the mp_UI-starter-ModuleControlGenerator.cst file used in the Dev Series 3 Custom Solution. So, the first time I used CodeSmith to generate a C# file as the video explained, it worked out just as the video indicated. I took the results of the Output Panel in CodeSmith and converted it from C# code to VB.NET code using a web site on the internet and followed the video from there.

I continued to follow the Dev Series 4 Hello Web video and when I build my new Web.UI web application project, I get the following six errors. I don’t know how to resolve them.

Error 19 Type 'mojoPortal.Web.Controls.CornerRounderTop' is not defined. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.designer.vb 32 35 LakesideOS.Web.UI

Error 20 Type 'mojoPortal.Web.Controls.CornerRounderBottom' is not defined. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.designer.vb 77 38 LakesideOS.Web.UI

Error 21 'Public Event Load(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.vb 41 13 LakesideOS.Web.UI

Error 22 'TitleControl' is not declared. It may be inaccessible due to its protection level. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.vb 56 13 LakesideOS.Web.UI

Error 23 'TitleControl' is not declared. It may be inaccessible due to its protection level. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.vb 57 13 LakesideOS.Web.UI

Error 24 'TitleControl' is not declared. It may be inaccessible due to its protection level. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.vb 68 13 LakesideOS.Web.UI

I am having a terrible time trying to stop and restart and follow the Dev Series 4 Hello Web video. Also, I can’t get CodeSmith to Generate the code again as I did the first time I used it. It doesn’t give any errors, It just does not display an output panel.

Does anybody know how to fix these errors?

Any help would be gratefully appreciated.

Thanks,
Tony

 

1/12/2011 3:10:05 PM
Gravatar
Total Posts 18439

Re: Build errors on 'mojoPortal.Web.Controls.CornerRounderTop' and 'TitleControl'

Hi Tony,

Make sure you add references under the References node in Visual Studio explorer in your web ui project to the mojoPortal.web project and to the mojoPortal.Web.Controls project, use the project tab in the references dialog where you add references.

Also you should copy the entire <pages section from the mojoPortal Web.config file into the Web.config file for your UI project replacing the section if it is already there.

Codesmith should be able to generate again unless you modified the template in a way that caused an error, it can be tricky to find out the error, maybe restore the original file and try modifying it again but test it after small changes.

I recently made my C# copy of the Guest Book tutorial files available here, maybe comparing back and forth can also help you solve problems you may encounter.

http://www.mojoportal.com/guest-book-tutorial-files.aspx

Hope it helps,

Joe

1/13/2011 7:53:36 AM
Gravatar
Total Posts 7
Stop The World, I want To Get Off

Re: Build errors on 'mojoPortal.Web.Controls.CornerRounderTop' and 'TitleControl'

Hello Joe.

Thanks for your help.

I'm sorry to keep changing on you, but I decided to start the videos over and try it with the C# coding.

I manage to get through Dev Series 4 Hello Web and eliminate the 'TitleControl' errors.

However, now i am getting just two errors:

Error 1 The type or namespace name 'CornerRounderTop' does not exist in the namespace 'mojoPortal.Web.Controls' (are you missing an assembly reference?) C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.designer.cs 31 51 LakesideOS.Web.UI

Error 2 The type or namespace name 'CornerRounderBottom' does not exist in the namespace 'mojoPortal.Web.Controls' (are you missing an assembly reference?) C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\LakesideOS\LakesideOS_Projects\LakesideOS.Web.UI\GuestBook\HelloWeb.ascx.designer.cs 76 51 LakesideOS.Web.UI

I can't figure out how to resolve these errors.  I searched for 'CornerRounderTop' in the solution and found that there are other modules with the exact same statement in them as the one that is giving the errors in my new HelloWeb.ascx.designer.cs file.  Those other files are not giving any errors.

Any help that you can provide to resolve this issue would be gratefully appreciated.

Thanks,
Tony

1/13/2011 10:22:33 AM
Gravatar
Total Posts 18439

Re: Build errors on 'mojoPortal.Web.Controls.CornerRounderTop' and 'TitleControl'

Hi Tony,

Have you done what I said in my previous post? That is the same advice I would give for your new post.

Hope it helps,

Joe

1/13/2011 12:58:21 PM
Gravatar
Total Posts 7
Stop The World, I want To Get Off

Re: Build errors on 'mojoPortal.Web.Controls.CornerRounderTop' and 'TitleControl'

Joe,

It seems that all i needed to do was add mojoPortal.Web.Controls to the references as you specified in your previous post.

I'm sorry for missing your advice on that issue.

Keep up the good work and thanks for all of your help.

Tony

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