Neil Parton
asked on
Issue with Remote Web Access on Windows Server 2012
I thank you for any help you may be able to offer in advance.
I have an issue with a Windows 2012 Server running IIS 7. Â The issue is related to Remote Web Acess where we are getting the login page and can login without issues from any device inside or external from the office. Â However, when a shared folder is clicked, we receive an error. Â The server says an unexpected error has occurred Please try again... (see attached file error.jpg)
This is the same on IE, Chrome and Safari several different versions tried.
The strange thing is that on an Android, Apple phone we do not receive this error and the site works perfectly and we can download / upload files as you would expect. Â So the issue seems to be with the desktop site, I have tried clicking the mobile site on the PC's and still receive the error.
I have noticed in the server Event Log an ASP issue with event ID 1309, which normally corresponds to a memory issue, but this isnt the case with this server. Â I am certian that is it an issue with one of the handlers or an item in the web.config that it cannot find but I don't know where to start.
Here is the ASP Error
 Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 27/07/2018 17:29:25
Event time (UTC): 27/07/2018 16:29:25
Event ID: cef56db889cb4b528389f6b206 9b6b41
Event sequence: 133
Event occurrence: 26
Event detail code: 0
Â
Application information:
  Application domain: /LM/W3SVC/1/ROOT/Remote-2- 1317718214 23840339
  Trust level: Full
  Application Virtual Path: /Remote
  Application Path: C:\Program Files\Windows Server\Bin\WebApps\RemoteA ccess\
  Machine name: SERVER
Â
Process information:
  Process ID: 15688
  Process name: w3wp.exe
  Account name: NT AUTHORITY\NETWORK SERVICE
Â
Exception information:
  Exception type: FileLoadException
  Exception message: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
  at System.RuntimeTypeHandle.G etTypeByNa me(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
  at System.RuntimeTypeHandle.G etTypeByNa me(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
  at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
  at System.Web.Compilation.Bui ldManager. GetType(St ring typeName, Boolean throwOnError, Boolean ignoreCase)
  at System.Web.Configuration.H andlerFact oryCache.G etTypeWith Assert(Str ing type)
  at System.Web.Configuration.H andlerFact oryCache.G etHandlerT ype(String type)
  at System.Web.Configuration.H andlerFact oryCache.. ctor(Strin g type)
  at System.Web.HttpApplication .GetFactor y(String type)
  at System.Web.HttpApplication .Materiali zeHandlerE xecutionSt ep.System. Web.HttpAp plication. IExecution Step.Execu te()
  at System.Web.HttpApplication .ExecuteSt epImpl(IEx ecutionSte p step)
  at System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously)
Â
Â
Request information:
  Request URL: https://vpn.***:443/Remote/BuiltIns/FS/FileOperationService.svc/jsÂ
  Request path: /Remote/BuiltIns/FS/FileOp erationSer vice.svc/j s
  User host address: 91.84.*
  User: M****
  Is authenticated: True
  Authentication Type: Forms
  Thread account name: M*
Â
Thread information:
  Thread ID: 66
  Thread account name: M*
  Is impersonating: False
  Stack trace:   at System.RuntimeTypeHandle.G etTypeByNa me(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
  at System.RuntimeTypeHandle.G etTypeByNa me(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
  at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
  at System.Web.Compilation.Bui ldManager. GetType(St ring typeName, Boolean throwOnError, Boolean ignoreCase)
  at System.Web.Configuration.H andlerFact oryCache.G etTypeWith Assert(Str ing type)
  at System.Web.Configuration.H andlerFact oryCache.G etHandlerT ype(String type)
  at System.Web.Configuration.H andlerFact oryCache.. ctor(Strin g type)
  at System.Web.HttpApplication .GetFactor y(String type)
  at System.Web.HttpApplication .Materiali zeHandlerE xecutionSt ep.System. Web.HttpAp plication. IExecution Step.Execu te()
  at System.Web.HttpApplication .ExecuteSt epImpl(IEx ecutionSte p step)
  at System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously)
Â
Â
Custom event details:
-----
The web config in the root directory of RemoteAccess is like below
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <configSections>
  <section name="wssg.logging" type="Microsoft.WindowsSer verSolutio ns.Diagnos tics.Loggi ng.Configu ration.Log gingConfig urationSec tion, WssgCommon, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" />
  <section name="wssg.rdProvider" type="Microsoft.WindowsSer verSolutio ns.Web.RDP .RdPluginS ection, Wssg.Web.RDP" />
  <section name="wssg.sqmProvider" type="Microsoft.WindowsSer verSolutio ns.Web.SQM .SqmProvid erSection, Wssg.Web.Common" />
  <section name="wssg.storageProvider " type="Microsoft.WindowsSer verSolutio ns.Web.Sto rage.Stora geProvider Section, Wssg.Web.Common" />
  <section name="wssg.searchProvider" type="Microsoft.WindowsSer verSolutio ns.Web.Sea rch.Search ProviderSe ction, Wssg.Web.Common" />
  <section name="wssg.fileOperationCo ntextProvi der" type="Microsoft.WindowsSer verSolutio ns.Web.Fil eAccess.Fi leOperatio nContextPr oviderSect ion, Wssg.FileAccess" />
  <section name="wssg.sharedContentHa ndlerProvi der" type="Microsoft.WindowsSer verSolutio ns.Web.Sha redContent HandlerPro viderSecti on, Wssg.Web.Internal" />
 </configSections>
 <runtime>
  <assemblyBinding xmlns="urn:schemas-microso ft-com:asm .v1">
   <dependentAssembly>
    <assemblyIdentity name="System.Web.Extension s" publicKeyToken="31bf3856ad 364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.1.0. 0" newVersion="3.5.0.0" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="System.Web.Extension s.Design" publicKeyToken="31bf3856ad 364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.1.0. 0" newVersion="3.5.0.0" />
   </dependentAssembly>
   <qualifyAssembly partialName="WssgCommon" fullName="WssgCommon, Version=6.2.0.0, publicKeyToken=31bf3856ad3 64e35, culture=neutral" />
   <dependentAssembly>
    <assemblyIdentity name="WssgCommon" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\WssgCommon.dll" />
   </dependentAssembly>
   <qualifyAssembly partialName="Sku" fullName="Sku, Version=6.2.0.0, publicKeyToken=31bf3856ad3 64e35, culture=neutral" />
   <dependentAssembly>
    <assemblyIdentity name="Sku" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Sku.dll" />
   </dependentAssembly>
   <qualifyAssembly partialName="SkuResources" fullName="SkuResources, Version=6.2.0.0, publicKeyToken=31bf3856ad3 64e35, culture=neutral" />
   <dependentAssembly>
    <assemblyIdentity name="SkuResources" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\SkuResources.dl l" />
   </dependentAssembly>
   <qualifyAssembly partialName="Wssg.Web" fullName="Wssg.Web, Version=6.2.0.0, publicKeyToken=31bf3856ad3 64e35, culture=neutral" />
   <qualifyAssembly partialName="WSSG.Web" fullName="Wssg.Web, Version=6.2.0.0, publicKeyToken=31bf3856ad3 64e35, culture=neutral" />
   <dependentAssembly>
    <assemblyIdentity name="Wssg.Web" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.Web.dll" />
   </dependentAssembly>
   <qualifyAssembly partialName="Wssg.Web.Comm on" fullName="Wssg.Web.Common, Version=6.2.0.0, publicKeyToken=31bf3856ad3 64e35, culture=neutral" />
   <dependentAssembly>
    <assemblyIdentity name="Wssg.Web.Common" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.Web.Common .dll" />
   </dependentAssembly>
   <qualifyAssembly partialName="Wssg.FileAcce ss" fullName="Wssg.FileAccess, Version=6.2.0.0, publicKeyToken=31bf3856ad3 64e35, culture=neutral" />
   <dependentAssembly>
    <assemblyIdentity name="Wssg.FileAccess" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.FileAccess .dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="AntiXssLibrary" publicKeyToken="d127efab8a 9c114f" culture="neutral" />
    <codeBase version="3.1.3524.16873" href="file:///C:\Program Files\Windows Server\Bin\AntiXssLibrary. dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="CertManaged" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\CertManaged.dll " />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="DevicesOM" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\DevicesOM.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="MachineIdentityObjec tModel" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\MachineIdentity ObjectMode l.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="ProviderFramework" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\ProviderFramewo rk.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="WssgCertMgmt" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\WssgCertMgmt.dl l" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="UserObjectModel" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\UserObjectModel .dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="StorageObjectModel" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\StorageObjectMo del.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="IdentityManaged" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\IdentityManaged .dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="Common" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Common.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="RdConfig" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\RdConfig.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="SqmProvider" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\SqmProvider.dll " />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="AuthLib" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\AuthLib.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="SettingsObjectModel" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\SettingsObjectM odel.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="Wssg.RDAccessManager " publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.RDAccessMa nager.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="Wssg.RDAccessManager ObjectMode l" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.RDAccessMa nagerObjec tModel.dll " />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="StorageResources" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\StorageResource s.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="MailServiceCommon" publicKeyToken="31bf3856ad 364e35" culture="neutral" />
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\MailServiceComm on.dll" />
   </dependentAssembly>
  </assemblyBinding>
 </runtime>
 <system.web>
  <machineKey validationKey="CA8881A2B73 779CD0AE6D 7779FD73BA CDCBA3ACCC 73086AA7C8 B8A58A450E 4C8024A8C6 0D2801813A 50CF1F8558 AFC403B646 885B985320 6CEBF2CF22 D771776" decryptionKey="EE78B17DDE6 BF26EE2B46 CD3EA4A5FB 80B6F7AD97 13CAF487C2 1E40BBDC57 C80" validation="SHA1" decryption="AES" />
  <authentication mode="Forms">
   <forms name="RemotePortalAuth" loginUrl="logon" protection="All" path="/" defaultUrl="homepage" timeout="30" requireSSL="true" />
  </authentication>
  <authorization>
   <deny users="?" />
   <allow users="*" />
  </authorization>
  <membership defaultProvider="WssgMembe rshipProvi der">
   <providers>
    <clear />
    <add name="WssgMembershipProvid er" type="Microsoft.WindowsSer verSolutio ns.Web.Sec urity.HSBS Membership Provider, Wssg.Web.MembershipProvide r" />
   </providers>
  </membership>
  <roleManager enabled="true" defaultProvider="WssgRoleP rovider" cacheRolesInCookie="true">
   <providers>
    <clear />
    <add name="WssgRoleProvider" type="Microsoft.WindowsSer verSolutio ns.Web.Sec urity.HSBS RoleProvid er, Wssg.Web.RoleProvider" />
   </providers>
  </roleManager>
  <profile defaultProvider="HSBSUserP rofileProv ider" inherits="Microsoft.Window sServerSol utions.Web .Profile.W ssgProfile Base, Wssg.Web.Internal">
   <providers>
    <add name="HSBSUserProfileProvi der" type="Microsoft.WindowsSer verSolutio ns.Web.Pro file.HSBSU serProfile Provider, Wssg.Web.UserProfileProvid er" description="User profile provider" />
   </providers>
   <properties>
    <add name="FsLastVisitedShares" type="System.Collections.G eneric.Lis t`1[System .String]" serializeAs="Xml" />
    <add name="GadgetReorderingData " type="System.Collections.O bjectModel .Collectio n`1[System .String]" serializeAs="Xml" />
    <add name="GadgetPersonalizatio nData" type="System.Byte[]" serializeAs="Xml" />
    <add name="RdpDoesRedirectDrive s" type="System.Nullable`1[Sy stem.Boole an]" serializeAs="String" />
    <add name="RdpDoesRedirectSound " type="System.Nullable`1[Sy stem.Boole an]" serializeAs="String" />
    <add name="RdpDoesRedirectPrint er" type="System.Nullable`1[Sy stem.Boole an]" serializeAs="String" />
    <add name="RdpDoesRedirectClipB oard" type="System.Nullable`1[Sy stem.Boole an]" serializeAs="String" />
    <add name="RdpConnectionSpeed" type="System.String" serializeAs="String" />
    <add name="RdpResolutionFullScr een" type="System.Nullable`1[Sy stem.Boole an]" serializeAs="String" />
      <add name="RdpResolutionMultiMo n" type="System.Nullable`1[Sy stem.Boole an]" serializeAs="String" />
    <add name="RdpResolutionWidth" type="System.Int32" serializeAs="String" />
    <add name="RdpResolutionHeight" type="System.Int32" serializeAs="String" />
    <add name="RdpLastConnectedComp uter" type="System.Collections.O bjectModel .Collectio n`1[System .String]" serializeAs="Xml" />
    <add name="LastViewedPhoto" type="String" serializeAs="String" />
    <add name="LastViewedMusic" type="String" serializeAs="String" />
    <add name="LastViewedVideo" type="String" serializeAs="String" />
    <add name="MediaMusicGroupByUse rSetting" type="String" serializeAs="String" />
   </properties>
  </profile>
  <trace enabled="true" requestLimit="100" pageOutput="false" traceMode="SortByTime" localOnly="false" />
  <sessionState mode="InProc" cookieless="false" timeout="30" />
  <!-- see also forms timeout -->
  <httpRuntime maxRequestLength="2097151" executionTimeout="86400" requestValidationMode="3.5 " />
  <!--
      The <customErrors> section enables configuration
      of what to do if/when an unhandled error occurs
      during the execution of a request. Specifically,
      it enables developers to configure html error pages
      to be displayed in place of a error stack trace.
    -->
  <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage /Error.htm l" />
  <pages enableSessionState="true" validateRequest="false" controlRenderingCompatibil ityVersion ="3.5" clientIDMode="AutoID">
  </pages>
  <webParts>
   <personalization defaultProvider="GadgetPer sonalizati onProvider ">
    <providers>
     <add name="GadgetPersonalizatio nProvider" type="Microsoft.WindowsSer verSolutio ns.Web.Rem oteAccessS ite.BuiltI ns.Homepag e.GadgetPe rsonalizat ionProvide r " />
    </providers>
   </personalization>
  </webParts>
  <!--
      Set compilation debug="true" to insert debugging
      symbols into the compiled page. Because this
      affects performance, set this value to true only
      during development.
    -->
  <compilation debug="false" targetFramework="4.0">
   <assemblies> Â
     <add assembly="WssgCommon, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" />
     <add assembly="Wssg.Web.Common, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" />
     <add assembly="Wssg.FileAccess, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" />
   </assemblies>
  </compilation>
    <identity impersonate="false" />
 </system.web>
 <!--
    The system.webServer section is required for running ASP.NET AJAX under Internet
    Information Services 7.0.  It is not necessary for previous version of IIS.
  -->
 <system.webServer>
  <modules>
   <!-- We need to re-register modules because of interaction with routing.
   Modules that are fired only for "managed" requests will not be fired for requests such as "/home".
   Therefore, they need to be re-registered without precondition (TODO, jiyang: WILL THERE BE A PERF IMPACT?)
   -->
   <remove name="Session" />
   <remove name="UrlAuthorization" />
   <remove name="DefaultAuthenticatio n" />
   <remove name="FormsAuthentication" />
   <remove name="Profile" />
   <remove name="RoleManager" />
   <remove name="ScriptModule-4.0" />
   <remove name="UrlRoutingModule-4.0 " />
   <remove name="ServiceModel-4.0" />
   <remove name="ServiceModel" />
   <add name="Session" type="System.Web.SessionSt ate.Sessio nStateModu le" />
   <add name="UrlAuthorization" type="System.Web.Security. UrlAuthori zationModu le" />
   <add name="FormsAuthentication" type="System.Web.Security. FormsAuthe nticationM odule" preCondition="" />
   <add name="DefaultAuthenticatio n" type="System.Web.Security. DefaultAut henticatio nModule" preCondition="" />
   <add name="Profile" type="System.Web.Profile.P rofileModu le" preCondition="" />
   <add name="RoleManager" type="System.Web.Security. RoleManage rModule" preCondition="" />
   <add name="RequestValidator" type="Microsoft.WindowsSer verSolutio ns.Web.Rem oteAccessS ite.Reques tValidatio nModule" preCondition="" />
   <add name="ServiceModel-4.0" type="System.ServiceModel. Activation .ServiceHt tpModule, System.ServiceModel.Activa tion, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" preCondition="" />
   <add name="UrlRoutingModule-4.0 " type="System.Web.Routing.U rlRoutingM odule" preCondition="" />
   <add name="ScriptModule-4.0" type="System.Web.Handlers. ScriptModu le, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" preCondition="" />
  </modules>
  <security>
   <requestFiltering>
    <requestLimits maxAllowedContentLength="2 147482624" />
    <hiddenSegments>
     <add segment="custom.xml" />
     <add segment="webaddin.xml" />
    </hiddenSegments>
   </requestFiltering>
      <authentication>
        <anonymousAuthentication enabled="true" userName="" />
        <windowsAuthentication enabled="false" />
        <basicAuthentication enabled="false" />
      </authentication>
      <access sslFlags="Ssl" />
  </security>
      <httpProtocol>
   <customHeaders>
    <clear />
    <add name="X-UA-Compatible" value="IE=9" />
   </customHeaders>
  </httpProtocol>
 </system.webServer>
 <wssg.logging name="Default" enabled="true" defaultCategory="RemoteAcc ess">
  <listeners>
   <add name="DefaultTraceListener " type="Microsoft.WindowsSer verSolutio ns.Diagnos tics.Loggi ng.TraceLi steners.Ro tatingLogT raceListen er, WssgCommon, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" fileName="RemoteAccess.log " directory="C:\ProgramData\ Microsoft\ Windows Server\Logs\\WebApps" />
  </listeners>
  <sources>
   <add level="Information" name="RemoteAccess">
    <listeners>
     <add name="DefaultTraceListener " />
    </listeners>
   </add>
  </sources>
  <predefinedsources>
   <unmatched level="Information" name="Unmatched">
    <listeners>
     <add name="DefaultTraceListener " />
    </listeners>
   </unmatched>
  </predefinedsources>
 </wssg.logging>
 <wssg.rdProvider type="Microsoft.WindowsSer verSolutio ns.Web.RDP .SBSRdProv ider, Wssg.Web.RDP.RdProvider" />
 <wssg.sqmProvider type="Microsoft.WindowsSer verSolutio ns.Web.SQM .SqmProvid er, Wssg.Web.SQMProvider" />
 <wssg.storageProvider type="Microsoft.WindowsSer verSolutio ns.Web.Sto rage.HSBSS torageProv ider, Wssg.Web.StorageProvider" />
 <wssg.searchProvider type="Microsoft.WindowsSer verSolutio ns.Web.Fil eAccess.Lo calSearchP rovider, Wssg.FileAccess" />
 <wssg.fileOperationContext Provider type="Microsoft.WindowsSer verSolutio ns.Web.Fil eAccess.Rw aFileOpera tionContex tProvider, Wssg.Web.FileAccess" />
 <wssg.sharedContentHandler Provider providerTypes="Microsoft.W indowsServ erSolution s.Web.Medi a.MediaStr eamHandler Provider, RemoteMediaService" />
 <location path="ErrorPage/Error.html ">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="mobile">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="m">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="d">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="Customization/Partne r">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
Â
 <location path="Customization/Admin" >
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="SharedContent">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <access sslFlags="None" />
   </security>
  </system.webServer>
 </location>
Â
 <system.serviceModel>
  <serviceHostingEnvironment aspNetCompatibilityEnabled ="true" minFreeMemoryPercentageToA ctivateSer vice="0" />
  <bindings>
   <webHttpBinding>
    <binding name="default">
     <security mode="Transport" />
    </binding>
   </webHttpBinding>
  </bindings>
 </system.serviceModel>
 <!-- The settings in globalAppSettings.config will be merged with the local appSettings (if it exists). -->
 <appSettings file="C:\Program Files\Windows Server\Bin\globalAppSettin gs.config" >
  <add key="Microsoft.WSSG.SqmSet tingsProvi der" value="Sku.dll!Microsoft.W indowsServ erSolution s.Common.S kuSpecific SqmSetting sProvider: :GetSkuSpe cificSqmSe ttingsProv ider" />
 </appSettings>
</configuration>
If you could offer any help I would be extremely grateful
I have an issue with a Windows 2012 Server running IIS 7. Â The issue is related to Remote Web Acess where we are getting the login page and can login without issues from any device inside or external from the office. Â However, when a shared folder is clicked, we receive an error. Â The server says an unexpected error has occurred Please try again... (see attached file error.jpg)
This is the same on IE, Chrome and Safari several different versions tried.
The strange thing is that on an Android, Apple phone we do not receive this error and the site works perfectly and we can download / upload files as you would expect. Â So the issue seems to be with the desktop site, I have tried clicking the mobile site on the PC's and still receive the error.
I have noticed in the server Event Log an ASP issue with event ID 1309, which normally corresponds to a memory issue, but this isnt the case with this server. Â I am certian that is it an issue with one of the handlers or an item in the web.config that it cannot find but I don't know where to start.
Here is the ASP Error
 Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 27/07/2018 17:29:25
Event time (UTC): 27/07/2018 16:29:25
Event ID: cef56db889cb4b528389f6b206
Event sequence: 133
Event occurrence: 26
Event detail code: 0
Â
Application information:
  Application domain: /LM/W3SVC/1/ROOT/Remote-2-
  Trust level: Full
  Application Virtual Path: /Remote
  Application Path: C:\Program Files\Windows Server\Bin\WebApps\RemoteA
  Machine name: SERVER
Â
Process information:
  Process ID: 15688
  Process name: w3wp.exe
  Account name: NT AUTHORITY\NETWORK SERVICE
Â
Exception information:
  Exception type: FileLoadException
  Exception message: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
  at System.RuntimeTypeHandle.G
  at System.RuntimeTypeHandle.G
  at System.Type.GetType(String
  at System.Web.Compilation.Bui
  at System.Web.Configuration.H
  at System.Web.Configuration.H
  at System.Web.Configuration.H
  at System.Web.HttpApplication
  at System.Web.HttpApplication
  at System.Web.HttpApplication
  at System.Web.HttpApplication
Â
Â
Request information:
  Request URL: https://vpn.***:443/Remote/BuiltIns/FS/FileOperationService.svc/jsÂ
  Request path: /Remote/BuiltIns/FS/FileOp
  User host address: 91.84.*
  User: M****
  Is authenticated: True
  Authentication Type: Forms
  Thread account name: M*
Â
Thread information:
  Thread ID: 66
  Thread account name: M*
  Is impersonating: False
  Stack trace:   at System.RuntimeTypeHandle.G
  at System.RuntimeTypeHandle.G
  at System.Type.GetType(String
  at System.Web.Compilation.Bui
  at System.Web.Configuration.H
  at System.Web.Configuration.H
  at System.Web.Configuration.H
  at System.Web.HttpApplication
  at System.Web.HttpApplication
  at System.Web.HttpApplication
  at System.Web.HttpApplication
Â
Â
Custom event details:
-----
The web config in the root directory of RemoteAccess is like below
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <configSections>
  <section name="wssg.logging" type="Microsoft.WindowsSer
  <section name="wssg.rdProvider" type="Microsoft.WindowsSer
  <section name="wssg.sqmProvider" type="Microsoft.WindowsSer
  <section name="wssg.storageProvider
  <section name="wssg.searchProvider"
  <section name="wssg.fileOperationCo
  <section name="wssg.sharedContentHa
 </configSections>
 <runtime>
  <assemblyBinding xmlns="urn:schemas-microso
   <dependentAssembly>
    <assemblyIdentity name="System.Web.Extension
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="System.Web.Extension
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.
   </dependentAssembly>
   <qualifyAssembly partialName="WssgCommon" fullName="WssgCommon, Version=6.2.0.0, publicKeyToken=31bf3856ad3
   <dependentAssembly>
    <assemblyIdentity name="WssgCommon" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\WssgCommon.dll"
   </dependentAssembly>
   <qualifyAssembly partialName="Sku" fullName="Sku, Version=6.2.0.0, publicKeyToken=31bf3856ad3
   <dependentAssembly>
    <assemblyIdentity name="Sku" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Sku.dll" />
   </dependentAssembly>
   <qualifyAssembly partialName="SkuResources"
   <dependentAssembly>
    <assemblyIdentity name="SkuResources" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\SkuResources.dl
   </dependentAssembly>
   <qualifyAssembly partialName="Wssg.Web" fullName="Wssg.Web, Version=6.2.0.0, publicKeyToken=31bf3856ad3
   <qualifyAssembly partialName="WSSG.Web" fullName="Wssg.Web, Version=6.2.0.0, publicKeyToken=31bf3856ad3
   <dependentAssembly>
    <assemblyIdentity name="Wssg.Web" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.Web.dll" />
   </dependentAssembly>
   <qualifyAssembly partialName="Wssg.Web.Comm
   <dependentAssembly>
    <assemblyIdentity name="Wssg.Web.Common" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.Web.Common
   </dependentAssembly>
   <qualifyAssembly partialName="Wssg.FileAcce
   <dependentAssembly>
    <assemblyIdentity name="Wssg.FileAccess" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.FileAccess
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="AntiXssLibrary" publicKeyToken="d127efab8a
    <codeBase version="3.1.3524.16873" href="file:///C:\Program Files\Windows Server\Bin\AntiXssLibrary.
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="CertManaged" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\CertManaged.dll
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="DevicesOM" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\DevicesOM.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="MachineIdentityObjec
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\MachineIdentity
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="ProviderFramework" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\ProviderFramewo
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="WssgCertMgmt" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\WssgCertMgmt.dl
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="UserObjectModel" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\UserObjectModel
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="StorageObjectModel" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\StorageObjectMo
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="IdentityManaged" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\IdentityManaged
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="Common" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Common.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="RdConfig" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\RdConfig.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="SqmProvider" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\SqmProvider.dll
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="AuthLib" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\AuthLib.dll" />
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="SettingsObjectModel"
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\SettingsObjectM
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="Wssg.RDAccessManager
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.RDAccessMa
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="Wssg.RDAccessManager
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\Wssg.RDAccessMa
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="StorageResources" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\StorageResource
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="MailServiceCommon" publicKeyToken="31bf3856ad
    <codeBase version="6.2.0.0" href="file:///C:\Program Files\Windows Server\Bin\MailServiceComm
   </dependentAssembly>
  </assemblyBinding>
 </runtime>
 <system.web>
  <machineKey validationKey="CA8881A2B73
  <authentication mode="Forms">
   <forms name="RemotePortalAuth" loginUrl="logon" protection="All" path="/" defaultUrl="homepage" timeout="30" requireSSL="true" />
  </authentication>
  <authorization>
   <deny users="?" />
   <allow users="*" />
  </authorization>
  <membership defaultProvider="WssgMembe
   <providers>
    <clear />
    <add name="WssgMembershipProvid
   </providers>
  </membership>
  <roleManager enabled="true" defaultProvider="WssgRoleP
   <providers>
    <clear />
    <add name="WssgRoleProvider" type="Microsoft.WindowsSer
   </providers>
  </roleManager>
  <profile defaultProvider="HSBSUserP
   <providers>
    <add name="HSBSUserProfileProvi
   </providers>
   <properties>
    <add name="FsLastVisitedShares"
    <add name="GadgetReorderingData
    <add name="GadgetPersonalizatio
    <add name="RdpDoesRedirectDrive
    <add name="RdpDoesRedirectSound
    <add name="RdpDoesRedirectPrint
    <add name="RdpDoesRedirectClipB
    <add name="RdpConnectionSpeed" type="System.String" serializeAs="String" />
    <add name="RdpResolutionFullScr
      <add name="RdpResolutionMultiMo
    <add name="RdpResolutionWidth" type="System.Int32" serializeAs="String" />
    <add name="RdpResolutionHeight"
    <add name="RdpLastConnectedComp
    <add name="LastViewedPhoto" type="String" serializeAs="String" />
    <add name="LastViewedMusic" type="String" serializeAs="String" />
    <add name="LastViewedVideo" type="String" serializeAs="String" />
    <add name="MediaMusicGroupByUse
   </properties>
  </profile>
  <trace enabled="true" requestLimit="100" pageOutput="false" traceMode="SortByTime" localOnly="false" />
  <sessionState mode="InProc" cookieless="false" timeout="30" />
  <!-- see also forms timeout -->
  <httpRuntime maxRequestLength="2097151"
  <!--
      The <customErrors> section enables configuration
      of what to do if/when an unhandled error occurs
      during the execution of a request. Specifically,
      it enables developers to configure html error pages
      to be displayed in place of a error stack trace.
    -->
  <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage
  <pages enableSessionState="true" validateRequest="false" controlRenderingCompatibil
  </pages>
  <webParts>
   <personalization defaultProvider="GadgetPer
    <providers>
     <add name="GadgetPersonalizatio
    </providers>
   </personalization>
  </webParts>
  <!--
      Set compilation debug="true" to insert debugging
      symbols into the compiled page. Because this
      affects performance, set this value to true only
      during development.
    -->
  <compilation debug="false" targetFramework="4.0">
   <assemblies> Â
     <add assembly="WssgCommon, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3
     <add assembly="Wssg.Web.Common,
     <add assembly="Wssg.FileAccess,
   </assemblies>
  </compilation>
    <identity impersonate="false" />
 </system.web>
 <!--
    The system.webServer section is required for running ASP.NET AJAX under Internet
    Information Services 7.0.  It is not necessary for previous version of IIS.
  -->
 <system.webServer>
  <modules>
   <!-- We need to re-register modules because of interaction with routing.
   Modules that are fired only for "managed" requests will not be fired for requests such as "/home".
   Therefore, they need to be re-registered without precondition (TODO, jiyang: WILL THERE BE A PERF IMPACT?)
   -->
   <remove name="Session" />
   <remove name="UrlAuthorization" />
   <remove name="DefaultAuthenticatio
   <remove name="FormsAuthentication"
   <remove name="Profile" />
   <remove name="RoleManager" />
   <remove name="ScriptModule-4.0" />
   <remove name="UrlRoutingModule-4.0
   <remove name="ServiceModel-4.0" />
   <remove name="ServiceModel" />
   <add name="Session" type="System.Web.SessionSt
   <add name="UrlAuthorization" type="System.Web.Security.
   <add name="FormsAuthentication"
   <add name="DefaultAuthenticatio
   <add name="Profile" type="System.Web.Profile.P
   <add name="RoleManager" type="System.Web.Security.
   <add name="RequestValidator" type="Microsoft.WindowsSer
   <add name="ServiceModel-4.0" type="System.ServiceModel.
   <add name="UrlRoutingModule-4.0
   <add name="ScriptModule-4.0" type="System.Web.Handlers.
  </modules>
  <security>
   <requestFiltering>
    <requestLimits maxAllowedContentLength="2
    <hiddenSegments>
     <add segment="custom.xml" />
     <add segment="webaddin.xml" />
    </hiddenSegments>
   </requestFiltering>
      <authentication>
        <anonymousAuthentication enabled="true" userName="" />
        <windowsAuthentication enabled="false" />
        <basicAuthentication enabled="false" />
      </authentication>
      <access sslFlags="Ssl" />
  </security>
      <httpProtocol>
   <customHeaders>
    <clear />
    <add name="X-UA-Compatible" value="IE=9" />
   </customHeaders>
  </httpProtocol>
 </system.webServer>
 <wssg.logging name="Default" enabled="true" defaultCategory="RemoteAcc
  <listeners>
   <add name="DefaultTraceListener
  </listeners>
  <sources>
   <add level="Information" name="RemoteAccess">
    <listeners>
     <add name="DefaultTraceListener
    </listeners>
   </add>
  </sources>
  <predefinedsources>
   <unmatched level="Information" name="Unmatched">
    <listeners>
     <add name="DefaultTraceListener
    </listeners>
   </unmatched>
  </predefinedsources>
 </wssg.logging>
 <wssg.rdProvider type="Microsoft.WindowsSer
 <wssg.sqmProvider type="Microsoft.WindowsSer
 <wssg.storageProvider type="Microsoft.WindowsSer
 <wssg.searchProvider type="Microsoft.WindowsSer
 <wssg.fileOperationContext
 <wssg.sharedContentHandler
 <location path="ErrorPage/Error.html
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="mobile">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="m">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="d">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="Customization/Partne
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
Â
 <location path="Customization/Admin"
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <authorization>
     <clear />
     <add accessType="Allow" users="*" />
    </authorization>
   </security>
  </system.webServer>
 </location>
 <location path="SharedContent">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
  <system.webServer>
   <security>
    <access sslFlags="None" />
   </security>
  </system.webServer>
 </location>
Â
 <system.serviceModel>
  <serviceHostingEnvironment
  <bindings>
   <webHttpBinding>
    <binding name="default">
     <security mode="Transport" />
    </binding>
   </webHttpBinding>
  </bindings>
 </system.serviceModel>
 <!-- The settings in globalAppSettings.config will be merged with the local appSettings (if it exists). -->
 <appSettings file="C:\Program Files\Windows Server\Bin\globalAppSettin
  <add key="Microsoft.WSSG.SqmSet
 </appSettings>
</configuration>
If you could offer any help I would be extremely grateful
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.