Error - Unable to access the IIS metabase
Thank you to everyone that answered. Since this was closed for a long time I couldn't provide much feedback, but I did eventually fix my problem. I tried many of these other solutions and they didn't fix my issue, but I'm sure they help when the root cause is different.
My Solution
I solved this problem by turning off the IIS and .Net Framework features within Windows 7 and then turning them back on. It seems like this re-installation is what fixed my issue. I still don't know what caused the problem, but at least one other developer on my team had the same issue.
Unable to access the IIS metabase ASP.Net
It turns out my Personal Folder was set to a network drive which occasionally went down causing the error described.
To change your Personal folder:
- Open
C://Windows/regedit.exe
- Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
- Change the field
Personal
to%USERPROFILE%
or%USERPROFILE%\{a folder of your choice}
This fixed the problem for me.
Note you may need to move over any files from your old Personal folder to your new one as they wont be picked up any more
Unable to access the IIS metabase w VS 2017
Delete %USERPROFILE%\Documents\IISExpress\config
Credit to Bill Hiebert for the fix!
Visual Studio Developer Community Reference thread
Error - Unable to access the IIS metabase
Thank you to everyone that answered. Since this was closed for a long time I couldn't provide much feedback, but I did eventually fix my problem. I tried many of these other solutions and they didn't fix my issue, but I'm sure they help when the root cause is different.
My Solution
I solved this problem by turning off the IIS and .Net Framework features within Windows 7 and then turning them back on. It seems like this re-installation is what fixed my issue. I still don't know what caused the problem, but at least one other developer on my team had the same issue.
Failed to access IIS metabase
You need to install the .net framework on you system
Open visual studio command prompt and type this command
aspnet_regiis -ga <UserName>
if this doesn'twork than use this command
aspnet_regiis -i
alternatively you can copy and paste this command into windows command prompt
%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
this will fix your problem
Related Topics
How to Update Textbox in Form1 from Form2
How to Inject a Dbcontext Instance into an Ihostedservice
Exception from Hresult: 0X800A03Ec Error
Property(With No Extra Processing) VS Public Field
How to Use the Ternary Operator Inside an Interpolated String
Setting Datacontext in Xaml in Wpf
Relocating App.Config File to a Custom Path
How to Deserialize a JSON Property That Can Be Two Different Data Types Using JSON.Net
How to Generate .Net 4.0 Classes from Xsd
Order of Items in Classes: Fields, Properties, Constructors, Methods
Are Lambda Expressions in C# Closures
Splitting a String/Number Every Nth Character/Number
JSON Deserialization to C# with Dynamic Keys
Editing Dictionary Values in a Foreach Loop
How to Fix a .Net Windows Application Crashing at Startup with Exception Code: 0Xe0434352