Tuesday, May 26, 2009

.Net Error Message: .Net 3.0 & 3.5 installation errors

Error Message:

[11/21/07,08:52:42] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,08:55:36] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,09:10:30] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,09:10:36] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0a is not installed.
[11/21/07,09:12:06] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,09:12:11] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0a is not installed.
[11/21/07,09:25:28] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,09:25:32] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0a is not installed.
[11/21/07,09:38:12] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,09:38:17] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0a is not installed.
[11/21/07,09:43:32] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,09:56:03] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,09:56:08] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0a is not installed.
[11/21/07,10:15:10] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,10:38:23] Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603
[11/21/07,10:38:28] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0a is not installed.

Solution:

First - 1

Stop the World Wide Web service.
Open IIS and try to stop it from there, or goto My Computer. Right Click. Manage Services.
Then close service named World Wide Web Publishing.

Second- 2

1. Uninstall IIS service and related components.
2. Reinstall IIS server and asp.net etc.
3. Install .Net 3.5 .

Error Message: Internet Explorer cannot open the internet site [the requested URL like www.interviewsworld.com]. Operation aborted

Visiting a Web page in Internet Explorer 5.5/6.0/7.0 will give this error. Internet Explorer cannot open the Internet site http://www.interviewsworld.com. Operation aborted.

This error will not occur in firefox, opera and Internet Explorer 8.0.

Cause:

This problem occur if a DIV element is a child container in a BODY element, and a SCRIPT block in the DIV element tries to modify the BODY element that is a parent container for the DIV element.

Dot Net Error : Internet Explorer cannot open the internet site [www.sample.com]. Operation aborted

Description: Visiting a Web page in Internet Explorer 5.5/6.0/7.0 will give this error. Internet Explorer cannot open the Internet site http://.com. Operation aborted. This error will not occur in firefox, opera and Internet Explorer 8.0.
Cause: This problem occur if a DIV element is a child container in a BODY element, and a SCRIPT block in the DIV element tries to modify the BODY element that is a parent container for the DIV element.

Save this page as a html file and run in internet explorer will generate same error.








This problem generally occurs while implementation Ajax, or using Modal Dialog box.

Solutions

Solution 1: Upgrade to Internet Explorer 8

Solution 2: Try to change the position of div tag.
Place script tag outside of div tag.






Solution 3: If you are getting error in below senario.







Try to move the position of script tag.







Friday, May 22, 2009

Reading last line in text file

StreamReader streamReader = new StreamReader("HereWillBeYourTextFilePath");
ArrayList lines = new ArrayList();

string line;

while ((line = streamReader.ReadLine()) != null)
{
lines.Add(line);
}
streamReader.Close();

if (lines.Count > 0)
{
Response.Write(lines[lines.Count - 1].ToString());
}

Shared Button