Archive

Archive for December, 2012

2012 in review

December 31, 2012 Leave a comment

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

600 people reached the top of Mt. Everest in 2012. This blog got about 7,100 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 12 years to get that many views.

Click here to see the complete report.

Advertisements
Categories: Genaral

Good Bye Visual Studio Installer Projects

December 27, 2012 2 comments

As Microsoft had announced on 2010 , Visual Studio Installer Projects have been removed with latest Visual studio release. (VS 2012).  Recently i was trying to convert our existing VS 2010 solution to vs 2012, got the problem. All the other projects on the solutions were converted successfully and Setup project gave error as project type not installed. At first i thought that i have to create all the setup project from the beginning.  But with few steps, could convert all to ‘InstallShield Limited Edition’ projects.

  1. InstallShield Limited Edition is not installing when we install VS 2012. (I am not sure with other versions, but i use VS 2012 ultimate and it didn’t had InstallShield Limited Edition installed)
  2. Even after installing InstallShield Limited Edition, those setup project will not convert by opening it. (which i thought that way would work)
  3. First open the Vs 2010 solution with VS 2012, it converts all other projects with error of setup project cannot convert.
  4. Remove existing setup project from solution.
  5. open add new project dialog for solution. select the ‘Other project type’ and select the ‘InstallShield Limited Edition Project’
  6. It should not be installed if you didn’t install it previously. so when you try to open the project it will show a message on browser to download the InstallShield Limited Edition
  7. Follow the instruction and download the InstallShield setup. they will send the key to activate to entered email address.
  8. After install, you might have to restart the VS. enter received serial no and activate
  9. Now same as step 5, add InstallShield setup project and on the InstallShield menu on main menu, select ‘Visual Studio Deployment Project Import Wizard…’
  10. Select your vs 2010 setup project file.  Hopefully it will convert without error. i didn’t had to do any changes on converted project.

 

How to avoid ‘WebForms.PageRequestManagerServerErrorException’ error

December 9, 2012 Leave a comment

This error i got suddenly, when i use partial post back to server on Asp.net aspx page. this page was working perfectly for months and today only i got this.  After looking into this sometime, only thing has changed here is now i have more data on the page.  But there is no way to catch the error and visual studio is returning this error when i click any control on the page.

WebForms.PageRequestManagerServerErrorException

When i look on the windows event log, exception was logged there as,

Operation is not valid due to the current state of the object.
at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
at System.Web.HttpRequest.FillInFormCollection()

What has happen was because of more data on the page, It is generating  “ThrowIfMaxHttpCollectionKeysExceeded” error.

To overcome this issue you have to add following key to web.config as follows,

<appsettings>
   <add key=”aspnet:MaxHttpCollectionKeys” value=”2000″></add>
</appsettings>

P/S : After looking into this issue on the web, i found this information,

 Microsoft released a security update KB2656356 / MS11-100 for ASP.NET to address a potential Denial of Service vulnerability.  In the update, Microsoft introduced a limit to the number of data elements on an ASP.NET form.   The default limit is 1000 data elements.   Exceeding the limit will cause a ThrowIfMaxHttpCollectionKeysExceeded error.

After applying the patch to your webserver, forms that exceed the limit will generate the following error when posting:

Categories: Career, Technical