0

在调试模式(Visual Studio 2012)下运行我的应用程序时,我在我的网络配置中使用它:

<roleManager enabled="true" defaultProvider="ActiveDirectory">
      <providers>
        <clear/>
        <add
            applicationName="TheManhattanProject" name="ActiveDirectory"
            type="TheManhattanProject.Security.ActiveDirectoryRoleProvider"
            domain="mydomain" groupMode="" connectionString="LDAP:(insert correct string here)"
    />
      </providers>
    </roleManager>

应用程序收到一个错误,突出显示顶部的“RoleManager”部分。它实际上在页面加载之前崩溃。

这是为了让我的 MVC4 Web 应用程序针对 Active Directory 进行身份验证(Windows;不是表单),但我还没有找到修复程序。

如果我不清楚我在问什么,请问我,我会尽力解决问题!

提前致谢!

编辑:错误:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error: 


Line 31:     </httpHandlers>
Line 32: 
Line 33:     <roleManager enabled="true" defaultProvider="ActiveDirectory">
Line 34:       <providers>
Line 35:         <clear/>
4

0 回答 0