Altinet
  • Home
  • Blog
  • Contact





Note to self: Be sure to set asp.net membership defaultProviders

On 29 Mar, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Man, why do i always have to learn the stuff the hard way? I was doing a deployment of my RIA solution to the production server after a visual studio update (not sure if it's connected or not), and i would start getting these strange errors when trying to log in:

There was a failure using the default 'ProfileProvider'. Please make sure it is configured correctly. The database 'C:INETPUBWWWROOTAPP_DATAASPNETDB.MDF' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported. Cannot open user default database. Login failed. Login failed for user 'NT AUTHORITYNETWORK SERVICE'....

Read More

Associations and insert ordering

On 21 Mar, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Well, i ran into an issue while inserting multiple records which is nicely described in my post on a forum: http://forums.silverlight.net/forums/t/222783.aspx Long story short, ria services doesn't take care of the ordering of the items when calling insert methods for entities, ie it could easily call insert on child before parent. This problem doesn't show itself when using Composition attribute, but it's not like you want to use that attribute every time, so if you're not using you're pretty much leaving yourself at the mercy of your ORM. And Nhibernate is pretty crude sometimes in some respects, one of them being...

Read More

The Memory Leakage Pwnage

On 18 Feb, 2011
Uncategorized
By : Bruno Samardzic
With 2 Comments

There's really something scary about when the whole foundation of your work starts to tremble because of some things not directly under your control. That's what scares me the most about Microsoft being such a dominant force int the .NET ecosystem. Don't get me wrong, there's a LOT of good stuff happening because of Microsoft, and guys over there can be really helpful, but the latest troubles i encountered with the dreaded memory leakage really shook me up. Exhibit A: http://forums.silverlight.net/forums/t/171739.aspx Long story short, there was a severe memory leak caused by inline datatemplates, and it's one of the issues that,...

Read More

Ria services, presentation model, complex types as query arguments, and how to do it better and simpler

On 18 Feb, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Ok, i'm putting this here so i can get back to this later and finally write this one down, along with some nice examples and code samples. This is a sequal of on of previous blog posts. It turned out to be REALLY beneficial, for a number of reasons so stay tuned.... Now onward with the topic of the...

Read More

Dataform, Ria Services, Combobox and Validation

On 02 Feb, 2011
Uncategorized
By : Bruno Samardzic
With 9 Comments

As you may figured out from 1 of my previous posts, i'm not a big fan of Silverlight Dataform control, although I do like some of the capabilities presented there. In fact, after numerous frustrations with it, i decided to roll my own customization of it, rip out everything i didn't need and adjust it to act the way i like it. You can find my first stab at it in this post. That turned out to be one of the better decisions, although fighthing with the code mess inside the datafirn proved to be quite a challenge. Lately i...

Read More

Animation for starred grid rows and columns using xaml

On 24 Jan, 2011
Uncategorized
By : Bruno Samardzic
With 8 Comments

If you had problems with animating gridcolumn widths or gridrow heights i have a solution for your problems. put the following class somewhere in your project: 1 And the usage model would look something like this 1 The important part is in DoubleAnimation tag where you set the extended property GridLengthAnimation.Element where column2 is a name of a column. 3 and 0 are starred values. but with some tweaking of this simple model, you can basically do whatever you want. UPDATE: I have updated the code, now it supports both starred and fixed column/row widths/heights. Enjoy! UPDATE 2 I've put a more complete code for one of...

Read More

Ria services, presentation model, user types as query arguments, and how i got here in the first place:)

On 21 Jan, 2011
Uncategorized
By : Bruno Samardzic
No Comments

As you may know, in the most recent ria services beta release complex types were introduced which can be used for invoke operations and as entity properties. For additional information i'd advise you to check the following link: Complex types in RIA Services Now why is this of interest? The rant, skip this part if you just want to go to the problem When i designed my system i had to make a few decisions, 2 of which being: 1. What ORM i'm going to use - i went with NHibernate 2. Presentation model or exposing my domain models - i went with presentation model,...

Read More

Debugging code generation and custom metadata provider for RIA services

On 20 Jan, 2011
Uncategorized
By : Bruno Samardzic
No Comments

I wasn't very happy when i saw the default way RIA services handles validation. It's either having attributes directly on your classes or it's those clumsy metadata inner classes which have the same property names as the parent ones. I like the fluent approach, and that approach is explained here: RIA Services Fluent Metadata API I even used it and modified it in my example which i presented in the following codeproject: Setting up Silverlight, RIA Services, NHibernate and Validators It's a good example of the same thing. Anyway, i did some modifications to that code and i didn't know how to...

Read More

Note to self: NHibernate – Adding nullable columns for non nullable value type properties

On 11 Jan, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Ok, i was kinda hung up on this one for 3 hours or so. I added a new column to the database, a boolean one. I mapped it to my domain object, which is also boolean (not nullable). Fired up my project, tried to do the query only to get: Could not execute query [SQL: SQL not available] And the inner exception would just be Object reference not set to an instance of an object. Since the boolean addition was not the only change in the system (i did quite a few of them) i suspected something else going awry. Anyway, google didn't help...

Read More

Navigation recipe for Caliburn Micro

On 06 Jan, 2011
Silverlight
By : Bruno Samardzic
With 7 Comments

This time i have a real treat for you. I was kind of surprised there is no really good solution for navigation in caliburn framework (or i'm unaware of one). I decided to roll my own out with the following basic features: 1. Supports deeplinking 2. Easy setup 3. IOC agnostic The solution comes with a really simple sample application which explains how you can set it up. To have it set up on your application you need to do following things: 1. Include the Caliburn.Micro.Navigation project 2. In the AppBootstraper part, you need to add the navigation conventions (see the AppBootstrapper of the sample app) 3....

Read More

  • Page 4 of 5
  • 1
  • 2
  • 3
  • 4
  • 5

Recent Posts

  • Angular vs React: round 2
  • Why programming is hard
  • Orchard Workflows, undocumented gem
  • The React Redux
  • React.js invoicing CRUD application, part 2: Description

Recent Comments

  • Angshuman on Animation for starred grid rows and columns using xaml
  • Advanced Excel Training in Lucknow on Angular vs React: round 2
  • Reginald Sophomore on My example of Angularjs directive
  • Slobodan on Angular and Breeze – story so far.
  • Bruno Samardzic on Reaction to Ember-forged Durandal Angularly Knocking out my Backbone, or my JS MVC framework research conclusion.

Contact

Altinet d.o.o.

OIB: 97429091194

Čulinečka cesta 146, Zagreb

Tel: +385 (1) 2946 819

Mob: +385 (98) 210 756

IBAN: HR4323400091110406470

Latest tweets