- Browse to page
- Site Actions > Edit Page > Add a Web Part
- At the bottom of the categories pane, select “Upload a Web Part” and browse/upload your .dwp file. After the web part is added, you can insert it as you would any other web part.
Latest Entries »
Continuing the saga of the Offline Files problem, I encountered more problems, this time on a different laptop (call it the “client laptop”). I couldn’t get the machine to go into Online mode for more than two seconds or less. Connections to another computer via RDP from that same client laptop were fine. I tried adding HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\NetCache\SilentForcedAutoReconnect with a DWORD32 value of 1, per http://www.experts-exchange.com/Networking/Windows_Networking/Q_25063787.html, but nothing. I also tried changing the Group Policy options in that article and then gpupdate /force. Again, nothing. I reset the GP options to their default and left the registry setting as it was. Strangely, after disabling the Offline Files service and restarting, I was able to see my target share, but when I tried browsing it, it began asking for permissions. Then I added “Authenticated Users” to the share on the target device, but, again, nothing. I restarted Offline Files—still nothing.
I ended up unjoining the client laptop from the homegroup and then rejoining it. After doing this, the permissions prompt went away, and I was able to browse again, and Offline Files began behaving normally. So, my conclusion is that this was a permissions issue pertaining to the fact that I had recently done a bunch of driver updates on the target computer, including extensive updates to the network adapters, and had also added the Intel Wireless Display and MyWiFi software. Homegroup was the cultprit. After unjoining and rejoining all my computers to the homegroup, everything seems to be working again.
I have been irritated for some time by the fact that VirtualBox’s host adapter shows up in Windows 7’s Network and Sharing Center as a standard network in need of identification and location configuration. I just found out here (https://forums.virtualbox.org/viewtopic.php?f=6&t=39066) that this is because the “Virtualbox Host-only adapter should have an *NdisDeviceType key set to 1 at registry. Logically, it should be set during installation of VirtualBox, but it’s not. So you should go to registry and set it manually.” Ugh, irritating. You can do the registry hack, if you want, or you can run dleffler’s PowerShell script (run PS with admin elevation), which is also available on the link above:
# see http://msdn2.microsoft.com/en-us/library/bb201634.aspx # # *NdisDeviceType # # The type of the device. The default value is zero, which indicates a standard # networking device that connects to a network. # # Set *NdisDeviceType to NDIS_DEVICE_TYPE_ENDPOINT (1) if this device is an # endpoint device and is not a true network interface that connects to a network. # For example, you must specify NDIS_DEVICE_TYPE_ENDPOINT for devices such as # smart phones that use a networking infrastructure to communicate to the local # computer system but do not provide connectivity to an external network. # # Usage: run in an elevated shell (vista/longhorn) or as adminstrator (xp/2003). # # PS> .\fix-vmnet-adapters.ps1 # boilerplate elevation check $identity = [Security.Principal.WindowsIdentity]::GetCurrent() $principal = new-object Security.Principal.WindowsPrincipal $identity $elevated = $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) if (-not $elevated) { $error = "Sorry, you need to run this script" if ([System.Environment]::OSVersion.Version.Major -gt 5) { $error += " in an elevated shell." } else { $error += " as Administrator." } throw $error } function confirm { $host.ui.PromptForChoice("Continue", "Process adapter?", [Management.Automation.Host.ChoiceDescription[]]@("&No", "&Yes"), 0) -eq $true } # adapters key pushd 'hklm:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}' # ignore and continue on error dir -ea 0 | % { $node = $_.pspath $desc = gp $node -name driverdesc if ($desc.driverdesc -like "virtualbox*adapter") { write-host ("Found adapter: {0} " -f $desc.driverdesc) if (confirm) { new-itemproperty $node -name '*NdisDeviceType' -propertytype dword -value 1 } } } popd # disable/enable network adapters gwmi win32_networkadapter | ? {$_.name -like "virtualbox*adapter" } | % { # disable write-host -nonew "Disabling $($_.name) ... " $result = $_.Disable() if ($result.ReturnValue -eq -0) { write-host " success." } else { write-host " failed." } # enable write-host -nonew "Enabling $($_.name) ... " $result = $_.Enable() if ($result.ReturnValue -eq -0) { write-host " success." } else { write-host " failed." } }
I use the offline files feature all the time on my home computers. For instance, I have a file on my main computer (which is my wife’s computer) called “School”, and I work on it remotely on my own laptop, setting it to offline mode so that when I go out of the house or so that when my wife closes her laptop I can continue working on my files. More importantly, that main computer gets synced up to Mozy, so if I want stuff backed up, I need to keep it on the main computer. I also put all of our music there, and add that main computer’s music folder to the music library on my other laptops. This way, you only have to organize music in one place. I have that folder on offline mode, too, for the reasons mentioned above. Same thing with photos.
Here’s the problem. When you use offline files in Windows, it creates a cache of everything that’s available offline, in C:\Windows\CSC. Sometimes stuff gets all kludged up for some reason and you start getting all kinds of sync errors. This happens to me once a year or so. It’s a pain, but the convenience and security of offline files makes it worthwhile to me. So, to fix this, you need to empty the cache, but ne touchez pas this directory! Instead, you have to delete it another way. In prior versions of Windows, you could go to offline files and CTRL-SHIFT click on “Delete files”, and it would purge your cache (or something like that…I forget what you were supposed to do). In Windows 7, they made this harder, for whatever rush-to-retail reasons they had in mind. You have to add the following registry entry and then reboot your computer:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CSC\Parameters]
“FormatDatabase”=dword:00000001
After you reboot, Offline Files should find the key and start clearing your cache. When it’s empty, you can resync all your folders.
