server application unavailable

  • hi all,

    we having some issues with .net 2008 application.Recently developers developed one appliation in .net 2008.If we configure application in IIS.

    It is throwing an error message

    Applications developed in .net 2005 are working fine.

    configurations:

    SQL 2005 standard edition (SP 2), windows 2003 (SP 2) and even if we tried in client system(Win XP) we getting same error..

    ERROR :- server application unavailable.

    The web application you are attempting to access on this web site is currently unavailable.

    Administrator Note:-An error message detailing the cause of this specific request failure can be found in applciation event log of the web server.....................

    please look in to below event id what we are getting

    event id -1334

    Failed to initialize the AppDomain:/LM/W3SVC/1/Root/EMPMATRIX

    Exception: System.IO.FileLoadException

    Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

    StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

    at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

    at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

    at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

    at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)

    at System.Activator.CreateInstance(String assemblyName, String typeName)

    at System.AppDomain.CreateInstance(String assemblyName, String typeName)

    at System.AppDomain.CreateInstance(String assemblyName, String typeName)

    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    ------------------------------------------------------

    event id- 1089

    Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80070005 Access is denied.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    -----------------------------------------------------------------------

    event id-1000

    aspnet_wp.exe (PID: 3036) stopped unexpectedly.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    please do the needful

    thanks,

    kumar.

  • srimkumarp (12/3/2008)


    hi all,

    we having some issues with .net 2008 application.Recently developers developed one appliation in .net 2008.If we configure application in IIS.

    It is throwing an error message

    Applications developed in .net 2005 are working fine.

    configurations:

    SQL 2005 standard edition (SP 2), windows 2003 (SP 2) and even if we tried in client system(Win XP) we getting same error..

    ERROR :- server application unavailable.

    The web application you are attempting to access on this web site is currently unavailable.

    Administrator Note:-An error message detailing the cause of this specific request failure can be found in applciation event log of the web server.....................

    please look in to below event id what we are getting

    event id -1334

    Failed to initialize the AppDomain:/LM/W3SVC/1/Root/EMPMATRIX

    Exception: System.IO.FileLoadException

    Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

    StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

    at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

    at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

    at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

    at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)

    at System.Activator.CreateInstance(String assemblyName, String typeName)

    at System.AppDomain.CreateInstance(String assemblyName, String typeName)

    at System.AppDomain.CreateInstance(String assemblyName, String typeName)

    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    ------------------------------------------------------

    event id- 1089

    Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80070005 Access is denied.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    -----------------------------------------------------------------------

    event id-1000

    aspnet_wp.exe (PID: 3036) stopped unexpectedly.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    please do the needful

    thanks,

    kumar.

    You dont have the permissions on the GAC. These permissions are set up separately.

    Normally you don't encounter permission errors when installing to the global assembly cache (GAC). Today I did, even though I was logged on as a member of the administrators group (not that being an administrator is a guarantee of much).

    If you navigate using Windows Explorer to %windir%\assembly, what you see is the view displayed by the assembly cache viewer. If you go up a folder and right click the assembly folder and click properties you won't see the security tab you normally see. The assembly cache viewer (Shfusion.dll) is a Windows shell extension that affects how Windows Explorer lets you view the folder.

    You have two options at this point -

    1. Alter the behaviour of Windows Explorer with regard to the GAC. Hannes Pavelka gives a nice post on how to do this.

    2. Open a command window and use Cacls. Cacls allows you to both view and alter the permissions on any folder, and subfolders, for any account, including the GAC, as long as you are running it as an account that has permission to do so. Sounds like a russian doll of permissions, doesn't it?

    I chose option 2 as I don't like altering the expected behaviour. This can cause confusion further down the line.

    In order to get round the installation issue I ran the following at a command window -

    CACLS %WINDIR%\assembly /e /t /p administrators:W

    this gave members of the administrators builtin group write permissions on the GAC, and the subfolders, and sorted out the installation issues.

    kshitij kumar
    kshitij@krayknot.com
    www.krayknot.com

  • thanks for reply kshitij kumar

    still we are getting the same error

    after executing the below command

    CACLS %WINDIR%\assembly /e /t /p administrators:W

    please do the needful

  • This type of problem occurs when there is problem with the web.config file. I think you have copied the web.config file from some where. I would suggest to look into your web.config file again or you can search google for a web.config file for .net 2008. If you still face the problem let me know I will provide web.config file in which you need to change the database address.

  • hi all, thanks for giving suggestions.

    At last i got the solution, the problem is in application side. developers add some

    enchancements in coding and also issues in server side

    In SQL server 2005,.net 2003 applications (.net framework 2.0 )are running on windows 2003 platform,

    applications developed in .net 2008 can't be run on same server becoz this version requires .net frame work 3.5 to run the applications and .net 2003 appilcations requires .net 2.0 frame work. so here i found compatability issues in server..

    thanks,

    kumar.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply