简体   繁体   中英

Event Log Security Exception After Installing Visual Studio 2015 Community

So I just installed VS 2015 Community SxS with an existing VS 2013 Professional. Everything appeared to install correctly, however after the installation, when attempting to navigate to a locally hosted ASP.NET application on IIS, I get some sort of security exception related to the event logs: 在此输入图像描述

I've found that if I manually remove the .NET Framework 4.6, the issue goes away (although then I can't use VS 2015.)

I guess I'm just looking for tips on how exactly to troubleshoot this further. I've scanned through the Event Log browser (ironically enough) looking for anything that might help pin the problem down, but can't find anything. I'm at a loss as to what else I can try.

You can check if your application pool identity used by your application has read/write permission to the following registry Keys,

HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\EventLog HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\EventLog\\Security

You can see what's the difference (different identity or different permissions required by the keys) after you got 4.6 installed.

Besides, the first answer in this link might be helpful https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/00a043ae-9ea1-4a55-8b7c-d088a4b08f09/how-do-i-create-an-event-log-source-under-vista?forum=windowsgeneraldevelopmentissues .

So it turns out that a particular HTTP module is somehow the culprit. It directly relates to another question I had posted (at the time I thought they were separate things):

There is no EventLog source named 'ASP.NET 4.6.81.0'. This module requires .NET Framework 2.0

By commenting out the UnhandledExceptionModule through the web.config:

<httpModules> <add type="WebMonitor.UnhandledExceptionModule" name="UnhandledExceptionModule"/>
</httpModules>

I've got things working. I'm still not satisfied however and will need to spend more time digging in and determining where the incompatibility lies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM