event id 1310 error code 3007 on sbs2011

Hello all,
            Ever since the update rollup 2 for exchange 2010 sp3 and it got installed on the sbs2011 server last Friday I'm having some issues with the server. The initial issue was that the error 3 system.servicemodel was popping up constantly.
Below is the error it came up with:

- System

  - Provider

   [ Name]  System.ServiceModel
  - EventID 3

   [ Qualifiers]  49154
   Level 2
   Task 5
   Keywords 0x80000000000000
  - TimeCreated

   [ SystemTime]  2013-08-26T22:42:19.000000000Z
   EventRecordID 1864110
   Channel Application
   Computer TSGSERVER.tsg.local
  - Security

   [ UserID]  S-1-5-18

- EventData

   System.ServiceModel.ServiceActivationException: The service '/EWS/Exchange.asmx' cannot be activated due to an exception during compilation. The exception message is: The type initializer for 'Microsoft.Exchange.Services.Wcf.MessageInspectorManager' threw an exception.. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Exchange.Services.Wcf.MessageInspectorManager' threw an exception. ---> System.IO.FileNotFoundException: Could not find file 'C:\Windows\TEMP\4rwc7pyl.dll'. File name: 'C:\Windows\TEMP\4rwc7pyl.dll' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources) at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources) at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources) at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) at Microsoft.Exchange.Services.Wcf.MessageInspectorManager..cctor() --- End of inner exception stack trace --- at Microsoft.Exchange.Services.Wcf.MessageInspectorManager..ctor() at Microsoft.Exchange.Services.Wcf.MessageInspectorBehavior.ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) at System.ServiceModel.ServiceHostBase.InitializeRuntime() at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) --- End of inner exception stack trace --- at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)

I tried to search for an answer and it said to restore web.config file from a healthy backup because the current web.config file might be corrupted on the server. So I restored the web.config file in both following folders:
C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa
C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\exchweb\ews

The error 3 stopped appearing but a new warning started popping up constantly:
event id 1310 asp.net v2.0.20727.0.
Below is the error log file of the error:

Event code: 3007
Event message: A compilation error has occurred.
Event time: 27/08/2013 10:23:14 AM
Event time (UTC): 27/08/2013 12:23:14 AM
Event ID: beb70252b7a44c468bf5a004cd960907
Event sequence: 3
Event occurrence: 1
Event detail code: 0
Application information:
    Application domain: /LM/W3SVC/1/ROOT/EWS-44-130220365940228000
    Trust level: Full
    Application Virtual Path: /EWS
    Application Path: C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\exchweb\EWS\
    Machine name: SERVER
Process information:
    Process ID: 8956
    Process name: w3wp.exe
    Account name: NT AUTHORITY\SYSTEM
Exception information:
    Exception type: HttpCompileException
    Exception message: External component has thrown an exception.
Request information:
    Request URL: https://mail......com.au:443/ews/exchange.asmx 
    Request path: /ews/exchange.asmx
    User host address:
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\SYSTEM
Thread information:
    Thread ID: 15
    Thread account name: NT AUTHORITY\SYSTEM
    Is impersonating: False
    Stack trace:    at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
   at System.Web.Compilation.BuildManager.CompileGlobalAsax()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)

I haven't had much luck trying to fix this warning. I was thinking of doing a full restore from Last Thursday using veeam but I'd like to exhaust all options before something like that is done. Any assistance would be much appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Esteban BlancoPresidentCommented:
OK.  After reading the entire error:

w3wp.exe is an application poo (l I assume for Outlook Web Access or OWA) and that is throwing an exeption within how it compiles .NET within HTTP (experts feel free to chime in).

First things I would tell you to look at:

-What .NET version is the app pool in?
-Have you tried doing a repair on the installation (uninstall SP3) and see if that fixes the problem?

I am trying to gather more information.  Keep in mind that if this was caused by a Microsoft Update, you should be able to call Microsoft for free because it was an update.  Just make sure before you call (if you decide to do that) that you had all of your t's crossed and i's dotted as far as having the right hardware and that the server was "update ready" if that makes sense.

Give me more information to see if I can help you here but Microsoft should be able to help you for free.  :)

Let me know.

Philip ElderTechnical Architect - HA/Compute/StorageCommented:
SP3UR2 has issues on SBS 2011 Standard.

You may be able to uninstall the update but make sure to have a good backup prior to doing so.

Once the update is removed run the Fix My Network Wizard to verify that everything on SBS is as it should be.

maxkelpieAuthor Commented:
Please find attached the picture of all .net versions for each app pool.
The funny thing here is that I had an owa issue a few weeks back and I was on the phone with microsoft for 8 hours and went through 3 different level tech support guys. They exhausted all options and the owa still couldn't be fixed. So they decided to install sp3 for exchange 2010 and it fixed all issues. After a week rollup update 1 for exchange 2010 sp3 was installed and the server was running fine. Last Friday rollup update 2 was installed and it started to produce issues. The major issue was the event id 3 system.servicemodel but I managed to repair part of it. I wouldn't want to uninstall the rollup update 2 yet as I feel that it will break something else due to the current errors I'm having.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

maxkelpieAuthor Commented:
Hi Phillip, thanks for your input. I just refreshed my page and your comment just popped up. Looks like I might have to uninstall the RU2 and hopefully it fixes it.
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
And then run the FMNW please.

maxkelpieAuthor Commented:
I found some time this morning to uninstall the RU2 and it was uninstalled successfully. After the server reboot I was able to get into owa. Owa is working now, thanks for that.
I am having other issues which I was affraid might happen.
Error 3 System.ServiceModel popped up again...

Also, I just tried to set out of office in owa and it is coming up with the following error:

Server Error in '/ecp' 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 -->

        <customErrors mode="Off"/>

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 -->

        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
Does this mean I have to reset the ecp virtual directory?
If I reset it will it produce issues?
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
Please run the Internet Address Wizard, then the Fix My Network Wizard, and then the Third Party Trusted Certificates wizard to reseat any third party SSL you may have on RWA/OWA/ETC.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.