• ASP.NET MVC make users–roles fast

    please left click on “Microsoft SQL Server Management Studio (push button)” please create a database in “Microsoft SQL Server Management Studio” please left click on “C:\Windows\system32\cmd.exe (push button)” and enter the following command : aspnet_regsql.exe -E -S .\SQLExpress -d proprii -A rm please left click on “ListPanel (list)” in “Microsoft SQL Server Management Studio” please…

  • Programmer retrospective – 2010

    What have I done in 2010 ? 1. I started this blog in English( I have one in Romanian,too) 2. I have made a book (outdated) about ASP.NET MVC 2 tips and tricks,published on Amazon . 3. I have initiated a book about programming in VS2010 – alas,it’s in Romanian at http://ronua.ro/CS/media/p/216886.aspx 4. I have…

  • Happy new year 2011!

    Some short links that I have for MVC: MVC 3 RC : http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a920ccee-1397-4feb-824a-2dfefee47d54&displaylang=en MVC 2 Source Code : http://aspnet.codeplex.com/ MVC3 Extensibility : http://bradwilson.typepad.com/blog/2010/07/service-location-pt1-introduction.html MVC helpers : http://msprogrammer.serviciipeweb.ro/2010/05/30/mvc-helper-templates/ http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html Until  10  january 2011 I would not write a post,so I’m taking the liberty to say to all happy new year!

  • mvc windows authentication

    If you want to use Windows Authentication with MVC : Step 1 : In web.config,put authentication mode windows Step 2 : in IIS disable anonymous Step 3 :  go to Views\Shared\LogOnUserControl.ascx and remove logoff / logon links.

  • Optimizing EF4 and EDMGen2

    Just reading (from Adrian Florea links ) how the EF4 could be optimized : http://www.codeproject.com/KB/database/PerfEntityFramework.aspx First modification is to “Pre-generated Your View”. For this you must have .ssdl,.csdl,and .msl files – so you change the “Metadata Artifact Processing property to: Copy to Output Directory.”. Then you process the .ssdl,.csdl,and .msl with edmgen in order to…

  • EF Profiler and investigating object context

    Summary : EF Profiler worth his money ! Long Description : I have finished a application with Entity Framework and POCO – and custom generated (.tt) files. Now it was time to investigate performance  – and it was a terrific problem. How EF Prof helped me : 1.  Displaying number of ObjectContext created and disposed…

  • Error intercepting in MVC when saving data

    I have seen many times in MVC the following code,when doing a post and saving data : Why is not good ? I will do a simple example : if some error occurs on the database level ( such as simple unique index on a name column ) or even some error occurs whenestablishing the…

  • Twitter Weekly Updates for 2010-11-07

    privacy on internet times : http://www.attackvector.org/invasion-of-privacy/ # http://listverse.com/2010/11/04/10-strange-things-about-the-universe/ # Powered by Twitter Tools

  • path.combine idiosyncrasies

    I have this small program : In what conditions,if I have an “C:\andrei” folder with a single file,the output will be the name of the file ? And where you want to be aware of this behaviour ? Hint : The output is : \andrei\New Text Document.txt

  • A programmer day with “That assembly does not allow partially trusted callers”

    I make a website,works on local IIS. Performs user registration  + uploading some zip files + generating custom feeds for those zip files. Using SharpZipLib_0860_Bin ( to unzip file ),StringTemplate.dll ( to perform custom feed generation ) and NUnit-2.5.7.10213 ( to perform tests). So far,so good. Moving into production . User registration works,upload works,trying feeds…

I am ok , you are ok