mosadatta
شنبه 12 بهمن 1392, 12:53 عصر
با سلام من میخام در internet app کاربر و نقش ان را تعریف کنم اما باasp.net configuration نمیشه و این پیغام میده:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Could not load type 'MvcApplication6.MvcApplication'.
درواقع پایگاه داده پیش فرض در app_data نیست اما تعریفش در وب کانفیگ هست
اما اگر پروژه را بصورت موبایل اپلیکیشن تعریف کنم میشه
من نیاز دارم به کاربرام نقشهای متفاوتی بدم
خواهش میکنم اگه چیزی به نظرتون میرسه بگید :گریه:
mosadatta
شنبه 12 بهمن 1392, 19:14 عصر
با سلاممتاسفانه به بن بست خوردم نمیدونم چطوری مشکلم را حل کنم هر نوع پروژه ای (mvc یا webform)که ایجاد میکنم نمی تونم از طریقasp.net configuratio کاربر و رول تعریف کنم کلا membership دات نت به مشکل خورده چون با کلیک روی دکمه ثبت نام (پیش فرض) خطا میده
Default Membership Provider must be specified.
واسه پروژه های webform وقتی system.security را اضافه می کنم حل میشه اما واسه mvc حل نمیشه
mosadatta
شنبه 12 بهمن 1392, 20:40 عصر
دوستان من تنها راهی که به ذهنم میرسه اینه که vs2012 را از نودوباره نصب کنم:گریه:
mosadatta
یک شنبه 13 بهمن 1392, 09:30 صبح
باسلام دوستان من هنوز منتظرم مشکلم حل بشه web.config در mvc بصورت زیر است<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=152368
-->
<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.EntityFrame workSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<appSettings>
<add key="webpages:Version" value="1.0.0.0" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
<httpRuntime targetFramework="4.5" />
<profile defaultProvider="DefaultProfileProvider">
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.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=1.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 enabled="true" defaultProvider="DefaultRoleProvider">
<providers>
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.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=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
</providers>
</sessionState>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFac tory, EntityFramework" />
</entityFramework>
<connectionStrings>
<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcApplication13-20140202101131;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\asp net-MvcApplication13-20140202101131.mdf" />
</connectionStrings>
</configuration>
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.