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