MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Building a custom WebPart  (Mono Support )

Viewed 19912 time(s), 5 post(s) 5/27/2011 3:22:00 PMby gonzalom
gonzalom

gonzalom

5/27/2011 3:22:39 PM
Hi, I tryed to follow this tutorial for building custom webparts.
After reading it I downloaded the code but found some errors at compile time.
It seems some references are missing at my solution tree. VS complains about undefined classes and namespaces but the only option it offers me is to generate the code.
Please look at the attached snaphots called PopularGroupRepository1.png and PopularGroupRepository2.png.

Something similar happens in the class PopularGroupRepository. This seems to be a less problematic case because is just one variable missing. I have no idea what value should it hold. Please look at BindData.png

Thanks in advance,

Gonzalo

This content has not been rated yet. 
345 Reputation 38 Total posts
denis

denis

5/27/2011 3:35:21 PM
Hi Gonzalo,
CacheRootKey property was recently removed from the BasePart, but is still present in the samples - you can put your own value, it is just a simple string constant that uniqely identifies your part in the cache store. For example, BlogList uses CacheKeys.Blog.BlogList, which simply holds a string value "MxBlogList". You can put "MyPopularGroups" or something like that.
As for other errors, these are easy to fix - just delete the failing references from the project and add them again from the /bin folder of MonoX - from your screenshots, I would say that you need to do it for MonoX.dll, MonoSoftware.MonoX.DAL.dll and SD.LLBLGen.Pro.ORMSupportClasses.NET35.dll.
This content has not been rated yet. 
7207 Reputation 956 Total posts
gonzalom

gonzalom

5/27/2011 6:18:57 PM
Hi Denis,

I have no failing references in the project. However it seems one of the assemblies you mention was missing.
I think you meant SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll right? Because I didn't find SD.LLBLGen.Pro.ORMSupportClasses.NET35.dll and SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll worked.

Thanks,

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts
denis

denis

5/27/2011 8:09:46 PM
Yes, that was my mistake. Can you now compile the project?
This content has not been rated yet. 
7207 Reputation 956 Total posts
gonzalom

gonzalom

5/30/2011 1:00:05 PM
Yes, thanks.
This content has not been rated yet. 
345 Reputation 38 Total posts