Showing posts with label Others. Show all posts
Showing posts with label Others. Show all posts

Monday, April 19, 2010

Some ways...

Chicago' 10
"Little fight"
yellow Dream (New York)

Drops of Life

Thursday, October 9, 2008

"Server Application Unavailable" IIS 6



Running multiple versions of the Framework in ASP.NET
seeprate the application pools according to different vesions of .Net framewrok with application.

Microsoft has done a great job of allowing multiple versions of the framework to run side by side. Version v1.0, v1.1 and v2.0 can all run together at the same time on the same server. Each site, or even a vdir (Virtual Directory) within a site can have its own version of the framework installed. Simply install the framework version on your server and it will be available to you. The install itself is quite small, for example the v2.0 download is 22MB.

The Microsoft homepage for the .NET Framework is:
http://msdn.microsoft.com/netframework/downloads/updates/default.aspx

There are a couple gotchas to consider with running multiple versions of the framework side by side. First, let's dig into IIS a bit. Following is a snapshot of Windows Task Manager on an IIS5 (Windows 2000) server:



Notice the 3 processes called aspnet_wp.exe. There is one per version of the framework. (v1.0, v1.1 and v2.0) If a process for a particular version of the framework doesn't exist, as soon as it's needed, a new process will be spun up. This allows multiple versions of the framework to live beside each other in IIS5. No effort, no pain . . . it just works.

Now consider the following IIS6 (Windows Server 2003) screenshot:



Notice that there aren't any aspnet_wp.exe processes anymore, but there are w3wp.exe processes instead. IIS6 was an impressive upgrade that brought with it some new concepts. One key new concept is Application Pools. A system administrator is able to create groups of sites and place each site in its own group. Whenever a site needs to run, a w3wp.exe process will start for its application pool if it hasn't already started. This brings with it a number of welcome security, performance and management advantages. You are now able to specify your own Identity User which can be unique per Application Pool.

In IIS6, the aspnet_wp.exe process is done away with, and the work that it did is now done within each w3wp.exe process. This has the same advantages I mentioned previously, but it has one big gotcha!

You cannot run more than one version of the framework in the same application pool in IIS6.

While multiple versions of the framework can co-exist on the same server, they can't co-exist in the same process. If you attempt to run multiple versions of the framework at the same time in the same process, the 2nd version that tries to run will fail with the following error:

Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.


You will also receive Event ID 1062 in Event Viewer that says:

"It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process."

What to do

Fortunately, the solution is easy enough. Simply create a new application pool and move the site that you will be upgrading to that pool. You can even base it off of the existing one if you don't have the password memorized for the existing one. This is all done within IIS. Once you have placed the site or vdir in its own application pool, then you are ready to upgrade to the new framework version.

I'll cover the different ways to move between different versions of the framework in another blog within the next few days, but the key thing to walk away with now is that multiple versions of the framework cannot co-exist in the same worker process at the same time. IIS5 didn't have any issue with this, but IIS6 requires that each version be in its own app pool.

Refrence : http://weblogs.asp.net/owscott/archive/2006/01/26/436607.aspx

Wednesday, September 24, 2008

Msg 6602, Level 16, State 2, Procedure sp_xml_preparedocument, Line 1

Msg 6602, Level 16, State 2, Procedure sp_xml_preparedocument, Line 1
The error description is 'Whitespace is not allowed at this location.'.
Msg 8179, Level 16, State 5, Procedure XXXXX, Line 45
Could not find prepared statement with handle 15.
sp_xml_removedocument: The value supplied for parameter number 1 is invalid.

Whe you parsing xml document, xml tag string contain invalide character li ",&,use

http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3576805&SiteID=1

XmlReaderSettings readerSetttings = new XmlReaderSettings();
readerSetttings.CheckCharacters = false;

best decribe
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1723005&SiteID=1

Wednesday, July 30, 2008

itunes.msi not found when tryinh to unistall Itune

when trying to update or unistall Itunes on windows, it complains about a missing Itunes.msi file. If you Browse for this file however, you’ll find it in the location that it’s supposed to be (C:\Program Files\Apple Software Update\Packages).
I tried a few things to fix this, including downloading the latest iTunes from Apple’s website. After about 30 minutes of digging, I discovered that there’s a simple fix.
1) Download the Windows Installer Cleanup Utility
2) Install the program (MS Office not required!)
3) Run the program from Start->All Programs->Windows Install Cleanup Utility
or run msicuu2.exe
4) Click on iTunes, and then click the “Remove” button -( if again same error comes just ingnor & go next step )
5 ) Run the iTunes installer
All in all the process took about 2 minutes, and once again download and listen favorite podcasts