Tuesday, March 13, 2012

Server Application Unavailable

Issue:

We are hosting multiple Community Server sites on the same IP address using a host header running on 1.1 .NET Framework; also on the same server we are hosting sites running on the 2.0 .NET Framework. We average about three days of the site running and than we get 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.

Fix:

Basically we would fix this by opening a command window and go to C:\WINDOWS\Microsoft.NET\Framweork\v1.1.4322 and typing aspnet_regiis-s W3SVC/1/ROOT/ and here we would enter the folder name or application. In this case we have named the folder VisualStudioToolsForOffice.com to reflect the domain visualstudiotoolsforoffice.com, so the full command would be aspnet_regiis -s W3SVC/1/ROOT/VisualStudioToolsForOffice.com. On doing this, we get this error:

C:\WINDOWS/Microsoft.NET\Framework\v1.14322>aspnet_regiis -s W3SVC/1/ROOT/visualstudiotoolsforoffice.com

Start registering ASP.NET scriptmap (1.1.4322.0) recursively at W3SVC/1/ROOT/visualstudiotoolsforoffice.com) is not a valid we application.

Installation stopped because the specified path (W3SVC/1/ROOT/visualstudiotoolsforoffice.com) is not a valid web application.

Here is the only way we have found to fix this: go to the Internet Information Services Manager (IIS), select websites and select the webite (in this case, visualstudiotooldforoffice.com), right click and select properties, select the ASP.NET tab, go to the drop down box for the ASP.NET version, select the 2.0 version and click apply and ok; right click and then selct properties, select the ASP.NET tab, then go to the drop down box for the ASP.NET version, select the 1.1 version and click apply and okay. Finally - NO server application unavailable error!. Any help from the community on a better resolve on this would be greatly appreciated, as going and repairing this every three days is a nuisance. Thanks in advance.

Okay, someone correct me if I am wrong, to install the scritpmaps, go to c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 and then type:

aspnet_regiis -s W3SVC/1/ROOT/VisualStudioToolsForOffice

VisualStudioToolsForOffice being the name of the application, so why am I still getting:

Start registering ASP.NET scriptmap (1.1.4322.0) recursively at W3SVC/1/ROOT/visualstudiotoolsforoffice.com) is not a valid we application.

Installation stopped because the specified path (W3SVC/1/ROOT/visualstudiotoolsforoffice.com) is not a valid web application.


I had the same problem and found a solution. First go to de IIS Admin Console, click on Web Sites a look for the identifier (a big number) of the site you want to upgrade de scriptmap. Then open a Command Line Console and typeaspnet_regiis -lk. It shows you the versions of the frameworks for each site. On this list find the line with the same identifier. Then type aspnet_regiis -s W3SVC/[identifier]/root/[optional if you have nested sites o directories].
Finally typeaspnet_regiis -lk again to check if it worked correctly. That's all.
LKZ:

Hello Kevin,

As far as I know, If you're trying to map that application to run under ASP.NET 1.1, I think you are doing it in the proper way.

I do not understand why raises that error. Those are the instructions stated in the Beta Doc and a book I've checked a few minutes ago about remapping web apps.
However, it may happen that the something could change about this since then, and the documentation it is not updated yet.
Good luck.


LuKiller wrote:

I had the same problem and found a solution. First go to de IIS Admin Console, click on Web Sites a look for the identifier (a big number) of the site you want to upgrade de scriptmap. Then open a Command Line Console and typeaspnet_regiis -lk. It shows you the versions of the frameworks for each site. On this list find the line with the same identifier. Then type aspnet_regiis -s W3SVC/[identifier]/root/[optional if you have nested sites o directories].
Finally typeaspnet_regiis -lk again to check if it worked correctly. That's all.
LKZ:


Okay, I ran aspnet_regiis -lk to list the site's and identifiers. Than I ran aspnet_regiis -s W3SVC/1903649274/root/VisualStudioToolsForOffice to set the scriptmaps and I still got the "Installation stopped because the specified path W3SVC/1903649274/root/visualstudiotoolsforoffice) is not a valid web application".
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis /lk
W3SVC/ 1.1.4322.0
W3SVC/1/ROOT/ 1.1.4322.0
W3SVC/1/ROOT/CertSrv/ 2.0.50215.44
W3SVC/1154147039/root/ 2.0.50215.44
W3SVC/1771324749/root/ 2.0.50215.44
W3SVC/1818541202/root/ 2.0.50215.44
W3SVC/1903649274/root/ 1.1.4322.0
W3SVC/53732026/root/ 1.1.4322.0
W3SVC/701625/root/ 1.1.4322.0

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis -s W3SVC/1903649274/r
oot/visualstudiotoolsforoffice
Start registering ASP.NET scriptmap (1.1.4322.0) recursively at W3SVC/1903649274
/root/visualstudiotoolsforoffice.
Installation stopped because the specified path (W3SVC/1903649274/root/visualstu
diotoolsforoffice) is not a valid web application.

0 comments:

Post a Comment