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


Post New Web Links

Creating a new system with WF 4.0

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :Windows Application
 

It seems unlcear to me how you should be designing a new 4.0 WF in you have a workflow that spans network as well as having interprocess activities.  In 3.5 it appears you need WCF if you are handing off as async activities. But in 4.0 it appears you should be pass interprocess work through queues.  Where would I find a good example of creating a workflow of this nature starting new in 4.0? 




View Complete Post


More Related Resource Links

System.DirectoryServices.AccountManagement: FileNotFound exception while creating PrincipalContext o

  
Hi, I want to create a local group for my Netapp server. And also add a domain user under this group. Using .NET namepaces System.DirectoryServices.AccountManagement, I can achive this for Windows server. But if the same code is tried on NetApp, following exception is thrown: Unhandled Exception: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)   at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.GetInfo()   at System.DirectoryServices.DirectoryEntry.RefreshCache()   at System.DirectoryServices.AccountManagement.PrincipalContext.DoMachineInit()   at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()   at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()    at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate)   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue)   at System.DirectoryServices.AccountManagement.GroupPrincipal.FindByIdentity(PrincipalContext context, String identityValue)   at AddGroup.Program.Main(String[] args) Does S

Creating assembly throwing an error as system.directoryservices assembly is not in the SQL Server

  
Hi, I am trying to create an assembly (DLL file that created by C# ) which uses System.DirectoryServices assembly. When I try with following script Create ASSEMBLY Addresstype From 'C:\ActiDirectoryFunctions\ActiveDirectoryFunctions.dll' I am getting following Error Assembly 'ActiveDirectoryFunctions' references assembly 'system.directoryservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request. From above error message, I learnt that System.DirectoryServices assembly is not in the SQL Server. I am using SQL SERVER 2005 SP2 and .Net Framework 3 is there in the machine How to manually add this assembly into this SQL Server Machine? Please let me know if you know Thank you, Raj Dreaming a world without any war in anywhere

System.DirectoryService.AccountManagement Creating Local Profiles

  

Hello all!

I have a block of code that changes a users password as they enter it.  It appears that when they do this, it creates a local profile on the Windows 2008 Server for that user.  I'm doing it as follows...

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.DirectoryServices.AccountManagement;
using System.Web.Hosting;
using System.Security;
using System.Security.Principal;
using System.DirectoryServices;

namespace ActiveDirectoryTools
{
    internal class ADProfileMgmt
    {
        PrincipalContext context;
        DirectoryEntry _entry = new DirectoryEntry();

        internal ADProfileMgmt(string domainName, string userName, string password)
        {
            context = new PrincipalContext(ContextType.Domain, domainName, userName, password);
        }

        internal UserPrincipal SearchUser(string userName)
        {
                UserPrincipal user = new UserPrincipal(context);
            
                user = UserPrincipal.FindByIdentity(context, userName);

                return user;    
        }

        internal void ChangePassword(string userName, string oldPassword, string newPassword)
        {
            UserPrincipal user = SearchUser(userName);

            user.ChangePassword(oldPassword, newPassword);
        }
    }
}

<

Problem creating system DSN in XP

  

Hi All,

  I have been getting this error when tried to create DSN in XP. I have SQL server 2005 installed. What could be the problem?

Connection Failed

SQLstate HY000

SQL Server error 0

MS oDBC driver can not generate SSPI context

Thanks for any info

 

 

 


Adobe I-Filter creating thousand of folders on system root.

  

I have adobe's v9 ilfilter installed with Sharepoint 2010 on a windows server 2008 r2 box. Indexing seems to working fine and pdf results are returned in a a sharepoint search.  My problem however is that thousands of directories are being created on the C:/ drive beginning with "A9R" followed by a bunch of numbers and letters with legitimate pdf documents (with normal documents names) inside. I read about a similar issue here http://forums.adobe.com/thread/707241?tstart=1 and here http://blogs.adobe.com/acrobat/2008/12/adobe_pdf_ifilter_9_for_64bit.html (about half way down the page). No one seems to have a solution let alone an explanation. Even more scary, is that I cannot seem to find any of these documents anywhere else.

PLEASE HELP!!


creating an online help system for a wpf application

  

hi, i'm trying to create an online help system for a wpf application.

the help system should have two main functions.

1.when the user is over a certain control and press the F1 button a CHM file is opened and the appropriate topic is displayed.

2.a What's this? button that changes the cursor to a question mark or whatever and then when a control is clicked the cursor changes back to the way it was and again the CHM opens on the right topic.

for part 1 i managed to find a few examples of how people did it such as these two:

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/92d55a82-4b45-4e50-845d-56d7a48cbd0b/

http://peteohanlon.wordpress.com/2009/05/01/easy-help-with-wpf/

i tried the second one, it sort of what i was looking for the only problem is that in order to get to the desired topic the selected control should have focused when F1 is pressed, which is kindda problematic, for example when i wanna view the help related to a button i have to click on it first so it would get focus and then press the F1.

i tried using Control.GetC

System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration sect

  
An error has occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The System cannot find the file specified. (C:\Users\Billy\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thcyltsvyyx\10.0.0.0\user.config line

details

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. (C:\Users\Billy\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config line 5) ---> System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the

Creating your SharePoint Governance Plan

  
One of the most common questions that I get from prospects as I'm talking to them about the creation of a governance plan and process is what does it look like. In other words, there are materials available which describe what should be in a governance plan but there isn't a ton of guidance on what the process of creating a governance plan and process are.

Creating Paging for a Repeater Control

  
A common question is "How do I implement paging within a Repeater?" Although the beauty of the Repeater control is its flexibility, you're on your own for building most functions. ASP.NET 2.0 has included some new controls that provide paging, as does the DataGrid in ASP.NET 1.1. However, this tip shows you how to roll your own paging for a simple data viewer.

Creating an AJAX Repeater in ASP.NET MVC

  
The "TaskList" is a tried an true example of the most basic thing that you can do in any framework. Unfortunately, I had some problems finding a really good example of all the steps necessary to get a task list to work in ASP.NET MVC 1.0.

Creating a Generic Entity Framework 4.0 Repository

  
With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

Creating a Simple Class in C#

  
The second article in the C# Object-Oriented Programming tutorial describes how classes are created in C# and how behaviour, in the form of publicly visible and private, hidden methods can be added. This demonstrates some of the uses of encapsulation

System Development Life Cycle

  
The Systems Development Life Cycle (SDLC) is a conceptual model used in project management that describes the stages involved in an information system development project from an initial feasibility study through maintenance of the completed application. Various SDLC methodologies have been developed to guide the processes involved including the waterfall model (the original SDLC method), rapid application development (RAD), joint application development (JAD), the fountain model and the spiral model. Mostly, several models are combined into some sort of hybrid methodology

The Agile System Development Life Cycle (SDLC)

  
The goal of this article is to describe the agile system development life cycle (SDLC), putting it in context from what you may have heard about within the agile community and more importantly within the context of your overall IT efforts.

Creating SharePoint items with CreateItemActivity

  
Instead of creating new list items from code in your workflow you can use CreateItemActivity. CreateItemActivity can be used for creating list items or files. Properties of interest for this activity are the following (most of them are self-explanatory):

Creating an Excel Spreadsheet programmatically using VB.NET

  
The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel. This article reveals using Excel from a managed application. Excel is the spreadsheet component of Microsoft Office 2000. The majority of Excel programmatic functionality is exposed through Automation via the type library Excel9.olb. The intention of this article is to express that a managed application can interrelate with Excel as a COM server.

Creating an Excel Spreadsheet and Adding Data to It Programmatically

  
The Interoperability services make it veryeasy to work with COM Capable Applications such as Word and Excel. Thisarticle reveals using Excel from a managed application. Excel is thespreadsheet component of Microsoft Office 2000. The majority of Excelprogrammatic functionality is exposed through Automation via the typelibrary Excel9.olb. The intention of this article is to express that amanaged application can interrelate with Excel as a COM server.
Categories: 
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