Click here to Skip to main content
15,881,852 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Bind to converter in XAML Pin
skv_lviv14-Jul-11 20:01
skv_lviv14-Jul-11 20:01 
GeneralRe: Bind to converter in XAML Pin
_Madmatt17-Jul-11 0:23
_Madmatt17-Jul-11 0:23 
AnswerRe: Bind to converter in XAML Pin
Abhinav S13-Jul-11 20:44
Abhinav S13-Jul-11 20:44 
GeneralRe: Bind to converter in XAML Pin
_Madmatt13-Jul-11 23:43
_Madmatt13-Jul-11 23:43 
QuestionMembership Role Pin
picasso212-Jul-11 17:24
picasso212-Jul-11 17:24 
AnswerRe: Membership Role Pin
Mark Salsbery13-Jul-11 11:56
Mark Salsbery13-Jul-11 11:56 
GeneralRe: Membership Role Pin
picasso213-Jul-11 20:22
picasso213-Jul-11 20:22 
GeneralRe: Membership Role Pin
Mark Salsbery14-Jul-11 10:50
Mark Salsbery14-Jul-11 10:50 
Ok, so hosting in debugger you are using the Visual Studio test server and the other is on IIS, correct (what server host you are using is important!)?

If the above is correct then you haven't configured IIS correctly. The authorization and role manager need to be setup. If you're using SQL Server (Express is fine) to store user/role info then that needs to be configured for your app if you haven't done so already. There's a Aspnet_regsql.exe utility to do it for you.

Then you need to configure the manager(s) to use your database by supplying a connection string. IIS uses "LocalSqlServer" by default so you should have that covered as long as your "LocalSqlServer" connection string connects to a valid IIS/ASP.NET configured database.

For what it's worth, here's an example of one of my configurations...note I do NOT use the default connection string name here so I have to specify the connection string for each provider...


<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>

  <appSettings>
  </appSettings>

  <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="MyConnectionString" connectionString="Data Source=localhost;Initial Catalog=myCatalog;Integrated Security=True" providerName="System.Data.SqlClient" />
  </connectionStrings>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <authorization>
      <!--
      <deny users="?" />
      -->
      <allow users="*" />
    </authorization>
    <authentication mode="Forms" >
      <forms name="MyFormsName" timeout="30" />
    </authentication>
    <membership defaultProvider="TheSqlMembershipProvider"
                hashAlgorithmType=""
                userIsOnlineTimeWindow="15" >
      <providers>
        <clear/>
        <add name="TheSqlMembershipProvider"
             type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
             connectionStringName="MyConnectionString"
             applicationName="/"
             enablePasswordRetrieval="false"
             enablePasswordReset="true"
             requiresQuestionAndAnswer="true"
             requiresUniqueEmail="false"
             passwordFormat="Hashed"
             maxInvalidPasswordAttempts="5"
             passwordAttemptWindow="10"
             minRequiredNonalphanumericCharacters="1"
             minRequiredPasswordLength="7"
             passwordStrengthRegularExpression="" />
      </providers>
    </membership>
    <roleManager enabled="true"
                 defaultProvider="TheSqlRoleProvider"
                 cacheRolesInCookie="false"
                 cookieName=".ASPXROLES"
                 cookiePath="/"
                 cookieProtection="All"
                 cookieRequireSSL="false"
                 cookieSlidingExpiration="true"
                 cookieTimeout="30"
                 createPersistentCookie="false"
                 domain=""
                 maxCachedResults="25" >
      <providers>
        <clear />
        <add name="TheSqlRoleProvider"
             type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
             connectionStringName="MyConnectionString"
             applicationName="/" />
      </providers>
    </roleManager>
    <profile enabled="true"
             defaultProvider="TheSqlProfileProvider"
             automaticSaveEnabled="true" >
      <providers>
        <clear />
        <add name="TheSqlProfileProvider"
             type="System.Web.Profile.SqlProfileProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
             connectionStringName="MyConnectionString"
             applicationName="/" />
      </providers>
      <properties>
        <add name="FriendlyName"/>
        <add name="ZipCode" />
        <add name="CityAndState" />
      </properties>
    </profile>
  </system.web>

  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
</configuration>

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Membership Role Pin
Mark Salsbery14-Jul-11 10:55
Mark Salsbery14-Jul-11 10:55 
QuestionWhy does Microsoft do this to me Pin
Tad McClellan12-Jul-11 12:58
professionalTad McClellan12-Jul-11 12:58 
AnswerRe: Why does Microsoft do this to me Pin
Mark Salsbery13-Jul-11 11:51
Mark Salsbery13-Jul-11 11:51 
AnswerRe: Why does Microsoft do this to me Pin
Mycroft Holmes14-Jul-11 12:49
professionalMycroft Holmes14-Jul-11 12:49 
QuestionHow to draw a plus sign and triangles for buttons in WPF? Pin
Member 297299212-Jul-11 10:18
Member 297299212-Jul-11 10:18 
AnswerRe: How to draw a plus sign and triangles for buttons in WPF? Pin
Mark Salsbery12-Jul-11 10:59
Mark Salsbery12-Jul-11 10:59 
GeneralRe: How to draw a plus sign and triangles for buttons in WPF? Pin
Pete O'Hanlon12-Jul-11 11:33
mvePete O'Hanlon12-Jul-11 11:33 
GeneralRe: How to draw a plus sign and triangles for buttons in WPF? Pin
Kunal Chowdhury «IN»20-Jul-11 0:22
professionalKunal Chowdhury «IN»20-Jul-11 0:22 
AnswerRe: How to draw a plus sign and triangles for buttons in WPF? Pin
Oludayo Alli16-Aug-11 3:02
Oludayo Alli16-Aug-11 3:02 
QuestionTreeView / HierarchialDataTemplate / Generics possible in XAML? Pin
SledgeHammer0112-Jul-11 9:51
SledgeHammer0112-Jul-11 9:51 
QuestionCrossdomain Files in IIS Pin
Vimalsoft(Pty) Ltd12-Jul-11 0:59
professionalVimalsoft(Pty) Ltd12-Jul-11 0:59 
AnswerRe: Crossdomain Files in IIS Pin
Mark Salsbery12-Jul-11 11:03
Mark Salsbery12-Jul-11 11:03 
GeneralRe: Crossdomain Files in IIS Pin
Vimalsoft(Pty) Ltd12-Jul-11 19:30
professionalVimalsoft(Pty) Ltd12-Jul-11 19:30 
QuestionHide application Icon from alt+tab Pin
John-ph10-Jul-11 18:23
John-ph10-Jul-11 18:23 
AnswerRe: Hide application Icon from alt+tab Pin
Mark Salsbery11-Jul-11 10:12
Mark Salsbery11-Jul-11 10:12 
QuestionSilverlight Navigation Pin
sudheesh kumar s9-Jul-11 20:39
sudheesh kumar s9-Jul-11 20:39 
AnswerRe: Silverlight Navigation Pin
Abhinav S9-Jul-11 20:45
Abhinav S9-Jul-11 20:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.