Click here to Skip to main content
15,895,848 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Bind to converter in XAML Pin
_Madmatt14-Jul-11 0:29
_Madmatt14-Jul-11 0:29 
GeneralRe: Bind to converter in XAML Pin
Pete O'Hanlon14-Jul-11 0:53
mvePete O'Hanlon14-Jul-11 0:53 
GeneralRe: Bind to converter in XAML Pin
_Madmatt14-Jul-11 1:27
_Madmatt14-Jul-11 1:27 
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 
I have created simple SL business application. I am trying to learn membership and authentication and configured the following:
1. Install the ASPNETDB

2. Part of the Web.config looks like this
<roleManager enabled="true" />;
<authentication mode="Forms">;
<forms name=".Test_ASPXAUTH" />;
</authentication&gt>
<profile>
<properties>
<add name="FriendlyName" />
</properties>
</profile>
</system.web>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=TPSA11;Initial Catalog=aspnetdb;Integrated Security=True" />
<add name="TestEntities" connectionString="metadata=res://*/TestModel.csdl|res://*/TestModel.ssdl|res://*/TestModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=TPSA11;Initial Catalog=Test;Persist Security Info=True;User ID=sa;Password=service;MultipleActiveResultSets=True&amp;quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
</configuration>


3. In App.Xamel.cs

InitializeComponent();
WebContext webContext = new WebContext();
webContext.Authentication = new FormsAuthentication();

4. The home page contains a datagrid that gets populated but to force authentication I added

[RequiredRole(“ADMIN”)]
Before the query used to populate the datagrid.

When I execute the application within VS2010 (debug mode), the datagrid is empty until a login with credentials with ADMIN role then it gets populated.—so far so god.
But when I run the application outside VS (e.g. http://servername:port/testApp.html the datagrid is loaded by default . If I try to login anyways, I get an error:

“Load operation failed for query “login” “System.ServiceModel.DomainServices.Client.DomianOperation” was thrown”

This is also captured using fiddler:

@_Fault_5http://schemas.microsoft.com/ws/2005/05/envelope/none@_Code@_Value_Sender_@_Reason@_Text__xml_lang_en-US>Login and Logout can only be invoked for Forms authentication._@_Detail@_DomainServiceFault__DomainServices _i)http://www.w3.org/2001/XMLSchema-instance@ ErrorCode_@
ErrorMessage>Login and Logout can only be invoked for Forms authentication.@_IsDomainException@
StackTraceL_ at System.ServiceModel.DomainServices.Server.ApplicationServices.AuthenticationBase`1.Login(String userName, String password, Boolean isPersistent, String customData)
at Login(DomainService , Object[] )
at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.ReflectionDomainOperationEntry.Invoke(DomainService domainService, Object[] parameters)
at System.ServiceModel.DomainServices.Server.DomainOperationEntry.Invoke(DomainService domainService, Object[] parameters, Int32&amp; totalCount)
at System.ServiceModel.DomainServices.Server.DomainService.Query(QueryDescription queryDescription, IEnumerable`1&amp; validationErrors, Int32&amp; totalCount)
at System.ServiceModel.DomainServices.Hosting.QueryProcessor.Process[TEntity](DomainService domainService, DomainOperationEntry queryOperation, Object[] parameters, ServiceQuery serviceQuery, IEnumerable`1&amp; validationErrors, Int32&amp; totalCount)


Any help is greatly appreciated
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 
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 

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.