| | |
| | | <?xml version="1.0"?> |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!-- |
| | | 有关如何配置 ASP.NET 应用程序的详细信息,请访问 |
| | | http://go.microsoft.com/fwlink/?LinkId=169433 |
| | |
| | | <configuration> |
| | | <configSections> |
| | | <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> |
| | | <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> |
| | | <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
| | | </configSections> |
| | | <connectionStrings> |
| | | <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-WebSRM-20191212204536;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-WebSRM-20191212204536.mdf"/> |
| | | <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-WebSRM-20191212204536;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-WebSRM-20191212204536.mdf" /> |
| | | </connectionStrings> |
| | | <!-- |
| | | 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。 |
| | |
| | | --> |
| | | <system.web> |
| | | |
| | | <compilation debug="true" targetFramework="4.5"/> |
| | | <compilation debug="true" targetFramework="4.5" /> |
| | | <customErrors mode="Off" defaultRedirect="error"> </customErrors> |
| | | <authentication mode="Forms"> |
| | | <forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/"/> |
| | | <forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/" /> |
| | | </authentication> |
| | | <profile defaultProvider="DefaultProfileProvider"> |
| | | <providers> |
| | | <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/"/> |
| | | <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" /> |
| | | </providers> |
| | | </profile> |
| | | <membership defaultProvider="DefaultMembershipProvider"> |
| | | <providers> |
| | | <add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/> |
| | | <add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> |
| | | </providers> |
| | | </membership> |
| | | <roleManager defaultProvider="DefaultRoleProvider"> |
| | | <providers> |
| | | <add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/"/> |
| | | <add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" /> |
| | | </providers> |
| | | </roleManager> |
| | | <!-- |
| | |
| | | --> |
| | | <sessionState mode="InProc" customProvider="DefaultSessionProvider"> |
| | | <providers> |
| | | <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection"/> |
| | | <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" /> |
| | | </providers> |
| | | </sessionState> |
| | | <pages controlRenderingCompatibilityVersion="4.0"/> |
| | | <pages controlRenderingCompatibilityVersion="4.0" /> |
| | | </system.web> |
| | | <system.webServer> |
| | | <httpProtocol> |
| | | <customHeaders> |
| | | <add name="Access-Control-Allow-Origin" value="*"/> |
| | | <add name="Access-Control-Allow-Headers" value="x-requested-with"/> |
| | | <add name="Access-Control-Allow-Methods" value="OPTIONS,POST,GET"/> |
| | | <add name="Access-Control-Allow-Origin" value="*" /> |
| | | <add name="Access-Control-Allow-Headers" value="x-requested-with" /> |
| | | <add name="Access-Control-Allow-Methods" value="OPTIONS,POST,GET" /> |
| | | </customHeaders> |
| | | </httpProtocol> |
| | | <modules runAllManagedModulesForAllRequests="true"/> |
| | | <modules runAllManagedModulesForAllRequests="true" /> |
| | | <!--本地开发配置服务器配置Mime类型 --> |
| | | <staticContent> |
| | | <remove fileExtension=".grf" /> |
| | | <mimeMap fileExtension=".grf" mimeType="text/xml"/> |
| | | <mimeMap fileExtension=".grf" mimeType="text/xml" /> |
| | | </staticContent> |
| | | <defaultDocument> |
| | | <files> |
| | | <add value="/login.html" /> |
| | | </files> |
| | | </defaultDocument> |
| | | </system.webServer> |
| | | <runtime> |
| | | <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| | | <dependentAssembly> |
| | | <assemblyIdentity name="EnvDTE" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/> |
| | | <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0"/> |
| | | <assemblyIdentity name="EnvDTE" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" /> |
| | | <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" /> |
| | | </dependentAssembly> |
| | | <dependentAssembly> |
| | | <assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246"/> |
| | | <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0"/> |
| | | <assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" /> |
| | | <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" /> |
| | | </dependentAssembly> |
| | | <dependentAssembly> |
| | | <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246"/> |
| | | <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0"/> |
| | | <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" /> |
| | | <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" /> |
| | | </dependentAssembly> |
| | | <dependentAssembly> |
| | | <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089"/> |
| | | <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/> |
| | | <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" /> |
| | | <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> |
| | | </dependentAssembly> |
| | | </assemblyBinding> |
| | | </runtime> |
| | | <entityFramework> |
| | | <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> |
| | | <parameters> |
| | | <parameter value="mssqllocaldb"/> |
| | | <parameter value="mssqllocaldb" /> |
| | | </parameters> |
| | | </defaultConnectionFactory> |
| | | <providers> |
| | | <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> |
| | | <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> |
| | | </providers> |
| | | </entityFramework> |
| | | </configuration> |