WebMatrix won't run
Last post May 03, 2011 03:00 AM by tim_radford
Apr 29, 2011 05:14 AM|tim_radford|LINK
WebMatrix crashes on start-up on a 32-bit Windows 7 machine. The error log is pasted below.
I cannot uninstall it as it does not appear on the Add/Remove programs list, and I cannot reinstall using WPI as it says it is already installed and the option is greyed out.
Any suggestions welcome
ResourceName:Microsoft.WebMatrix.Server.WebManagementServiceException: Value cannot be null.Parameter name: path1 ---> System.ArgumentNullException: Value cannot be null.Parameter name: path1 at System.IO.Path.Combine(String path1, String path2) at Microsoft.WebMatrix.Server.ManagementUnit.get_StaticAdminConfigLocation() at Microsoft.WebMatrix.Server.ManagementUnit.CreateConfigurationMap(String appHostLocation) at Microsoft.WebMatrix.Server.ManagementAdministrationConfiguration.GetModuleProviders() at Microsoft.WebMatrix.Server.ManagementAdministrationConfiguration..ctor(ManagementUnit managementUnit) at Microsoft.WebMatrix.Server.ManagementUnit.GenerateModuleDefinitions() at Microsoft.WebMatrix.Client.SharedMemoryChannel.GetModuleServiceTable(ManagementUnit managementUnit) at Microsoft.WebMatrix.Client.SharedMemoryChannel.InvokeInternal(String serviceName, String methodName, Object parameters) --- End of inner exception stack trace --- at Microsoft.WebMatrix.Client.SharedMemoryChannel.MTAHelper.Execute(String serviceName, String methodName, Object parameters) at Microsoft.WebMatrix.Client.SharedMemoryChannel.Invoke(String serviceName, String methodName, Object parameters) at Microsoft.WebMatrix.Host.ConnectionManager.GetWebManagementInfo(Connection newConnection, Boolean retrieveModules, Boolean retrieveUrl) at Microsoft.WebMatrix.Host.ConnectionManager.ActivateConnection(ConnectionInfo connectionInfo) at Microsoft.WebMatrix.Host.ConnectionManager.Microsoft.WebMatrix.Client.IConnectionManager.ActivateConnection(ConnectionInfo connectionInfo) at Microsoft.WebMatrix.Host.Shell.ShellMainWPF.ActivateWebMatrixLocalConnection() at Microsoft.WebMatrix.Host.Shell.ShellMainWPF..ctor(IServiceProvider serviceProvider, SplashScreen splash) at Microsoft.WebMatrix.Host.Shell.ShellApplication.Execute(Boolean localDevelopmentMode, Boolean resetPreferences, Boolean resetPreferencesNoLaunch, Boolean warmupMode)
Apr 29, 2011 09:19 PM|simtan|LINK
Have you ever been able to start WebMatrix successfully or did this start happening from the very first installation?
I would recommend uninstalling some of the other components of WebMatrix - for example "IIS Express" or "Web Deploy" - and trying to re-install the entire package again via WebPI.
Apr 29, 2011 09:37 PM|HCamper|LINK
Since your having uni-install problems "I cannot uninstall it as it does not appear on the Add/Remove programs list"
"and I cannot reinstall using" Web Platform or "WPI says it is already installed and the option is greyed out."
I suggest that you get a Repair Tool a good one is "CCLEANER" or also known as "CrapCleaner".
You can download the CCleaner from Piriform here
I suggest that you read the guide for CCleaner
You can use the CCleaner to Remove Stubborn programs from your Windows System.
After you use the CCLeaner you will need to restart to remove most of the programs.
After the Cleaning is done you then should check if you have Windows Installer Problems.
Check the Microsoft Download Center
Automated Ms-Fix-it tools and download the Windows Update fix tool and then run the tool.
If you have no Windows Installer problems you can re-download the Web Platform and try installs again.
Apr 30, 2011 05:23 PM|tim_radford|LINK
Yes, I have run it before. I have uninstalled IIS Express, WPI and Web Deploy and reinstalled them but still get the error.
Thanks for replying
Apr 30, 2011 05:41 PM|HCamper|LINK
Could you try running Web Matrix with different Desk Top Theme or Change Desk Top Resolution?
Could you check if the Windows Presentation Services are running before & after Web Matrix is launched?
The Last error is when the Web Matrix tries to use Windows Presentation
to DIsplay the Splash Screen.
There are some posts in Web Matrix Forum for Graphics issues.
Apr 30, 2011 05:46 PM|tim_radford|LINK
Thanks for replying Martin
I had already tried CCleaner (I use that a lot). Interestingly, Microsoft's FixIt tools won't run either, that crashes with a different error due to a missing dll. I see that a lot of people have had a similar problem with that one
I have tried redownloading WPI but the problem persists.
The uninstall issue is not the real problem: that stopped me trying to do a reinstall. The real problem is that WebMatrix crashes on startup with an error "Value cannot be null. Parameter name: path1".
Apr 30, 2011 06:15 PM|HCamper|LINK
Then you have problems with shared or missing dlls or corrupt installer cache.
Since you know about CCleaner you can add to the Tool Collection Erunt which you should download and
install. The Erunt can make a backup of Current Registery and System Configuration.
When you install Erunt install the Erunt Registry portion only the Registery Optomizer portion can cause
problems for Windows 7 or Vista.
Run the Erunt and make a backup before doing the remaining Repairs.
There are two routes to try and fix these types of issues:
A ) Go to the Microsoft Download Center and download the System Readiness Tool ( size 100- 308 megs) OMG
and then run the Tool.
The System Readiness Tool will try and fix inconsistences for Windows Installer & Patches.
This Tool may take a long while to run.
B) Run the Recovery for missing files or corrupt dlls SFC /SCANNOW you wll need to have your system install
disk in the default drive that was used to install Windows 7.
This option / tool may take very long time depending on number of missing files and speed of system.
With any luck you do not have corruption from Hard Disk or Hardware errors and the files should be corrected.
Apr 30, 2011 06:27 PM|tim_radford|LINK
I have tried different themes and resolutions, and even tried safe mode.
I don't know what to check for regarding Windows Presentation services: there isn't a running service with that name.
Apr 30, 2011 06:36 PM|HCamper|LINK
Sorry two services are "Windows Presentation Foundation Font Cache","Windows Font Cache" together
they make-up Windows Presentation Services.
Apr 30, 2011 06:37 PM|tim_radford|LINK
Apr 30, 2011 07:13 PM|HCamper|LINK
Ok, Hoping for the Best.
May 01, 2011 02:25 AM|tim_radford|LINK
Hi once again
I have run the System Readiness Tool for Windows 7, but still get the error:
Thanks for your continuing help.
May 01, 2011 05:35 AM|HCamper|LINK
Ok. At least you have Dialog that explains more.
as the Post indicates have Registery Permissions issues so try the steps suggested.
May 01, 2011 05:29 PM|tim_radford|LINK
Thanks for the suggestion Martin but that appears to relate to a problem with IIS Express initialising. My error relates to WebMatrix.
May 02, 2011 01:41 PM|andrewbi|LINK
Hi Tim. Based on the callstack you posted WebMatrix is trying to read the installed location out of the registry but the registry key does not exist. The registry key is set by the WebMatrix MSI. Your corrupted WebMatrix install is the problem. You'll have
to uninstall your current WebMatrix install using one of the tools suggested so you can install it again from a clean state and recreate the appropriate registry keys.
May 02, 2011 03:15 PM|tim_radford|LINK
I agree that a corrupt installation is the key, but I have failed to remove the application so far. Neither CCleaner nor the Microsoft Fix It tools worked.
Perhaps I could manually edit the registry key? Do you know what it should be?
Thanks for your help
May 02, 2011 06:34 PM|andrewbi|LINK
Yeah, under HKLM\Software\Microsoft\WebMatrix (HKLM\Software\Wow6432Node\Microsoft\WebMatrix on 64 bit OS) make a string key called "InstallPath" and for the value set it to "C:\Program Files\Microsoft WebMatrix\" ("C:\Program Files (x86)\Microsoft WebMatrix\
on a 64 bit OS). It's worth a shot but I imagine something else will break down the line since I imagine most (all) of the other registry keys are missing.
May 03, 2011 03:00 AM|tim_radford|LINK
Thanks Andrew, adding that key worked. I still don't see it in Add/Remove programs, but WebMatrix is now running.
Thanks to everyone for your help.