Tuesday, March 25, 2008

Last week I got a chance to go to the VS 2008 Launch event in Abu Dhabi, It’s a nice time to be there. the event starts with all the basic formulates and the launch is for VS 2008, SQL Server 2008 , Server 2008 , there were 2 sessions one is for developer and another is for Professional , so I went for developer session . first they start with the features in framework and then they explained about the other features in asp.net and they are more concentrated on team server , that’s the very important feature, there is lot new in SQL server 2008 also with more features for reporting and charting . they had included chat and reports in SQL 2008 , I remember in my previous company we bought that , and its very powerful with gadgets with dashboard and they also launched a new product called expression suit , it has expression blend, expression media, expression web media and another one I forget it ..

We had a good breakfast in the morning and very good lunch … at last they gave a trial pack for VS 2008, SQL Server 2008, Server 2008 and expression suit , in the next once I will write deeply about the technologies

Monday, February 18, 2008

Writing the Error or any log message to Event log of the OS

string sSource, sLog, sEvent;
sSource = "Error Occur While Inserting Employee Record";
sLog = "Application";
sEvent = "Insert";

if (!EventLog.SourceExists(sSource))
EventLog.CreateEventSource(sSource,sLog);
EventLog.WriteEntry(sSource,sEvent);

Tuesday, February 05, 2008

Error Message
The Current time on this computer adn the current time on the network are different for moreinformation about Date/Time Propertoes, see Help and Support . To log on , Contact your system administrator


Cause : This error will occuer when you convert you client PC to the Domain sever . There is the date / time difference between the server and the client .

Solution : ASk your administrator to check the correct time in the server and the client or if your are the administrator log in to the client and set the time as if in the server

Sunday, January 20, 2008

Specified argument was out of the range of valid values. Parameter name: 9

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.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: 9

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: 9]
System.Web.UI.WebControls.ListControl.set_SelectedValue(String value) +152
Masters.Web.LedgerMasterAddEdit.Display() +32
Masters.Web.LedgerMasterAddEdit.Page_Load(Object sender, EventArgs e) +1710
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

________________________________________
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Reason: Inadequate master record. This type of error will usual occur in the dropdown list / list boxes, for example if we have 3 records which need to be bind to the dropdown list
1 – India
2 – UAE
3 – USA

Now we had bind to the control and we had select (UAE) and saved in the transaction file after that we had removed UAE from that list and now when we try to edit the record from the transaction file , it will look the record UAE . if it is not there in the list we will get this error

Solution: Add the record UAE to the list

Saturday, January 19, 2008

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30560: 'Global' is ambiguous in the namespace 'IIMS'.

Source Error:


Line 31: _
Line 32: Public Class Global_asax
Line 33: Inherits IIMS.Global
Line 34:
Line 35: Private Shared __initialized As Boolean = false

Source File: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\iims\6d858d13\228f9de0\y2eps_v4.0.vb Line: 33


Reason: There is an assembly in the project with the same class name; we can find the assembly in the bin folder

Solution : Just delete the assembly from the bin folder and rebuild the solution .This kind for error occur some time when we may change the assembly name for some reason and forget the delete the assembly from the bin folder

Wednesday, January 16, 2008

It’s a Great News from Microsoft that they had given provision to see the source code of the .Net Framework libraries. It had been announced on October and now it has been released , and its only for VS2008 . for detailed view you can see that in Scott’s Blog
What are the stages in Software release, what does it actually mean?

Alpha: Alpha refers to the very early release, which is typically very buggy and only released to few people internal to the organization. It is helpful, in development,

Beta: Its is the first version released out side the Organization with bugs.

Gamma or Release Candidate:
At this phase the product is also most completed and up to release with very minimum bugs. When the product reached this stage it means that, there won’t be any further change or update in the code

Gold or Release: It’s the final finished product, with only few fixes. After this stage the product will be stable for release in the market

Tuesday, December 11, 2007

To display the content in the web browser status bar

<’''body id="samplepage" onload ="window.status='First Page'">
<''form id="Form1" method="post" runat="server">

<''/form>
<’''/body>
Disabling the right click in the webpage
" <" body id="”samplepage”" oncontextmenu="return false;">

<"/body>"
Getting the client browser / system details through ASP.NET

HttpBrowserCapabilities bc=new HttpBrowserCapabilities();
bc=Request.Browser;
Response.Write(bc.Cookies.ToString());
Response.Write(bc.ActiveXControls.ToString());
Response.Write(bc.Platform.ToString());

Here HttpBrowserCapabilities is an class which is available in the system.web namespace ,first create an object and assign the client browser to it then we can get the details of the client browser with this the different property available

Response.Write( HttpContext.Current.Server.MachineName ) ;


This is used to get the client system name