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

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

Workflow does not save settings

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
Hi, all! I have created a site on SharePoint 2010 (Team site template). Convigured several approval workflows based on a template of the "Adoption of SharePoint 2010 " for the Shared documents library. Then keep this site as a template. After I have created another site on previous saved this template. That is, the workflows themselves under the same name in the document library are present, but all settings (participnts accounts, the duration of tasks, etc.) - no. How to deal with this? It is necessary that users would not think of workflows settings, and run ready.

View Complete Post

More Related Resource Links

Properties.Settings.Default.Save() folder

How can I determine or change the location that Properties.Settings.Default.Save() will save my user.config file.  Everything I have seen says it will be stored in a folder based on my application name but in my instance it's including my companies name as well and I cant figure out where it is getting that info from.  I would like to store all my local data in the same place so I want to know where the data will be stored so I can save other stuff there as well.  For example; I have a winform project named XYZApp which generates XYZApp.exe.AssemblyInfo.cs contains the following:[assembly: AssemblyTitle("XYZApp")] [assembly: AssemblyCompany("Software Company International, Inc.")] [assembly: AssemblyProduct("XYZApp")] From what I Read online my user.config should be stored in C:\Documents and Settings\<USER>\Local Settings\Application Data\XYZApp\ However mine appears to be stored in C:\Documents and Settings\<USER>\Local Settings\Application Data\Software_Company_XYZ\ So somehow its picking up the company and only part of the actual application name.  I'd like to have a way to know what the folder is going to be called so i can keep all the data in the same place. Is there a property i can check to determine this?

How to save settings in wpf runtime

I am making a wpf webBrowser application. My problem is: This is probley very easy, but i can't figure it out for the life of me! How can i save eveything like history and bookmarks so that when the program is closed it opens up as  the user closed it, with bookmarks and history still there? Thanks in advance!

Edit workflow at runtime save in db and restart on per client basis

I need to be able to create a workflow in code (not a problem). Start the workflow and edit it depending on business logic (Add Parallel branches) save workflow in database per client. Pull workflow defintion from database by client and continue to work and persist as workflow progreeses. I thought XamlServices or ActivityXamlServices but i can't seem to get to the individual activities to edit.

Completing Workflow on Document Save


I have a Workflow on a document library that is triggered when a new item is added and when an item is changed. The workflow alters the title of the document to add specific metadata that would be tedious (as well as adds certain other metadata).

The workflow completes successfully if a document is opened and then closed. However, if the document is opened and then saved and then closed, the workflow shows as having been stopped, and the title isn't changed nor have any of the other fields been updated.

If the document is opened and saved, but not closed, the workflow stops as well.

Any ideas how to make the workflow complete if the document is still open?

VWD2010 Cannot Save Toolbar Settings



I keep adding the Build Toolbar buttons everytime I open a new instance of VWD2010.

After I restart VWD2010, the Build toolbar settings wasn't saved. Sad

Thank You,


How to save FontFamily and other Font settings as strings


I need to be able to save various font settings (FontFamily, FontStyle, FontWeight, etc.) to strings, so I can save to a configuration file or to XML.  How do I do this?  And then, how to I convert back from a string to a FontFamily.  I tried constructing FontFamily with a string argument, but it works with absolutely anything as the string.  I guess part of my issue is that I am still trying to understand all these font classes in WPF.  To me, it was so simple in WinForms to just deal with the Font class.  Now, to save all of the properties of a font, I have to save about 5 different classes.

John Anderson

C# How do I save settings internally in an exe file?

I have been looking for this code for weeks but can't find anything that will let me save my application settings directly inside of the exe file, the reason I need to do this is to make the application portable between users.
I simply want to be able to store a few strings inside the exe file, and as of yet there seems to be no way of doing this.
My current code uses Application.Settings but this stores the values in %Application Data%\ApplicationName_exe..., a folder which not only keeps the settings in plain text but also is outside of the exe file.

I can't believe this simple necessity isn't implemented anywhere and all the source code needs to be written just to add a few strings!


Save Workflow Runtime as Application State or Session State for a website with multiple users?


I used Windows Workflow Foundation 3.5 as a page flow navigation for a ASP.NET website's Previous and Next page navigation.

The site acts like a shopping cart and each user has his own session and user data.  The app only has one WF.  I am not sure if I should generate one Workflow Runtime for every user or for simply generate one workflow Runtime for the entire application in my case?   

In the global.asax:

void Application_Start(object sender, EventArgs e)

void Application_End(object sender, EventArgs e)
    void Session_Start(object sender, EventArgs e)
        // Code that runs when a new session is started
        System.Workflow.Runtime.WorkflowRuntime workflowRuntime = new System.Workflow.Runtime.WorkflowRuntime(WorkflowManager.WorkflowRuntimeKey);


Auto Save Workflow after any ModelChanged event....


1. After any changed to work flow I want to save my workflow locally on disk (e.g. similar to _workflowDesigner.Save(FileName)). When I call _workflowDesigner.Save within ModelChanged event none of my changes are reflected in that File which gets Saved...



2. Under which scenario TextChanged event gets raised ?

Free Series of SharePoint Workflow How-to Videos

This is the series of "How to" Document Workflow with SharePoint using Visual Studio 2008 (using the .NET Framework 3.0 for backward compatibility to Visual Studio 2005). I have created video's that show the most common requests that I have seen around MOSS/SharePoint 2007 workflow & document workflow.

Save images to SQL CE

Storing binary objects (such as image, office document etc.) into database is a little cumbersome when it comes to retrieval. Hence the most commonly accepted way is only store the file path in the database, and to store the documents on a file share.

Convert English to Arabic number without changing any regional settings in .net

Well, most applications that I worked with was multilingual that supports English UI and Arabic UI.

And one of the major issue that we have faced is displaying Arabic numbers without the need of changing the regional settings of the PC.

So the code below will help you to display Arabic number without changing any regional settings.

validateRequest appears to be kicking in in MVC RC1 despite settings

After upgrading a project to the RC a System.Web.HttpRequestValidationException is thrown when posting a value containing HTML from a TextArea. I have checked that validateRequest=false in Views/web.config, and have set this in the application's root web.config. I have also created a fresh MVC project, created a simple view & controller and posted a simple html paragraph element with the same result. Call stack provided. [HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (html="

hello world

").] System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +8718538 System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +111 System.Web.HttpRequest.get_Form() +129 System.Web.HttpRequestWrapper.get_Form() +11 System.Web.Mvc.ValueProviderDictionary.PopulateDictionary() +113 System.Web.Mvc.ValueProviderDictionary..ctor(ControllerContext controllerContext) +74 System.Web.Mvc.ControllerBase.get_ValueProvider() +31 System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +53 System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +109 System.W

Profile not being save after redirect.



I am trying to save values into a Profile on Page1, then redirect to Page2 and access those values.  However, after the page redirects the profile values are blank as if they were never saved.   When stepping through the code I can see that they are being save on Page 1.

I suppose I could use session variables to store the information but I don't understand why saving the profile doesn't work.

private void PayWithPayPal()
        ProfileCommon profile = this.Profile;

        if (Global.CurrentUserName.Length > 0)
            profile = this.Profile.GetProfile(Global.CurrentUserName);
        profile.FirstName = uxFirstNameShipping.Text;
        profile.LastName = uxLastNameBilling.Text;
        profile.ShippingAddress.AddressLineOne = uxAddressLineOneShipping.Text;
        profile.ShippingAddress.AddressLineTwo = uxAddressLineTwoShipping.Text;
        profile.ShippingAddress.City = uxCityShipping.Text;
        profile.ShippingAddress.State = uxStateShipping.Text;
        profile.ShippingAddress.ZipCode = uxPostalCodeShipping.Text;

        Response.Redirect("~/expresspayment.aspx", false);

protected void Page_Load(object sender, EventArgs e)
        ProfileCommon p

How to save Unicode in SQL Server 2005

I am using google transliteration to display the text in Hindi/Tamil

I tried to store the text appear as Hindi from textarea in an nvarchar
field of database (SQL Server 2005) , the text saved as "???????".

After retireving text from the same it display the text as "???????".

Can anyone help me how to store and retrieve the actual data from SQL
Server 2005?

I am using ASP.net,VB.Net and SQL Server 2005

server side does not save data when using POST data to another URL using WebRequest


 I am using a IIS 7.5 on Windows 7. I have a simple application that uses System.Net.WebRequest to POST data to another URL (in fact, the server side URL is on my local computer and it is hosted in IIS 7.5).

  1.  The problem is the server does not save data from client although on the client side codes when I debug and I see the OK message return from the code line

   response.StatusDescription; // this has value of "OK"
2. How can I debug the server code side where to receive the request from client side who posts the data ?

The following is the codes for client who posts data using System.Net.WebRequest, and codes for server side who received posted data to save to database.

Client side codes: // also run on my local computer

public string PostIntegrationXml(XmlDocument xmlSubmitDoc)




Microsoft Office Excel cannot open or save any more documents because there is not enough available


hi all,

     i am new to asp.net programming i am trying to create an ms excel file with charts drawn in it,

i wrote the complete code for it but the it is saying

Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space. 

i have set the permissions to my complete disk space and all user accounts, and i tried with anti-virus disabling also it didnt work please try to help me out and my code is :

Imports System.Data.OleDb
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Tools.Excel
Imports System
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