2011-09-22 127 views
0

我想使用HDI自定義成員資格提供程序,並在與web.config啓動後,當我運行applcation它給了我一個錯誤,如下所示。使用HDI成員資格提供商與asp.net的問題

我無法知道我要去哪裏錯了嗎?任何人都可以用正確的方式指出我的意思嗎?

Failed to map the path '/'. 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Failed to map the path '/'. 

這是我的web.config:

<configuration> 
    <connectionStrings> 
    <add name="HDIConnectionString" providerName="System.Data.SqlClient" connectionString="Data Source=.\sqlexpress;Initial Catalog=HDIMembershipProvider;Integrated Security=True"/> 
    </connectionStrings> 
    <system.web> 
    <membership defaultProvider="HDIMembershipProvider" userIsOnlineTimeWindow="15"> 
     <providers> 
     <clear/> 
     <add name="HDIMembershipProvider" type="HDI.AspNet.Membership.HDIMembershipProvider" connectionStringName="HDIConnectionString" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" writeExceptionsToEventLog="false"/> 
     </providers> 
    </membership> 
    <machineKey validationKey="34A0AF973A6817E4F7067DA1486E93AD5F7466B65D32405DB50766FDF335304F499C7B1943C084C7A67B1375D196CF02C8E84F297F7A0CA130C1D5722586749F" decryptionKey="48C8B6F952BC7C39DD91A2A17F17B08E113967DC5FF687FE6DFAF65F3248309C" validation="SHA1" decryption="AES"/> 
    <authentication mode="Forms"/> 
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"> 
     <assemblies> 
     <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
     <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
     </assemblies> 
    </compilation> 
    </system.web> 
    <system.net> 
    </system.net> 
</configuration> 
+0

您確定問題是由MembershipProvider引起的嗎? –

+0

你能發佈錯誤全堆棧跟蹤嗎?由於這似乎不是由會員提供商造成的。 –

+0

是的,像以前一樣,我與我的一個數據庫工作,它工作得很好。 – coder

回答

1

我剛纔通過啓動Visual Studio中作爲管理員糾正問題。

相關問題