Loading ...

ASP.NET Blogs | CodeAsp.Net

Who is online?  0 guests and 0 members
home  »  blogs

Communifire Blogs

Blogs: Most Recent postings

Vincent Maverick  Durano

My Last Post

10 days ago by Vincent Maverick Durano · 0 · 116

Well this is really not my last post but I will not be blogging anymore here to avoid cross posting of contents. Instead you can visit my official blog at: Vinz' Blog Note: Stop blogging here doesn't mean I will stop contributing to the codeasp community, of course I will still be moderating posts and participating in the forums and try my best to answer to questions to the best that I c...

Vivek Thakur

Application Pool Failure: Rapid Fail Protection

12/15/2011 by Vivek Thakur · 0 · 351

We were stuck with a weird issue. Our ASP.NET web app was crashing for some reason and the event log only displayed Stackoverflow exception. We want to narrow down the reason for the crash and since stackoverflow exceptions are easy to debug (even crash dumps didnt give help much), we wanted our app to shut down the moment first time this excepton occured. Application pool recycles itsel...

Vivek Thakur

Sql Server Timeout expired. The timeout period elapsed prior to completion of the operation

12/9/2011 by Vivek Thakur · 0 · 294

The default SqlCommand timeout is 30 seconds, so you might get this error while executing a lengthy Sql operation (like creating a DB and its schema via C# code): Error : Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. In order to fix this, just increase the command time out as follows: myCommand.CommandTimeout = 120; // 2...

Vivek Thakur

Microsoft.SqlServer.SMO and Microsoft.SqlServer.Management assemblies issue

12/2/2011 by Vivek Thakur · 0 · 295

We had created a Visual Studio project in C# to create SQL Server 2005 database via C# code. We were referencing these assemblies: Microsoft.SqlServer.Management.Sdk.Sfc.dll Microsoft.SqlServer.Smo.dll Microsoft.SqlServer.ConnectionInfo.dll We also added this DLL but did not reference it as we realized it was required internally by the above assemblies: Microsoft.SqlServer.SqlClrProvider...

Hajan Selmani

Speaking at Macedonian Code Camp 2011

11/24/2011 by Hajan Selmani · 0 · 359

This year again, Macedonian .NET User Group is organizing the biggest event in balkans... CODE CAMP 2011 Event will be held at 26th of November at FON University, Skopje, Macedonia. There are 24 speakers, 7 MVPs, 25 sessions and 5 tracks. In the first 15 hours we got 600 registered attendees... and we expect this number to reach 1000 by the end of registrations. I will be speaking on top...

Raghav Khunger

C#: Casting with ENUM

11/22/2011 by Raghav Khunger · 0 · 289

In this blog I will show how to cast an int to enum, enum to int and string to enum. Let's make a sample enum: MyEnum.cs namespace Sample.Console { public enum MyEnum { Item1 = 1, Item2 = 2, Item3 = 3, Item4 = 4, Item5 = 5, } } 1. Int to Enum int integerValue = 2; MyEnum myenum = (MyEnum)integerValue; //Output: item2 2. Enum to Int MyEnum myenum = MyEnum.Item3; int integerValue = (int)my...

Raghav Khunger

C#: How to get the end of the day

11/22/2011 by Raghav Khunger · 0 · 228

Yeterday I had a requirement where I needed to find the end of day in datetime. I decided to make extension on datetime to achieve it. Below is the sample code: DateTimeExtension.cs: #region Using Directives using System; #endregion namespace Sample.Console { public static class DateTimeExtension { public static DateTime GetEndOfDay(this DateTime datetime) { return datetime.AddDays(1).Ad...

Raghav Khunger

Visual Studio: The breakpoint will not currently be hit. no symbols have been loaded for this document

11/21/2011 by Raghav Khunger · 0 · 241

This message irritates me when I encounter this while debugging my code. I am writing the solution below by which this can be avoided. Step 1: Go to Build >> Configuration Manager and select "Debug " as the option for Active solution configuration. Step 2 : Go to your web project properties >> Build >> General Uncheck the Optimized code checkbox. Step 3: Clean and Rebui...

Raghav Khunger

ASP.NET: Checkboxlist to string list

11/20/2011 by Raghav Khunger · 0 · 324

In this blog I will show how to get selected values of checkboxlist in ASP.NET. The selected value can be get by applying foreach iterator on checkboxlist items and then we can find the selected items. I decided to make an extension to do the same. Below is the code for it: Control Extensions: using System.Collections.ObjectModel; using System.Linq; using System.Web.UI.WebControls; names...

Raghav Khunger

Adding linebreaks in multiline textbox's text

11/20/2011 by Raghav Khunger · 0 · 935

Sometimes it is needed to add some text with linebreaks manually in textarea. It can be done by adding slash r and slash n (\r\n). Below is the sample code to do the same. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <form id="form1" runat="server"> <textarea id="myTextBox" style="width:500px;height:300px"&...

Vivek Thakur

IIS error: The page you are requesting cannot be served because of the extension configuration.

11/16/2011 by Vivek Thakur · 0 · 248

If you have installed ASP.NET 4.0 runtime on your system before installing IIS, you may run into this error while trying to run your ASP.NET web projects locally configured in IIS: HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. To fi...

Vivek Thakur

IIS Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default

11/16/2011 by Vivek Thakur · 0 · 284

One of our developers got this error while locally configuring ASP.NET 4.0 website on his local IIS 7 server: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default. (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false" To fix t...

Vivek Thakur

Visual Studio error Files has invalid values

11/15/2011 by Vivek Thakur · 0 · 205

Today I got this weird error in one of our projects in Visual Studio while getting latest from my Git repository: Files has invalid values The solution would give this error on "clean" or rebuild. After some Google searches, I found a fix to this error: simply delete the "obj" folder for the errant project. I did this and did a Clean and rebuild, and it worked fine this time. Hope this q...

Vivek Thakur

Git error: bad index file sha1 signature fatal: index file corrupt

11/15/2011 by Vivek Thakur · 0 · 398

Sometimes using Visual Studio Git Extensions , while switching in and out of Git branches, you may encounter this error: error: bad index file sha1 signature fatal: index file corrupt Your Git index may get corrupted, and here is a quick fix to restore your index to your last commit: 1. Open Git bash by going to Start-> All Programs-> Git-> Git Bash. This will open up the Git ba...

Md. Saiful Islam

ASP.Net State management

11/15/2011 by Md. Saiful Islam · 3 · 1707

What is State Management? State management is the process by which you maintain state and page information over multiple requests for the same or different pages. ASP.NET includes several options that help you preserve data on both a per-page basis and an application-wide basis. Types of State Management There are two basic types of State Management: 1. Client-Based State Management 2. S...

Hajan Selmani

Microsoft BizSpark Bootcamp

11/13/2011 by Hajan Selmani · 0 · 257

Microsoft BizSpark Bootcamp is an event where techie start-ups can learn about the advantages of using Microsoft technologies for doing business and what the program offers them as a set of resources that will enormously help them start their business. I will be speaking at BizSpark Bootcamp event on topic Cloud Computing - Windows Azure where I will show what is Cloud Computing, Windows...

Vivek Thakur

Friend assembly reference is invalid. Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations.

11/10/2011 by Vivek Thakur · 0 · 261

I was compiling one of my friend's project and noticed this error: Friend assembly reference is invalid. Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations. This error came up because one of the projects in my solution had a friend assembly reference to the other, and I needed strong signed assemblies for this project. To fix this error: 1. G...

Vivek Thakur

Free Books Libary from Packtpub

11/9/2011 by Vivek Thakur · 0 · 202

I want to let you know about a great opportunity that enables you to improve your skills and learn about the latest developments in the IT industry. PacktLib, Packt’s online digital library, is now free for Indian residents, professionals and students outside of office hours. Between 8pm and 8am during weekdays and throughout the weekends, PacktPub account holders will have unrestr...

Vivek Thakur

How to boot Windows 7 from a VHD file

10/21/2011 by Vivek Thakur · 0 · 342

Boot from Windows 7 VHD file If you have an exisiting Windows installation, and want to install a fresh one from a VHD file, you can easily do that using "bcdedit' tool in Windows 7. Lets say you have a Windows 7 VHD file located in your "D:" drive at this location: D:\Windows7.vhd. Now you need to add this VHD in your Windows boot load menu. Follow these steps: 1. Open DOS command promp...

Vivek Thakur

Programmers in India: Poor quality

10/11/2011 by Vivek Thakur · 9 · 1401

Programming standards in India: Hard to find talent We are trying to hire a few high quality developers for our India office and are having a hard time finding skilled developers . I feel sad to see so many so-called "developers" responding to our job posts, but in reality most of them do not even know the basic foundations of software development. We have strict quality improvement guid...

Chandradev Prasad

How to debug store procedure in sqlserver ?

10/11/2011 by Chandradev Prasad · 2 · 404

Hi If you are working with sqlserver database then debugging process in store procedure is very simple as compare to other database. If you are working with sqlserver 2005 then you can debug the store procedure like Sqlserver 2005 debugging process If you are working with sqlserver 2008 then you can debug the store procedure like Sqlserver 2008 debugging process I hope it will help to so...

Hajan Selmani

ASP.NET has new BETA Website

10/7/2011 by Hajan Selmani · 1 · 456

Today I saw that the new asp.net beta website is available. Basically, there are layout changes and content reorganization. The platform on which is build is not changed since it was working perfectly fine previously and now. Take a look at it: http://beta.asp.net

Hajan Selmani

Orchard 1.3 Available

10/5/2011 by Hajan Selmani · 0 · 364

Yesterday, 4th of October 2011, Orchard 1.3 was released! If you want to learn what's new in this version, have a look at the following two blog posts: Orchard 1.3 Released - Forms API, Tokens, Content Item Preview So what's new in Orchard 1.3? Once I dig more in the new version, I will blog about anything I may find ineresting. Regards, Hajan

Vivek Thakur

XBox 360 vs Sony PlayStation 3: Which one should you buy?

10/3/2011 by Vivek Thakur · 0 · 452

XBox 360 vs Sony PlayStation 3: Which one should you buy? Having hands-on gaming experience on both Microsoft XBox 360 and Sony PlayStation 3, I would recommend PlayStation 3 for new buyers. Why? Here are my arguments: 1. HDD Space issue: XBox 360 will NOT let you use any external USB hard drive with more than 16 GB space. For example, if you want to add more space to save games/demos et...

Hajan Selmani

ASP.NET MVC4 Developer Preview - New Mobile Application and Web Application Templates

10/2/2011 by Hajan Selmani · 2 · 1137

In the past weeks I have been playing with Windows 8 Developer Preview and ASP.NET MVC4, VS.NET 2011 and other new Developer Preview stuff that has been made available by Microsoft. Several days ago I have installed ASP.NET MVC4 Developer Preview in my Windows 7 OS and VS.NET 2010. There are lot of new stuff, but before going in deeper details, lets first pass through the very first thin...

Top Blog Contributors

Product Spotlight

ASP.NET Hosting Spotlight

Join CodeAsp.Net for FREE Today!

It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.

enter your email address:

 

Quick Vote

What kind of email newsletter would you prefer to receive from CodeAsp.Net?