Visual Studio ERROR: The Web Application Project xxx is configured to use IIS. Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.

Solution 1

Steps:

  1. Open “Run" Window (win + R), paste and run the following path,
    %systemroot%\System32\inetsrv\config
  2. Click the Continues button to get the access
  3. Reload project

 

Solution 2

Run Visual Studio as Administrator

Failed to instantiate the default view controller for UIMainStoryboardFile ‘Main’

Error:

Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?

出現以上錯誤,可能是因為在Project中刪除了默認的storyboard並重新建立

解決方案:

在“Attributes inspector”中tick中 “Is Initial View Controller
ViewController_001

(繼續閱讀…)

使用 Class 配置 log4net

What is Apache log4net™

The Apache log4net library is a tool to help the programmer output log statements to a variety of output targets. log4net is a port of the excellent Apache log4j™ framework to the Microsoft® .NET runtime. We have kept the framework similar in spirit to the original log4j while taking advantage of new features in the .NET runtime. For more information on log4net see the features document.

(繼續閱讀…)