Anywhere Access has Stopped Working
-
Tuesday, October 16, 2012 6:55 AM
Has anyone seen this result from the Repair Anywhere Access Wizard? Any ideas on how to fix?
"There is a problem with your Web server settings that cannot be repaired automatically. Please contact Product Support."
Here is what I get when navigating to the page (on the server):
Server Error in '/' Application.
Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:[FileNotFoundException: Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.] Microsoft.WindowsServerSolutions.Web.RootSite._Default.InitializeCulture() +0 ASP.default_aspx.FrameworkInitialize() +42 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +68 System.Web.UI.Page.ProcessRequest() +119 System.Web.UI.Page.ProcessRequest(HttpContext context) +99 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
All Replies
-
Tuesday, October 16, 2012 2:14 PMModerator
Has anyone seen this result from the Repair Anywhere Access Wizard? Any ideas on how to fix?
"There is a problem with your Web server settings that cannot be repaired automatically. Please contact Product Support."
Here is what I get when navigating to the page (on the server):
Server Error in '/' Application.
Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:[FileNotFoundException: Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.] Microsoft.WindowsServerSolutions.Web.RootSite._Default.InitializeCulture() +0 ASP.default_aspx.FrameworkInitialize() +42 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +68 System.Web.UI.Page.ProcessRequest() +119 System.Web.UI.Page.ProcessRequest(HttpContext context) +99 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
No, I haven't seen it. Was Anywhere Access working at one point? If so, did you install anything or change anything just before it stopped working? -
Wednesday, October 17, 2012 2:24 AMModerator
Hi,
It seems that the issue is related to the IIS manager component corruption.
'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Find out the file location and verify the file and its dependenices permission. From the Source Error, you could find that you could run the applications in debug mode does incur a memory/performance overhead. So I think check the hardware performance will be a checkpoint too.
Regards,
James
James Xiong
TechNet Community Support
-
Wednesday, October 17, 2012 5:59 AM
Hi,
It seems that the issue is related to the IIS manager component corruption.
'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Find out the file location and verify the file and its dependenices permission. From the Source Error, you could find that you could run the applications in debug mode does incur a memory/performance overhead. So I think check the hardware performance will be a checkpoint too.
Regards,
James
James Xiong
TechNet Community Support
James,
I found this line in C:\Program Files\Windows Server\Bin\WebApps\Site\web.config
<dependentAssembly> <assemblyIdentity name="Wssg.Web.Internal" publicKeyToken="31bf3856ad364e35" culture="neutral"/> <codeBase version="6.2.0.0" href="file:///%SBSPRODUCTBINPLACEHOLDER%\Wssg.Web.Internal.dll"/> </dependentAssembly>I thought the path of %SBSPRODUCTBINPLACEHOLDER% was kind of strange. I tried defining this in the registry as the location of the DLL file it is looking for but this did not seem to work.
Upon initially setting up my server I reconnected to my iSCSI storage drive which contains my serverfolders directory. I created and moved the folders over to the iSCSI drive (which already contained data from a previous install).
I had trouble getting media sharing to turn on. It would time out and give me an error. This is the second installation this has happened to me on. I then tried to setup anywhere access and it failed the VPN setup. I ran sfc /scannow and was told some corrupted files were replaced (second installation this has happened on) I was then able to successfully setup anywhere access. The next day I was successful in turning on media sharing and this is when I noticed the error page when accessing my server. sfc /scannow does not find any problems.
I am running on server grade hardware under ESXi 5.0 (patched current). My WS2012E system drive is a 160GB vmdk file residing on an NFS share from my OpenIndiana ZFS array. No disk errors reported and no problems with my other virtual machines. My WS2012E data drive is a 3GB iSCSI device served from the same ZFS array directly to WS2012E.
I know Wssg.Web.Internal.dll has something to do with what media folders are available for remote sharing from reading about people trying to change the behavior in SBS 2011. Could brining an existing ServerFolders in create this issue? I also do not share the default media folders but rather a separate dedicated media folder on my remote access site.
Thanks,
Chad
-
Thursday, October 18, 2012 5:39 AM
I installed another copy of WS2012E in another virtual machine and found that the web.config files all have an actual path rather than %SBSPRODUCTBINPLACEHOLDER%.
So far I am making headway replacing %SBSPRODUCTBINPLACEHOLDER% with the actual path in each web.config file.
- Edited by CWagz78 Thursday, October 18, 2012 5:39 AM
-
Thursday, October 18, 2012 5:44 AM
I installed another copy of WS2012E in another virtual machine and found that the web.config files all have an actual path rather than %SBSPRODUCTBINPLACEHOLDER%.
So far I am making headway replacing %SBSPRODUCTBINPLACEHOLDER% with the actual path in each web.config file.
I did a find and replace on %SBSPRODUCTBINPLACEHOLDER% on every web.config file in C:\Program Files\Windows Server\Bin\WebApps. I replaced %SBSPRODUCTBINPLACEHOLDER% with C:\Program Files\Windows Server\Bin. I then restarted IIS and re-ran the Anywhere access setup. The error is gone and the page is working again. I still don't know why the config files were "reset" but this was the fix for it.- Marked As Answer by kariya21MVP, Moderator Thursday, October 18, 2012 6:34 AM
-
Wednesday, November 21, 2012 8:41 PM
Did you run that scannow thingy on this server to get it into the condition?
-
Wednesday, November 21, 2012 8:45 PMYes. It is easily reproducible. Running scannow will incorrectly replace the web.config files and break the remote access website.
-
Saturday, November 24, 2012 7:17 AMI have encountered exactly the same problem. Were you able to resolve the issue by replacing all of the %SBSPRODUCTBINPLACEHOLDER% entries with C:\Program Files\Windows Server\Bin? So far, I'm running into 503 Service Unavailable errors after making the replacements.
-
Saturday, November 24, 2012 7:48 AM
Yes.
I used Notepad++ to find all %SBSPRODUCTBINPLACEHOLDER% and replace with "C:\Program Files\Windows Server\Bin" for every "web.config" file in "C:\Program Files\Windows Server\Bin\WebApps".
This completely fixed the issue. I did not however attempt to run sfc /scannow afterwards to see if the problem would come back.
Regards
-
Friday, December 14, 2012 5:06 PMI am trying this method of repair using notepad ++ but keep getting file is open by other program, I know I am missing something and there for ask the question, what haven't I done.??
-
Friday, December 14, 2012 6:12 PM
I am trying this method of repair using notepad ++ but keep getting file is open by other program, I know I am missing something and there for ask the question, what haven't I done.??
Well...
I am pretty sure I had the same issue. I either stopped the IIS service, killed explorer, or both. I am pretty sure stopping the IIS service did the trick.
I may have had to take ownership of the files as well...
Please don't blame me if this gets you in more trouble...
-
Friday, December 14, 2012 6:20 PMWhat exactly are you doing to get into this mess in the first place may I ask?
-
Saturday, December 15, 2012 2:28 AM
sfc /scandisk
Doesn't take much more than that really to royally stuff things up.
-
Saturday, December 15, 2012 6:07 AMOkay so two questions - what's the trigger for wanting to do that command and do you guys have either a. a backup of the config file or b. a shadow file copy that can be rolled back to if this notepad process won't work?
-
Saturday, December 15, 2012 7:10 AM
Okay so two questions - what's the trigger for wanting to do that command and do you guys have either a. a backup of the config file or b. a shadow file copy that can be rolled back to if this notepad process won't work?
1.) I was getting errors with remote access services and became concerned that I had corrupted system files. Running sfc /scannow actually fixed the issue with the remote access services but broke the website.
2.) There are many config files throughout the directory structure that get messed up. I found doing a batch find and replace to be the easiest way to fix it. I had not yet setup server backup so I did not have a backup.
-
Saturday, December 15, 2012 7:21 AM
So what about restoring the folder?
What exact errors were you getting? I'm still trying to understand the root cause of the errors that are then making people get into this fix.
-
Saturday, December 15, 2012 3:53 PM
ok.. got it all working again,
all I did in regards to the corrupted files was change ownership, then add the user account permissions to modify the file.
then go to the restore previous version tab and copy and paste file.
restart server
then log into dashboard and repair anywhere access.
Good as Gold.
-
Saturday, December 15, 2012 4:44 PMCan you help me understand (so I can better bug this) What was the original reason/need to run sfc /scannow?
-
Sunday, December 16, 2012 3:15 AM
I was having various minor issues, and following the kb article (don't remember which one,) it suggested sfc /scannow. (it may have been a 2008r2 kb article because the 2012 ones are not really available at the moment.) so I figured what harm can a system file checker do, ran sfc /scannow and this is where I ended up.
it doesn't matter what the reason is to run sfc /scannow. the issue is if it is run on server 2012 essentials, it breaks anywhere access.
-
Sunday, December 16, 2012 4:53 AMI'm just trying to better understand in order to better bug.
-
Sunday, January 06, 2013 8:42 PMI keep getting access is denied when trying to override the file (even after stopping IIS) , how did you got around it?
-
Monday, January 07, 2013 1:41 AM
Hang loose guys while I see if we can get you better info to fix this.
Bottom line, don't do a sfc /scannow on an Essentials server.
-
Monday, January 07, 2013 8:57 PM
Thank you. Let us know once you hear something from product team or other MS resources.
one of the priority uses cases for me for WS2012E software was protected sharing of pictures/videos for my family so I would like to resolve it and do not mind editing few web.config files to get it done
-
Wednesday, January 09, 2013 8:05 AM
"For a quick workaround, you can unzip the linked file, and use these files to replace the wrong web.config changed by the sfc.
Note there are 6 web.config files, in different sub folders under C:\Program Files\Windows Server\Bin\WebApps, please follow the file folder structure to replace each of them"
Holler back if you need any help.
- Proposed As Answer by Jeff S Heyen Tuesday, March 12, 2013 5:49 AM
-
Thursday, January 10, 2013 3:11 AMI keep getting access denied (running administrator) when trying to either edit or override the files in the C:\Program Files\Windows Server\Bin\WebApps. Any hints on how to get around it? I already stopped IIS but still have one worker process that I can not seem to find way to kill
-
Thursday, January 10, 2013 3:31 AM
Simeon, If my understand is correct, here is the way you can try
1. Stop IIS
2. Delete the 6 web.config, it will ask you to run as admin, but you can delete them
3. Copy the workaround files to your folder.
Hope it works for you
-
Thursday, January 10, 2013 3:33 AMI ended up doing it directly from explorer (rather than power shell) and it allowed me to replace the files. Remote access still not working but I think I am getting closer.. thank you for the earlier help on the thread
-
Tuesday, March 12, 2013 5:50 AMOnce I copied the files Susan put out there, restarted IIS I then was able to go to the Dashboard and run the Repair Remote Access Wizard, then all was well again :) Thanks
-
Friday, March 15, 2013 8:20 PM
KB 2828269 - Running SFC (System File Checker) command may corrupt web configuration file http://support.microsoft.com/kb/2828269
- Proposed As Answer by Hubocan Thursday, April 11, 2013 4:38 PM
-
Tuesday, March 26, 2013 2:10 PM
Hi,
Please can you advise how I replace these files. Even if I'm logged in as Administrator I am unable to place anything in the directories, access denied. I am able to delete the files OK, after accepting the prompt to run elevated rights to do so. I am unable to change the NTFS permissions and I can't run File Explorer elevated as admin, no option to do so? I'm running Server 2012 essentials and my files were orignally corrupted by running sfc /scannow.
Thanks in advance.
Aaron
-
Tuesday, March 26, 2013 3:31 PM
Follow the KB I posted
Running SFC (System File Checker) command may corrupt web configuration file:
https://support.microsoft.com/kb/2828269/en-us?sd=rss&spid=16526- Proposed As Answer by Hubocan Thursday, April 11, 2013 4:39 PM

