Today I must update a web application in a pre-production environment. I use asp.net 2.0 and web deployment project, so I set the site to be precompiled, not updatable and all assemblies merged in a unique assembly. I build the site, test in developing machine than I do a xcopy deploy on preproduction server. When [...]

Continue reading about About speaking error “The file ‘xxx’ has not been pre-compiled, and cannot be requested”

At…how you had done some queries into the db J. I’ve a project where I need to check every day expired records in a table. That table has a lastUpdateDate column, I simply check if the time passed from last update is greater than a given amount and for each record I must create a [...]

Continue reading about Sometimes it is worth to take a look at….

Sometimes it is preferable to store the session of asp.net in sql, I prefer to use a distinct database for each application, the command to create such database is aspnet_regsql.exe -S localhost\isntancename -U sa -P sapwd -d databasename -ssadd -sstype c Notice the use of –sstype c parameter that forces the script to create a [...]

Continue reading about Asp.Net 2.0 session stored in Sql

In an old post I talked about a strange error I had in a web site. The last time I simply changed the logic not storing entities in httpsession anymore, now I face this error again and I decided to solve it. The problem is in the session per request pattern that I use to [...]

Continue reading about NHibernate, session per request and HTTPSEssion

When older is better
on July 10th, 2007
On category: General

Yesterday I was called to solve a problem. There is a web application that works with a ActiveX control packaged in a .Cab file, but client machine have standard user logged. What we needed was the following, when a user navigate to a page that contain a reference to that control, IE should automatically download [...]

Continue reading about When older is better