.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

checking of all states in state machine for availability for this User

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :WPF

I want to check in all states in some type state machine for avability transitions in this states for current user. I want to have this info before i query traking info.

Best regards.

View Complete Post

More Related Resource Links

More Than 3 States in SharePoint State Machine?



   Going through a lot of SharePoint growing pains right now and need some help to figure out a State Machine issue.

   The current SharePoint state machine handles three states.  We have a workflow with 16 possible states. 

   Are there state models that can be added that allow for state machines with > 3 states?

   Also, does anyone have recommendations on good reading / tutorial books or sites for SharePoint? 

Thank you!



ASP.NET: Nine Options for Managing Persistent User State in Your ASP.NET Application


ASP.NET provides many different ways to persist data between user requests. You can use the Application object, cookies, hidden fields, the Session or Cache objects, and lots of other methods. Deciding when to use each of these can sometimes be difficult. This article will introduce the aforementioned techniques and present some guidelines on when to use them. Although many of these techniques existed in classic ASP, best practices for when to use them have changed with the introduction of the .NET Framework. To persist data in ASP.NET, you'll have to adjust what you learned previously about handling state in ASP.

Steven Smith

MSDN Magazine April 2003

Error: 18456, Severity: 14, State: 16 Login failed for user 'NT AUTHORITY\SYSTEM'

Hi,   can someone help me with this error. Error: 18456, Severity: 14, State: 16 Login failed for user 'NT AUTHORITY\SYSTEM' [CLIENT:<local machine>] I've found several Threads but not with the NT AUTHORITY\SYSTEM.   Thanks for help.   Jens

Login Failed for User "XXX" when login from a ETL machine for Sql Server 2005 SP2

Hi Guys, I have a straange issue with Login Failed errors coming intermittently probabaly twice in a week: I have a  production Database on Server A and we have Two ETL servers on Server B and Server C. Sometimes when the ETL's (SSIS) run from SERVER B I do get an error stating login failed for user "XXX" this user is a sql server user. And when I run the same package from Server C it does not give any error and runs smoothly. Both the packages uses the same configuration file to connect to the same database with the same user credentials. Also this error is not a frequent error but comes along once or twice in a weeK. Can anyone shed some light on this and let me know the root cause. Both servers have the same sql client version as well. All servers mentioned above are 64 bit windows 2003 servers. Raju

Checking SQL Server User Roles and Creating SQL Server Users using VB.NET

Hello gurus!Firstly I want to apologies if this question is out of place here.. if someone can direct me to the correct forumn great and Thanks!I have a VB.NET application which uses its own Backend Database (MSSQL Server). I need to distribute this application to sites where there will be an existing SQL Server.So I will need to Create the Database on this server. The Application includes methods for building the database on startup if not already connected to one.However the users windows logon may not have the correct permission to connect and create a Database on the Server. I have a DB Setup form in my application which asks for the Servname, Username, Password and Database name. I have catered for Windows Authentication and SQL Server Authentication within the form - the user makes the choice.Assuming they enter a Username and Password for SQL Server Athentication then I will be trying to connect using this user and create the database on the given server. The following is my outline logic:-                                                                  Create db Process                                                                             |                                                                             |                                                               Check Credentials                                                                   / 

Accessing Session State in a User Control

We have a web site that implements a custom SiteMapProvider using a User Control added in the master page. I need to be able to limit the sitemap nodes added depending on the logged in user, that is, certain users should not see certain sitemap nodes. Currently, the login processing code determines if users are in the certain category or role and then sets a value in session state, for example, Session["UserInRoleXXX"] = "Yes"; I tried changing the code in the user control to check the session state, but I got the following error: NullReferenceException ... Object reference not set to an instance of an object." Can session state be accessed in a user control? If so, how? If not, any suggested solutions? Thanks in advance for any help.

Create Content Type in State Machine Workflow

Hi, I created a state machine workflow in share point 2007 with default associated task list. This is working fine. Now I want to add a custom content type to task in which I want to show 3 fields on task form : Title, Description, status And also I want to set some default values in these fields. How can I create and add this custom content type in state machine workflow ? G. Goyal

state machine workflow project creation error

Hi,   I have a dev environment which i had sharepoint 2007 and now i upgraded it to sharepoint 2010. Now when i try to create a state machine workflow project it gives me an error Object Reference not set to an object. I uninstalled Sharepoint extensions 1.3 (as i 64bit win2008 vm) and when i am trying to install it. In one of the installation screens where it asks for the port no  and the select the app pool it only shows the sharepoint central v3 app pool . i was expecting to have sharepoint 2010 product app pool in the drop down. I know that there should be a app pool on port 80. Since i upgraded sharepoint to 2010. I want sharepoint visual studio extensions 1.3 to point to sharepoint 80 app pool . Please can you tell me how i can do it.    

checking user group

How to Check user belong to which group(&(objectCategory=group)(member=cn=sam,cn=Approvers,DC=abc,DC=com))approvers is groupnamesam is username

How to create custom task form in state machine workflow?

Hi, I want to create custom task form in state machine workflow. How can I create & install?  G. Goyal

Feedback on state machine migration

Hi folks,In order to help migrate WF customers from .Net 3.X to .Net 4 Beta1, our team has posted a set of migration documents over here. Please give them a read and provide any feedback you have on state machine migration over on this thread.Thanks in advance for trying .Net 4, and we're looking forward to your feedback.-Yavor GeorgievProgram Manager, Connected Framework

can't debug anymore a state machine workFlow in Visual Studio

Hi, I have an issue with debuging a workFlow with visual studio when it should start the workFlow when I create an item nothing happen and sharepoint stay stuck : I can't refresh any lists, visual studio rich 40% of the CPU, no exception on log. At the same time if i deploy without debugging it works. Please help me. Thanks, Patrice  

WF 4 State Machine

Hi, Could you tell me how I could create a label adorner for connector and a context menu for connector/label? Thank you very much

SQL Error with Login: Login failed for user 'NT AUTHORITY\SYSTEM'. [CLIENT: ]

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-m

How to troubleshoot apparently contradictory states in a WCF proxy's State property

I am terribly confused here and the information on the subject that I have been able to find online doesn't seem to quite solve this problem.  I have created a WCF Service; it is small and only has about a dozen operation contracts.  Then I created the client proxy; also quite small.  But I am having issues connecting the clients to the host.  Here is what appears to be happening: Public Sub Start() Try SyncLock syncObj Dim context As New InstanceContext(Me) m_proxy = New AwarenessSR.AwarenessWCFServiceClient(context, "NetTcpBinding_IAwarenessWCFService", m_endpointAddress) AddHandler m_proxy.InnerDuplexChannel.Faulted, AddressOf InnerDuplexHandler AddHandler m_proxy.InnerDuplexChannel.Closed, AddressOf InnerDuplexHandler Dim check As Boolean = False For i As Integer = 0 To 10 check = ValidateConnection() If check Then Exit For End If Next End SyncLock Catch ex As Exception ' Some error handling that I won't bother to copy End Try End Sub Public Function ValidateConnection(Optional ByVal autoRepair As Boolean = True) As Boolean Dim bIsValid As Boolean bIsValid = False SyncLock syncObj If autoRepair = True Then If m_proxy.State = ServiceModel.CommunicationState.Closed Or _

WF 4 State Machine connector and state

Hi, I've got a couple of questions 1. In WF 4 State Machine connector XAML i have this   <UserControl.ContextMenu x:Uid="cxtMenu"> <ContextMenu> <MenuItem Header="Open new window"/> </ContextMenu> right after  </UserControl.Resources> However, the context menu that I see is still StateMachineDesigner contextmenu. What is wrong?  2. For catching mouse double click on connector, there is "OnConnectorMouseDoubleClick", but I can't find something similar for state mouse double click ( I see that it works because it makes the activity visual root). How is this handled? 3. How I determin the activity which has a specific outgoing connector? "GetConnectorModelItem(DependencyObject obj)" returns StateMachine. I'm interested in getting a state somehow Thank you very much

workflow 4 state machine load

Hi, I'm using StateMachine for WF4 from codeplex. I can save it to file very well, but when I load it again I see only the states not the connectors also. Same behavior can be reproduced by double clicking a state and then coming back to whole state machine. Could you please help me? Thank you very much
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend