vtsinc
asked on
IIS runtime error in /OMA application, reregistering ASP.NET fails
Windows Server 2003 SP1 with Exchange Server 2003 SP1 and Microsoft.NET Framework v1.1.4322
When browsing to http://mail.servername.local/exchange, the following error is generated.
Server Error in '/OMA' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Runtime Error
Microsoft KB 818486 discusses this issue, and documents reinstallation of ASP.NET to fix security information. When running the procedure for reinstalling ASP.NET, the problem is not resolved, and the ASPNETSetup.Log file contains an entry:
2005-05-25 11:35:29 Failure Getting IIS6 specific SID: GetPrincipalSIDfailed with HRESULT8000ffff: 'Catastrophic failure '
Any suggestions leading to resolution would be greatly appreciated.
Thanks,
Mike
When browsing to http://mail.servername.local/exchange, the following error is generated.
Server Error in '/OMA' Application.
--------------------------
Runtime Error
Microsoft KB 818486 discusses this issue, and documents reinstallation of ASP.NET to fix security information. When running the procedure for reinstalling ASP.NET, the problem is not resolved, and the ASPNETSetup.Log file contains an entry:
2005-05-25 11:35:29 Failure Getting IIS6 specific SID: GetPrincipalSIDfailed with HRESULT8000ffff: 'Catastrophic failure '
Any suggestions leading to resolution would be greatly appreciated.
Thanks,
Mike
ASKER
The error when opening OMA (after authenticating) is one I believe related to permissions on the server for ASP scripts to run, but I am not an IIS expert. I have verified all permissions referenced in related Exchange documentation, and since became confinced this is more of an IIS iss, which let to the attempted reinstallation of ASP.NET components, the process which led to the original error I posted.
Below is the text of the web page displayed to IIS on the client when accessing OMA. I'll not have access to the server for another 18 hours for more detail from that perspective.
Thanks,
Mike
Server Error in '/OMA' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustomp age.htm"/>
</system.web>
</configuration>
Below is the text of the web page displayed to IIS on the client when accessing OMA. I'll not have access to the server for another 18 hours for more detail from that perspective.
Thanks,
Mike
Server Error in '/OMA' Application.
--------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustomp
</system.web>
</configuration>
This is a generic error page given to external browsers for ASP.Net errors.
What we really need is the output generated when browsing the OMA application from the server itself - that should give us a much more descriptive error message.
Dave Dietz
What we really need is the output generated when browsing the OMA application from the server itself - that should give us a much more descriptive error message.
Dave Dietz
ASKER
Dave,
Your assistance is appreciated! Below is the server-side browsing output.
Mike
Server Error in '/OMA' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
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: CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Fr amework\v1 .1.4322\Te mporary ASP.NET Files\oma\e7e8207d\559314f 1\tu9x3x6f .dll' -- 'Access is denied. '
Source Error:
[No relevant source lines]
Source File: Line: 0
Show Detailed Compiler Output:
c:\winnt\system32\inetsrv> "c:\winnt\microsoft.net\fr amework\v1 .1.4322\cs c.exe" /t:library /utf8output /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\91708 413\00986a 3a_1e3ac30 1\adodb.dl l" /R:"c:\winnt\assembly\gac\ system.dra wing\1.0.5 000.0__b03 f5f7f11d50 a3a\system .drawing.d ll" /R:"c:\winnt\assembly\gac\ system.xml \1.0.5000. 0__b77a5c5 61934e089\ system.xml .dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\0f2bc 709\00663c ee_8118c40 1\microsof t.exchange .oma.useri nterface.d ll" /R:"c:\winnt\assembly\gac\ system.ent erpriseser vices\1.0. 5000.0__b0 3f5f7f11d5 0a3a\syste m.enterpri seservices .dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\47c97 4a2\00390b ed_8118c40 1\interop. tools.dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\fb41b f85\00f08b dd_8118c40 1\microsof t.exchange .oma.uisvr .dll" /R:"c:\winnt\assembly\gac\ system.web .services\ 1.0.5000.0 __b03f5f7f 11d50a3a\s ystem.web. services.d ll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\c3d34 ff9\00016f d0_8118c40 1\microsof t.exchange .oma.dpsvr .dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\e1680 78f\007adb cc_8118c40 1\microsof t.exchange .oma.prefe rencingser verresourc es.dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\35020 280\00663c ee_8118c40 1\microsof t.exchange .oma.excha ngedatapro vider.dll" /R:"c:\winnt\assembly\gac\ system.web .mobile\1. 0.5000.0__ b03f5f7f11 d50a3a\sys tem.web.mo bile.dll" /R:"c:\winnt\assembly\gac\ system.web .ui.mobile controls.a dapters\1. 1.0.0__b03 f5f7f11d50 a3a\system .web.ui.mo bilecontro ls.adapter s.dll" /R:"c:\winnt\assembly\gac\ system.dat a\1.0.5000 .0__b77a5c 561934e089 \system.da ta.dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\a275b 361\00771f e1_8118c40 1\microsof t.exchange .oma.datap roviderint erface.dll " /R:"c:\winnt\assembly\gac\ system.web \1.0.5000. 0__b03f5f7 f11d50a3a\ system.web .dll" /R:"c:\winnt\assembly\gac\ system\1.0 .5000.0__b 77a5c56193 4e089\syst em.dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\a8987 466\00771f e1_8118c40 1\microsof t.exchange .oma.prefe rencing.dl l" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \temporary asp.net files\oma\e7e8207d\559314f 1\assembly \dl2\d9fc1 bde\00986a 3a_1e3ac30 1\microsof t.exchange .oma.traci ng.dll" /R:"c:\winnt\microsoft.net \framework \v1.1.4322 \mscorlib. dll" /out:"C:\WINNT\Microsoft.N ET\Framewo rk\v1.1.43 22\Tempora ry ASP.NET Files\oma\e7e8207d\559314f 1\tu9x3x6f .dll" /debug- /optimize+ /warnaserror /w:1 "C:\WINNT\Microsoft.NET\Fr amework\v1 .1.4322\Te mporary ASP.NET Files\oma\e7e8207d\559314f 1\tu9x3x6f .0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.10.6310.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Fr amework\v1 .1.4322\Te mporary ASP.NET Files\oma\e7e8207d\559314f 1\tu9x3x6f .dll' -- 'Access is denied. '
Show Complete Compilation Source:
Line 1: //------------------------ ---------- ---------- ---------- ---------- ---------- ----
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.2300
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9: //------------------------ ---------- ---------- ---------- ---------- ---------- ----
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Special ized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpress ions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls ;
Line 25:
Line 26:
Line 27: public class global_asax : Microsoft.Exchange.OMA.Use rInterface .Global {
Line 28:
Line 29: private static bool __initialized = false;
Line 30:
Line 31: public global_asax() {
Line 32: if ((ASP.global_asax.__initia lized == false)) {
Line 33: ASP.global_asax.__initiali zed = true;
Line 34: }
Line 35: }
Line 36: }
Line 37: }
Line 38:
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
Your assistance is appreciated! Below is the server-side browsing output.
Mike
Server Error in '/OMA' Application.
--------------------------
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: CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Fr
Source Error:
[No relevant source lines]
Source File: Line: 0
Show Detailed Compiler Output:
c:\winnt\system32\inetsrv>
Microsoft (R) Visual C# .NET Compiler version 7.10.6310.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Fr
Show Complete Compilation Source:
Line 1: //------------------------
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.2300
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9: //------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Special
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpress
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls
Line 25:
Line 26:
Line 27: public class global_asax : Microsoft.Exchange.OMA.Use
Line 28:
Line 29: private static bool __initialized = false;
Line 30:
Line 31: public global_asax() {
Line 32: if ((ASP.global_asax.__initia
Line 33: ASP.global_asax.__initiali
Line 34: }
Line 35: }
Line 36: }
Line 37: }
Line 38:
--------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the suggestions. The problem still exists after running the command,
and in reviewing the logs I have one error:
(From the ASPNETSetup.Log file after running "aspnet_regiis.exe -i")
Failure Getting IIS6 specific SID: GetPrincipalSIDfailed with HRESULT8000ffff: 'Catastrophic failure '
Permissions on the temoprary asp.net folders are correct, and are inherited from the parent. I am *assuming*
that this means that permissions on the parent are correct as well, but will have to check tomorrow to confirm that is
actually the case. Based upon the failure message it seems as if there is a mismatch between an account and
its SID, which is where I am stumped. Googling the failure message doesn't turn up much that I've found to be
relevant, but I shall keep digging to see if there is a way to perhaps reset the association of the SID and the
"network service" account (or similar).
I know I am grabbing at a few straws here, but thanks for your input!
Mike
and in reviewing the logs I have one error:
(From the ASPNETSetup.Log file after running "aspnet_regiis.exe -i")
Failure Getting IIS6 specific SID: GetPrincipalSIDfailed with HRESULT8000ffff: 'Catastrophic failure '
Permissions on the temoprary asp.net folders are correct, and are inherited from the parent. I am *assuming*
that this means that permissions on the parent are correct as well, but will have to check tomorrow to confirm that is
actually the case. Based upon the failure message it seems as if there is a mismatch between an account and
its SID, which is where I am stumped. Googling the failure message doesn't turn up much that I've found to be
relevant, but I shall keep digging to see if there is a way to perhaps reset the association of the SID and the
"network service" account (or similar).
I know I am grabbing at a few straws here, but thanks for your input!
Mike
Wow.
I'm stumped. :-(
I've never seen the GetPrincipalSIDfailed error come up with 8000ffff.
I'm afraid I don't have a clue where to go next.
Might be best to call Microsoft and see if they can help.....
Dave Dietz
I'm stumped. :-(
I've never seen the GetPrincipalSIDfailed error come up with 8000ffff.
I'm afraid I don't have a clue where to go next.
Might be best to call Microsoft and see if they can help.....
Dave Dietz
ASKER
Dave,
Thanks for you help. Your answer is technically correct, so I awarding the points even though the problem was eventually fixed via other means.
As it turns out we ended up contacting Microsoft. Their Exchange people said everything was configured correctly for OMA, so they brought in
the IIS support group. After a couple of hours doing various things such as reinstalling ASP.NET (which we tried before) we eventually hit on
the following sequence which magically fixed everything.
Change the account for the application pool that OMA runs under from "Network Service" to LOCAL SYSTEM". Restart IIS.
Recycle worker processes for OMA app pool. OMA now works under the LOCAL SYSTEM account.
Change the account for the app pool back to run under "Network Service". Restart IIS.
Recycle worker processes again.
After that the application works properly.
So, after much ado, everything is fine. Thanks again!
Mike
Thanks for you help. Your answer is technically correct, so I awarding the points even though the problem was eventually fixed via other means.
As it turns out we ended up contacting Microsoft. Their Exchange people said everything was configured correctly for OMA, so they brought in
the IIS support group. After a couple of hours doing various things such as reinstalling ASP.NET (which we tried before) we eventually hit on
the following sequence which magically fixed everything.
Change the account for the application pool that OMA runs under from "Network Service" to LOCAL SYSTEM". Restart IIS.
Recycle worker processes for OMA app pool. OMA now works under the LOCAL SYSTEM account.
Change the account for the app pool back to run under "Network Service". Restart IIS.
Recycle worker processes again.
After that the application works properly.
So, after much ado, everything is fine. Thanks again!
Mike
What is the exact error you get when trying to hit OMA?
Dave Dietz