August 20, 2006

Data Grid in

Data Grid in dot net is a very useful component. You dont have to mix your code in html table to represent your date in table format. Sorting paging is also provided.
having very useful features

we just bind data and it automatically make table format.
Details in next post. I am getting late.


August 10, 2006

A project with an Output Type of Class Library cannot be started directly.

A project with an Output Type of Class Library cannot be started directly.
In order to debug this project, go to the Debugging tab under Configuration Settings in Project Properties, and set the Start Action to Start External Program or Start URL. Alternatively, you can add a non-library project to this solution that uses a reference to this project and set it as the startup project.

Category: Visual Studio
Solution: A libray project can't be a startup project becoz it does not contain aspx page.
Problem is you have selected start up project a library project so when you run project vs try to run a libary which can not be run. So to remove this problem right click on the website-project under your solution and select "Set as startup project" now press f5 visual studio will not show you error now. for further query comment below.

August 07, 2006

Exception Handling C#

Exception Handling. Exception are common in programs like dividebyzero, nullreference, tns: timeout

What is exception handling:
Exception handling is structural way of handling the errors and exception.

How to use:
Exception are handled in C# using try, catch, finally optional is throw. The code that can throw exception is inserted in try block

int var=0;
int var2=10;
Catch(dividebyzeroexception ex)
//do appropriate action


//any connection close etc//

file close etc.

Catch block handled the exception you can do appropriate action when exception occur.
finally will exceute always whether exception occur or not.
so always place code that must exceute. like connection close;
whether exception occur or not we must close the connection.
possible blocks are:


//c sharp code

catch(OracleException ex)
//c# code,
catch(NullReferenceException ex)
//code: re throw with inner exception or message
throw ex;
catch(Exception ex)
throw new Exception("sql server insertion error",ex);

//Here Exception is catch at last because it is parent class of all the exception classes. so if any child parent relation ship exists between any of the exception, child will be catch above the parent.

Exception: because it is base class of every class. because it will catch all the exception if placed first and code not reachable compiler error will be there.
so if you have Arithmatic Exception and dividebyzero exception place dividebyzero
first then arithmatic exception. coz arithmatic will catch all the error related to mathematic calculations

try and finally can co-exist without catch block but only one finally can be there
//Following is error
{} finally


finally block will execute in both cases whether exception occurs or not.

and finally always executes.

for example if you put "return;" keyword in the try or catch, it will not create any problem in execution path, and code in finally will execute

You can post comments if any query is there.

Windows Vista gets hacked

Despite being touted as the most secure version of the Windows operating series,
Microsoft's upcoming Vista has already been hacked at a hackers' conference last week,
reports CNET
Microsoft handed out early copies of their new operating system to attendees at the

Black Hat hacker conference last week, inviting them to take their best shot at hacking into

August 06, 2006

The Microsoft .NET Framework

What is dot net.
Dot net or .Net is umbrella terms of all Microsoft technologies that are mainly for code sharing b/w different programming languages. like C#, Vb.Net Every Dot net language compiles to IL code( intermediate Lanuage). At runtime a runtime compiler JIT just in time compiler compiles the code into native instructions.

What is .NET Framework
The Microsoft .NET Framework consist of rich code library and CLR. Provide base for creating web application, windows application. Windows service, web services console application many more. Common Language Run Time provides basic
Garbage collection
Code security

What is IL.
Il or intermediate Language is Microsoft's new language. We did not work directly into this language. any program written in any dot net language is compiled to IL code. This is used for interoperability between different languages

What is C#
C# or c sharp sometime called c hash is Micosot's new language which target dot net technolgoy. It syntax is combination of C++ and Java. Every language is based on another language so is C# . It is improved version of C++ and Java language. for example B->C->C++->Visuabl C++->Java->C#


August 05, 2006

hash.web is denied

Problem:hash.web is denied

Description:Access to the path
ASP.NET Files\.. hash.web"
is denied.

description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

exception Details: System.UnauthorizedAccessException: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\hash.web" is denied.

This is actually occur when the hash.web is locked by indexing service.
when runtime access this file because of locking exception is thrown.

so stop the indexing service from control panel->administrator tools->services

and right click on indexing service and select stop.

Other if any antivirus (Norton etc),Google desktop or MSN desktop is running stop them also.

this will definitly solve the problem


August 03, 2006

object reference not set to an instance of an object

This exception occur when your are try to access a property,field of a object which
is not intialized to some valid value. Means it is null

or a dynamic object which does not exists

For example:

object a=null;


This will throw exception "object reference not set to an instance of an object"

Raj 1.1 Vs 2.0

The Big Story
An Overview of the New Services, Controls, and Features in ASP.NET 2.0

New data controls
Administration and roles
Personalization and themes
Coding and compilation options
Master Pages
Data Source Controls
Themes and Skins
New Controls
The GridView and DetailsView Controls
New in Administration
Membership Service
Login Controls
Role Manager
SQL Cache Dependencies
New Dynamic Compilation Model
Precompiling and Deploying Without Source
New Code Separation Model
Client Callback Manager
Validation Groups
Cross-page Posting
if any details required please comment.

August 02, 2006

Tyroo-Ad network

We have just finished our long running project. Tyroo-An Ad Network.
This is basically for persons who want to advertiser and person who want to earn money by enjoying Tyroo ads on his side.
We have competition with Google Adsense/Adword in this model.

Click Here to reach Tyroo.
We have made this project from Heart.

Earn Money- Depends on Traffic/Clicks on your website.
We have very good system for fraud clicks.

You can get Very good CPC On Tyroo.
We have CPC model.

It is just one month old and 200 odd sites are publishing

Tyroo ads. A gr8 achievment of Tyroo.

Premier sites like Indiatimes,monsterindia, indiainfo,bhartmatrimony are some
to name.

I will be discussing Tyroo with you.
As we will got further

Cheers for Tyroo-Tech Team