Monthly Archives: August 2012

ASP.NET+MVC+Entity Framework Error – CS0012: The type ‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced. You must add a reference to assembly System.Data.Entity

I created a blank MVC4 site in which I tried consuming a WCF. Data was returned from WCF and available in MVC controller but when I was trying to use the data in MVC View using model; I was left … Continue reading

Posted in Entity Framework, Knowledge Sharing, MVC, Troubleshooting | Leave a comment

MVC4 error- Unable to complete operation. The supplied SqlConnection does not specify an initial catalog

I was trying to do my hands dirty today with MVC4. I was following MvcMovieStore example. Following everything correctly till “Accessing Your Model’s Data from a Controller”, i was stuck with this error. Struggling to this i found that by … Continue reading

Posted in ASP.NET, Entity Framework, Knowledge Sharing, MVC, Troubleshooting | Comments Off

Creating tamper proof Url in asp.net – a way to prevent spoofing and forged HTTP requests

Consider the following URL- http://www.mysite.com/orders.aspx?id=10 Now the problem is that anybody having this link can view more data than authorised and required by simply changing the value of id to say 16,17,18,19… Another problem could be that script tags could … Continue reading

Posted in ASP.NET, C#, Knowledge Sharing, Troubleshooting | Leave a comment

How to load a server side image in Silverlight Image control – another way to reduce XAP size

Direct references to images should be avoided in a Silverlight project as it makes the XAP file heavier. An alternative could be to have the images on server and load images by creating bitmap of the image by using the … Continue reading

Posted in ASP.NET, C#, Knowledge Sharing, Silverlight, Troubleshooting | Leave a comment