Tell me and I will forget Show me and I will remember Involve me and I will understand - Confucius -
Concepts LINQ Entity Framework WCF WPF RESTful Web Unit Testing .Net Workflow More >>
Tools Visual Studio Windows IIS Silverlight More >>
Type Screencast Tools Video Newsletter Sample Article Books Magazine How To Demo Course Products More >>
In my last blog entry I showed how to use the ASP.Net membership provider in a Windows application....
In my last two blog entries I showed how to use the ASP.Net membership provider...
In my last three blog entries I showed how to use the ASP.Net membership...
Barcelona is a beautiful place. Last year I went there for IT Forum 05. But the only problem is few people can speak English outside the conference. This made my trip after conference quite difficult.
Barcelona sure is a nice place to visit. Having Tech-Ed in Amsterdam is just around the corner for me but going to Barcelona is certainly no punishment. Last time I was there I had very little language problems though and my Spanish is next to non existent. Maurice
Wowwwwww, cool dude
In a previous blog post I described the general SOA architecture. I finished after describing the two...
In the two previous blog posts (one, two) I described the general SOA architecture and the kinds of messages...
Nice, missed the ServiceWse proxy first time round :-(
Hi Maurice, Nice wing. Lettering is readable for sure! BTW, I had some troubles seeing the image. Luckily I had Firefox, it did show me the picture (after a right-click), in contrast to IE.
Yes Community Server had some problem with the picture :-( Uploaded it to my normal web site and changed the image URL to that fixed the problem. Maurice
Hi, do you know how can i get the value of User.Identity.Name when a assigned the RolePrincipal straighforward in Thread.CurrentPrincipal? Regards
Hi Miquel, Using the following: System.Threading.Thread.CurrentPrincipal.Identity.Name will do the trick. Maurice
One of the problems I am always having with database development is the gap between data and code. Sure...
Yesterday I blogged about some if the weird runtime errors we had been experiencing. Well some colaberatiosn...
I tried dropping you an email (and I posted to one of your posts regarding this that seems abandoned now). I would like to go through this code a bit to actually figure out where and more importantly why things are failing (i.e. get in with windbg etc). Bill's issue is a bit different than this one but if the JIT is emitting bad calls (or stomping on a method table) that could be very bad. Cheers, Greg gxrxexgxoxrxyxyxoxuxnxgx1@gmail.com remove x's :)
Thanks! Very helpful ;)
Hi, I have written a small report about DLinq and LINQ. SQLMetal creates the object representation of you relation database schema, however there are a bunch of problems regarding this. Since the relational world does not have any notion of inheritance etc. this will not be mapped into the object created from SQLMetal. However DLinq is also capable to create the relational database from the outset of the object, hence you could create your object hierarchy and then let DLinq create the relational database. I look into this and a lot of other stuff in a resent project I have been writing. You find it at: http://www.dlinq.dk/DLinq.html
You are so right, my appologies for the wrong URL.
Maurice
You saved me! Thanks a lot!
Kevin
hope that was a one-off and the rest of your flying gets better and safer as you get more air-time..
where can i get the .NET wrapper class to use lzo in my vb.net application?
So do I :-)
But I don't think I will be flying much more this year :-( At the moment I am wearing a brace to stabilize my back and it will be at least 4 more weeks before I can take it off. By then the autumn will be well upon us and I will be lucky if we have a few more decent weekends. But next year I will be back up there :-)
Hi Imran,
You can download the .NET wrapper for the LZO compression library from the SourceForge site at http://sourceforge.net/project/showfiles.php?group_id=102072
thank you very much, you solve me a problem
Problem solved. Thanks!
What did you use to create the cool image?
PROnetworks is <em>not</em> the original author of this program.
This program is built on "borrowed" code, the original author being "Computer Guru" of NeoSmart Technologies.
The <strong>real</strong> program is <a href="http://neosmart.net/dl.php?id=1">EasyBCD</a> and it really works, with more features, less bloat, and <strong>no theft of code or intellectual property</strong>.
Anywho.... how the hell is VistaBootPRO at version 3.1 when Vista hasn't even gone gold?
Just look at the changelog: it's an exact copy of EasyBCD's... They obviously just look at NeoSmart's changelog and try to copy it.
Just giving the facts.. CG deserves some credit.
Sorry about the HTML in the above entry:
PROnetworks is [em]not[/em] the original author of this program.
The [strong]real[/strong] program is [url="http://neosmart.net/dl.php?id=1"]EasyBCD[/url] and it really works, with more features, less bloat, and [strong]no theft of code or intellectual property[/strong].
Hi Jeff,
Sorry to hear about that. Hope you get things straightened out.
Hi Mark,
I used Camtasia to record the actions and generate a animated gif. See http://www.techsmith.com/
Why in @#ll would I resort to jumping thru hoops in order to deal w/ .Net's bugs(err, xcuse,me , features), when i can do the same thing in a much more readable, smaller , maintainable manner?. The goal of software engieering is to create solutions for real-world issues, not to massage one's ego by seeing demonstrating the latest and greatest features of yet another square wheel, with special interfaces and abstract classes to deal with the occasionans of linear motion across flat surfaces.
Thanks, solved my problem. Interestingly enough, it only hit when installing on xp, and not installing in Vista RC1.
How about the file repair in case of file corruption scenario.
I guess that all depends on what gets corrupted. If it is the zip file then these classes will not help. However if it the internal stricture they could potentially be used to recover the contents.
PingBack from http://www.centplus.com/matt-gives-google-updatematt-cutts-is-google-s-quality-control-chief/
Actually I typed Cup<T> Generics in live search and got no images at all. Only google works for me.
You are so right. In Live images search it returns: We didn't find any results for Cup<T> Generics
Not very usefull :-(
Hi Jon,
That would make sense. However I still under the impression that it would have been more consistent to do the same in every context. IOW allow for a single child and make that a sequence when needed. Oh well guess its probably to late for that and its not all that important anyway.
foreach (DependencyProperty prop in DependencyProperty.FromType(typeof(WorkflowConsoleApplication1.Workflow1)))
{
if (prop.OwnerType == typeof(Workflow1))
Console.WriteLine("Give me: [n={0}|t={1}|att={2}|evt={3}|def.value={4}]\n",
prop.Name,
prop.PropertyType.Name,
prop.IsAttached,
prop.IsEvent,
prop.DefaultMetadata.DefaultValue);
string value = Console.ReadLine();
rtv.Add(prop.Name, value);
}
It looks like we will have an easier solution coming very soon. My work around is being improved on.
Regards,
Paul
Take Heart, I did something very similar at the start of october, except my broken back came from falling out of the tree i crashed into. mine will take 8-10 weeks total to fix, but i have been given the go ahead to return to flying after just 3 weeks! I think i will wait a couple more.
Well almost time to leave for Tech-Ed! Guess I better start packing my bags :-) Not that I can take a
What was shown on the database access? Linq to SQL, Linq to Entities or both? Any predictions on whether one might be dropped? Slidedeck available maybe?
Anders did talk about and demo LINQ to SQL and did mention LINQ to Entities briefly during his presentation. No comments on anything that might be dropped yet. The slides are available on the event site.
This morning Anders is doing another talk on LINQ and data. Unfortunately I have to b at the ATE booth so will mist most of it.
PingBack from http://workblog.jonrowett.com/index.php/2006/11/16/links-for-16-november-2006/
Hi! Good site, and realy has more information! I bookmark your site, best greetings and Good Luck!
This link(http://go.microsoft.com/fwlink/?LinkId=73348) is not working - Any mirrors available for this?>
add System.EnterpriseServices into your reference will solve your problem as it solved mine :)
Yes that works. However I don't really want to add a reference to an assembly I have no intentions of using to a project and start distributing it with my solution to customers.
After renamed "Visual Studio 2005 Extensions for Windows Workflow Foundation (EN).exe" to "Visual Studio 2005 Extensions for Windows Workflow Foundation (EN).zip", installation was successful, thus the problem solved.
Thanks for the tip!
Nice job! Keep going... ;-)
Liked it. The resolution is ok. Any bigger would give problems (e.g. on my 1024x768 laptop). Speech quality excellent.
Thanks guys :-)
@Alex
Would you prefer 800*600 over 1024*768 as a screen resolution?
Thanks for the tip.
Same problem => Same solution!
Charles
Maurice, what's the advantage of using this class? Why not use a dictionary instead? No casting needed..etc.
Imports System.Collections.Generic
Module Module1
Sub Main()
Dim key As String = "The Key"
Dim value As String = "The Value"
Console.WriteLine("The value = '{0}'", value)
Dim dic As New Dictionary(Of String, String)
dic.Add(key, value)
value = "Something else"
value = dic(key)
End Sub
End Module
Using a dictionary is great if you just want to store some information and be done with it. A cache gives you a lot of additional functionality though. Using expiration, both fixed and sliding, you can automatically remove items that haven't been used for a while. Or using dependecies you can automatically remove items when a certian condition is met, for example when a config file is changed or when the result of a SQL query changes.
Hi, I installed VS2005R2 on my Xp SP2 machine. After the installation, I am not able to access the Virtual server. I verified the Service status and its running. I get the following error when I open the Administration website. I verified the DCOM setting for the service which are set right.
Please let me know how to troubleshoot this issue.
Phani
******Error*******
Specify Virtual Server
Could not connect to Virtual Server. Access was denied.
You can specify an alternate Virtual Server below.
Enter the name or IP address of a computer running Virtual Server. Leave the entry blank
to connect to Virtual Server on the same computer as the Administration Website.
Computer name:
Add this computer name to the Virtual Server Manager list
<Hostname> Recent Events
You do not have permission to access the event viewer.
Type Date/Time Category Message
Thanks .. for the help ... I need to WF very much and was unable to install, thanks for the help
- AnilG
very nice site! thanks!
i love this site thanks to adim
PingBack from http://chanukahdealings.be/index.php/archives/608
Yesterday I showed in my previous blog post the minimal code required to create an image from a workflow
Turns out I forgot to include one of the utility functions use in my previous two blog posts at and at
PingBack from http://msmvps.com/blogs/theproblemsolver/archive/2007/01/06/minimal-code-to-create-an-image-from-a-workflow.aspx
PingBack from http://msmvps.com/blogs/theproblemsolver/archive/2007/01/07/adding-activity-event-status-to-a-workflow-image.aspx
here is how to format elapsed in hh:mm:ss:mmm
Dim ts As TimeSpan = timer.Elapsed
Dim timeElapsed As String = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", _
ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10)
YourKit .NET is _much_ better http://www.yourkit.com for CPU profiling and memory leak hunting.
Unless I am very mistaken that is the default formatting of a TimeSpan.ToString().
Hi Sergey,
Thanks for the link. I didn't know ahout YoutKit.NET yet but I will check it out next time I need to check a memory leak.
Thanks
I am having the exact same problem with R2
I can access the master status page and see the server up and running in firefox. But not IE... any suggestions?
PingBack from http://bookmark.slimblogs.com/article/666224/Workflow-input/output-Activities-for-WCF/
Your two examples could be equivalent. In the first, the manager makes a decision, and could reject the expense report, which could land it back on your desk. This is exactly the same as the second one's clarification step, where it comes back for clarification.
So the way I read it, the above article doesn't say 'use sequential here and state-based here', but 'either will do'. If you've got other arguments as to why one should be used in preference to the other I'd like to hear them...
Hi Ian,
It isn't so much a case of you needing to use one or the other type. Lots of problems can be solved with both types of workflow.
For example. In a recent project I created a workflow with two points the work needed to be checked and if the check failed part of the work needed to be redone. Because the whole process was very rigid and government regulated, my first choice was a sequential workflow. But because the two check, where the checked check failing would end up just before the first check, required a number of extra loops the workflow became hard to create but easy to visualize. When I redid it as a state workflow it was much easier to implement because there was no need for a looping construct. But then the drawback was that is was harder to see what was going on in the workflow itself
Hope this helps.
This Microsoft WF installation scenario requires that clever trick. Thanks for saving our time!
PingBack from http://sqlserverforum.org/archives/2007/01/11/sql-server-ce/
No disagreement, just wanted to add :)
There is nothing stopping you wrapping the entire method with #if, not just the body. Also the advantage of #if is that the code doesn't have to be compilable. Witht he attribute, your code must be compilable in the first place.
The main advantage of Conditional is that it can be applied at the called method only without having to surround all the call sites with #if as well...
You are completely right and that works. The thing about removing the complete function using #IF is that, as you point out, you need to do the same with every call. And forgetting one or more doesn't give a compile error until you switch to release build. Now these errors aren't hard to fix but I dislike the idea that just switching from a debug to a release build van cause errors.
Hi I am using VS2005 and in the postbuiltevent of the project i use the following command :
ILMerge.exe /wildcards /log:ILMerge.log /out:$(TargetDir)Merged_Tool.exe $(TargetPath) $(TargetDir)Interop.*.dll
What I wanted to do is merge the program generated .exe and all the Interop*.dll into the executable directory into the Merged_Tool.exe and Copy this Merged_Tool.exe into some separtae directory (without copying the Interop*.dlls into that directory) and wants to successfully run it. When I run the application it gives "FileNotFoundException" because all the Interop dll's are not there in this "Merged" executable directory, when I copy all thse files over there it works fine.
Can any one solve my problem as I dont want to distribute these Interop dlls to the user.
I have seen the log and the log simply says that all the assemblies are merged successfully
Hi Hem,
When I tried your PostBuildEvent it failed because it was unable to find the assemblies. In my case that was because of spaces in directory names. Not sure if you issue is the same but changing the command to:
"c:\Program Files\Microsoft\ILMerge\ILMerge.exe" /wildcards /log:ILMerge.log /out:"$(TargetDir)Merged_Tool.exe" "$(TargetPath)" "$(TargetDir)Interop.*.dll"
fixed the problem for me. Copying just the Merge_Tool.exe to another directory was all that was needed to run the app.
Another possible reason could be the COM server you are using. As you didn't specify it I just used Visual FoxPro which has a pretty standard typelib.
Great
strugelling with MOSS2007
Very nice site! Good work.
Great Tip! Thanks for saving time. Needed it badly.:)
--
Bharat
Problem Solved. Thankx
retrieve some data from a table and also insert that another table through a query
Stroodle?
Surely an apple pie
luogo grande:) nessun osservazioni!
In my experience, you're hardly missing out on much. NUnit (the free unit testing framework for .NET) still provides a better testing experience than the VSTS support.
The two places it does fall down are a lack of IDE integration, but that's cureable with TestDriven.NET, or just keeping NUnit running in the background - it's hardly heavy...
... and a lack of builtin coverage tools, but there's NCover for that purpose. Although, the usefulness of a coverage tool in test-driven development is fairly negligible - if its there, it's there because a test required it.
I use enterprise, and I still use NUnit. The `red/green bar` thing is critical for me.
--Chris
This and other information about MS Sync Services and SQL Server CE can be found at http://www.sqlserverce.org
Thanks, this was very helpful. I was getting the error from time to time and stopped eventually using the update service option because I thought it was broken.
It's really, really difficult to put all the product team members on a plane. This is the first time we are doing the event, and we are definitely planning on how we can roll this out to a much broader audience than our "convinient to Seattle by plane" crowd.
I had been battling the same problem for almost 6hours until I saw this post. It works well, I have started writing my first windows workflow application.
Thanks for your help.
interesting
Interesting...
I was banging my head on this one too and then when you said that it opens in FireFox a little light went off. Well not quite but I did actually say Aha! What you need to do is add the Virtual Server site to the trusted sites list. Once I did that is worked. Go figure.
Cool}Cool!
Thanks for the tip. Saved me a lot of time
i have get help from this article,thank you!
A very good article. keep up the goos work. :-) Cheers
I am able to go through the entire process on installing the work flow extensions, however its not showing up in VS 2005 templates?
Hi,
as you correctly states, this is because of security reasons. HtmlEncode makes sure (at least in some manners) that XSS-attacks are not possible. HtmlEncode should always be on.
In my opinion, a better solution is to use a templatefield and perform the formatting in code behind.
I would also recommend Microsofts quite new AntiXss library. Its free, and uses a whitelisting-approach.
This bit me recently, too, but it turns out Close() -- Dispose() calls Close() -- must be called in a try/catch block because if the server returns a Fault message the client object must Abort(). It cannot be disposed!! This is so stupid and makes me so sick to my stomach that Microsoft implemented IDispose with it throwing exceptions, but that's the painful truth.
So, the "best" way to deal with the client is not ..
using (ClientType client = new ClientType())
client.MyMethod();
.. but rather ..
ClientType client = new ClientType();
try
client.Close();
catch
client.Abort();
Fun, huh? Not ..
Don't you know what is the reason that TextFieldParser lives in Microsoft.VisualBasic.FileIO, but not somewhere in common namespaces? I wouldn't have had to write my own if I knew where to find it :)
Well my guess is that it all comes down to ownership if namespaces. I know the Membership or Caching API's that lives in System.Web is just as useful in a WinForms application. However it was developed by the ASP.NET team and they had to put it in the Syetm.Web namespace. My guess is the same happened here where the VB team created a very useful class and didn't have permission to put it in System.IO where it really should be.
Just my guess though and there could very well be other reasons I am unaware of.
Hi Maurice. Great article. Congratulations. How can i use my own data base (e.g., MyApp.mdf) instead ASPNETDB.MDF ?
Thanks,
Edison
Hi Edison,
There are two easy ways of doing this. Either set the LocalSqlServer connection string to point to your own database. The drawback, or advantage depending on your point of view, is that other providers use the same connection string and are. The other solution is to use a different connection string name in the connectionStringName="LocalSqlServer" line in the app.config. This way you can specify a different database for just the membership provider.
Thanks! Helped me too! Used time to have coffee with friend :)
Just a clarification: Acropolis will be a Microsoft product. patterns & practices ships guidance (like CAB and SCSF) not products.
Both the CAB and SCSF are a download and consist of bits that are supposed to be used. Makes both of them sure sound like products to me. But I guess there may be something in the EULA that makes it guidance instead of a product.
Top tip - I was really getting narked by this!
I also sometimes get this error when updating service reference in the client. I solve this problem by closing solution in Visual Studio and open it again - then update is successful.
Maurice,
I have a VS.NEt 2002 running on a Windows 2000 server that uses the System.Threading.Thread.CurrentPrincipal.Identity.Name code to capture the user ID. However, it does not work on a Windows 2003 server. Any ideas?
Are you running a web app? In that case you need to use the HttpContext.Current.User.Identity.Name.
Otherwise you can try AppDomain.CurrentDomain.SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy.WindowsPrincipal) and see if that makes a difference.
Congratulations Maurice! It's well-deserved of course.
Visual Studio 2005 Extensions for Windows Workflow Foundation Troubleshooting Morning
If i want to find out the total number of lines a csv file has before i create the string array to store the content, what can i do to achieve it?
Unfortunately, I need the same functionality -- it would be super if MS could provide something built-in.
Ditto on what everyone else has said. I was banging my head against the wall and then found your blog.
Thanks for posting this solution to what appears to be a prevalent problem.
How do you use membership provider in windows application?
If you have a web application, when you use the sqlmembership provider then the database is created automatically. However, it is not the case in windows environment.
My question is how can you generate required tables and point to those tables?
I would appreciate if you can email me the solution.
thanks
Mahesh
bemahesh@yahoo.com
Can you give an example of a valid connection string that points to the same database name in a different location?
Hi Jason,
Sorry for the delay but I just got back from my vacation.
The only way would be to read the file and count the number of lines. Sort of means reading the file twice though.
You can use aspnet_regsql. This will work either interactive or using command line parameters.
Good article. I'm relatively new to workflow persistence. I'm wondering what would trigger the execution of the dummy timer insertion? Would it be the WorkflowRuntime.WorkflowPersisted event, or some other mechanism?
You could add the code to the Execute event as that is when the workflow actually starts waiting for something to happen.
thanks...for your post
Is there any way this can be achieved in a win forms client without the obligatory System.Web namespace being referenced?
Craig
Not really because that is where the required types are defined. Of course you could dynamically load the assembly and use reflection on all calls but for some reason I prefer just to ignore the "Web" reference.
Hello,
Please mention that this presentation is:
******NOT IN ENGLISH********
Thanks!!
Yeah, it will give you all this only according to current timezone information... If you're in Arizona, It will give you nothing !!!
Is there a way to get that same info for another zone, even if you're in a zone where there's NO DST, like Arizona ??? PLEASE, thanks.
Dave
Dave,
As far as I know there is no way to do so. Most of the implementation is actually in System.CurrentSystemTimeZone which uses some Win32 API calls that depend on the current Windows configuration.
You don't say anything about that provider configuration must be placed in App.config file.
simple and obvious but useful nevertheless ;)
Cubaman,
This is a 4 piece blog post, the last one contains the complete code including config file settings. See msmvps.com/.../81140.aspx for that one and links to the previous ones.
http://www.ourselves.nl/?p=11
Thank you! After an hour of messing with this problem I came across this post and like everyone else 5 minutes and I am good to go!
I have exactly same issue that I'm working on. Did you find solution? I'm interested in HTML format
No I never did discover a solution. In fact I am hoping SQL Server 2008 will allow for more export options. I don't know if it has or not as I am not running the beta though.
I have posted a follow post on the video.
blogs.microsoft.co.il/.../the-coderush-ivbug-presentation-amp-model-view-presenter-video.aspx
AHA finally a good solution to my problem
Better equipment will allow a bad developper to make the same mistakes faster.
Ouch that hurts :-)
Hi Maurice. I'm currently implementing a custom MembershipProvider and MembershipUser class (inherited).
What's the difference with regards to the App.Config file?
Shurely you mean "far away countries", not counties !!
LoL :D
Pingback from ThemePassion - Best stuff about design! » Developing custom Workflow activities
Hello Maurice!
I have developed a web application using asp.net membership. I want to use the information from the tables in the database for the web application in a windows application, but doesn't seem to work. For example, I call MembershipUser user = Membership.GetUser(userID);, but user is null(I have used SQL Profiler, and there are no stored procedures executing). I have also created an app.config file with the same provider as I use in the web application.Can you help me with this? Thank you!
Hi Vicentiu,
Hard to say what is going wrong with more info.
First step could be to check the Membership.Provider property and see what kind of MembershipProvider it points to. It should be a SqlMembershipProvider not the ActiveDirectoryMembershipProvider. Next the ApplicationName property, is it the same as in the web app?
Also check the private _sqlConnectionString using the debugger, is it pointing to the database you are expecting?
Good luck!
thanks mr.Maurice ....
i was searching for this in google finally i found out ur suggestion ..
it helped me a lot
without knowning this i was wondering how to copy files ....
thanks a lot
Adding a reference to System.EnterpriseServices only fixes the compile problem. You will still get a run-time issue as this answer does not correct the root problem. I'm still looking for a solution.
Thank you so much Maurice for this post. As you suggested, I removed the entry from web.config in the CONFIG folder. I also removed it from web.config.comments (I believe that is the file name). I finally removed the entry from my project's web.config. This finally resolved my issue with this project and when creating new projects.
Hi, Maurice,
how can I check "private _sqlConnectionString" with debugger?
While reading your articles I rewrote everything in C#
I could not find it anywhere in the code
I also searched with Lutz reflectoe all System.Web.Security and I could not detect it there
Gennady Vanin
Pingback from Web 2.0 - Social Media - Internet News - Blogging » Visual Studio 2008 and Visual SourceSafe
i want masktextbox
hi, Maurice
i am already using membership provider in my site but i also want to use that particular aspnetdb.mdf for retreiving data about user in the windows application
and also ihave diffrent names of windows application and web aplication i also read the above comments by diffrent persons but iam unable to do that can u please give me a step by step details how to do that
Nishant Barsainyan
Dennis just posed a session report, with some pictures, about the WF HOL we did last week in the Microsoft
Its useful article. But I want some more info, if available. As we know this article is about to use the ASP.NET Membership in Windows application. Connection string in App.config can be hard coded inside the windows application code for security reason. My question is how to use connection string programmatically for Membership provider? because security is issue.
If anyone has idea, plz email me a_kalhoro AT yahoo.com
Regards
Hi Aftab,
Not that it is really much securer to store you connection string in code but you can always change the connection string before the membership provider is first used like this:
My.Settings.Item("LocalSqlServer") = "My real connection string"
thanks, exactly what I needed :)
Pingback from SubVersion Instead of Visual SourceSafe | DMB Consulting Blog
how to find my cd key?
If you don't mind what kind of laptop did you get because that is what I have to do. If not what kind can you post full specs.
What I got was a XXODD XNi8227d (www.xxodd.nl/index.php) with the T7700 processor and the 200 Gb disk. They make fast laptops for the gaming market.
I believe the same laptops are sold in the US by www.extreme-notebooks.com but their site is down for maintenance at the moment.
ILMerge is helpfull in some scenarios, but with others it can be dangerous.
For example - if you merge 2 assemblies with the same non public type on both - it will work but will change the name of the type.
is it a problem? yes if you use reflection...
and you can end up with multiple instance of a singleton too.
don't forget the memory footprint of the merged assembly.
so do use this tool, but only after you understand the implications.
read more on readcommit.blogspot.com/.../referencing-two-different-version-of.html
You da Man! Thanks for the time-saving post.
Thanks :-)
But may I suggest moving to Visual Studio 2008. So much better!
How to Goto any location or bookmark; get point of cursor; replace text... in the open file.doc?
Please code more
Thanks.
If you want to move the user to a specific point in the doc you need to set the Selection.
Pure XOML workflows and a custom root activity
Che un Workflow possa essere definito attraverso una sintassi xml-like, è ormai cosa nota. Che questa
I try to run NuGenUnify which use ILMerge but it keep give me this error result :
Trying to read assembly from the file 'D:\workspace\tes ilmerge\tesdll.dll'.
Could not load assembly from the location 'D:\workspace\tes ilmerge\tesdll.dll'. Skipping and processing rest of arguments.
how to fix it?
Hi Riani,
I would need more information to make even a wild guess to what the problem is.
Pingback from Reflective Perspective - Chris Alcock » The Morning Brew #30
i don;t think we should move to vs2008
since i don't know how to setup the web part on it.
Thx
Having posted your comments on nearly all forums i could..i have only managed to increase the votes for SP3 by around 20 or so... i doubt this is going to be enough!...how else can we make them listen...????
There is a third party tool available which provides User Interface for SqlMetal. This tool have features like project managment and error checking.
sourceforge.net/.../sqlmetalbuilder
Please any one tell me how to change connectionstring at runtime in C# as Maurice said in response of Aftab?
Please emailme at zafarvu@yahoo.com
I will be very thankful.
Hi Ather,
In C# you should be able to use Settings.Default.Item["LocalSqlServer"]= "My real connection string"
I had the same problem. Microsoft should add a max value by default. Especially on laptops with limited disk space this can be painfull.
geertverhoeven.blogspot.com/.../how-windows-vista-fills-your-disk.html
Thanks you for your prompt reply.
again thanks
Hi, I want to upgrade from VB5, Is VB9 the latest version? Thanks.
Hi Tunrayo,
Yes VB9 is the version that ships with Visual Studio 2008 and is the current version if Visual Basic.
not able to down load any updates on my vista program
Hi Maurice,
I can get user list on web form like that;
-----------
ListBox1.DataSource = Membership.GetAllUsers();
ListBox1.DataBind();
But it does not work on windows form, the Membership.GetAllUsers() returns NULL.
but for one user;
MembershipUser user = Membership.GetUser("username")
works good.
Do u have any idea to get the user list for a Windows form ?
Thanks...
Adam
These methods still get compiled though and can be found and called at runtime using reflection.
Hi Matt,
You are completely right, the only thing removed is the actual function call itself.
Hi Adam,
If I am not mistaken Membership.GetAllUsers() should return an (empty) collection instead of null or Nothing is everything is configured right. Both the Membership.GetAllUsers() and Membership.GetUser("username") use the same mechanisms and connection string behind the scene.
Thanks a lot . As you suggested, I removed the entry from web.config in the CONFIG folder. It works fine.
I am not understading the vb.net 2005
Thanks for sharing!!!! it's just grate.
Nice, congrats!
Has SQL Express Client Provider been released yet?
SQL CE is pretty much useless for our needs as we need a robust database on the client.
mail -at- jaypatel/./com
Pingback from php code and scripts » Blog Archive » Edit and Continue in an ASP.NET Web Application
Congrats dude!
In my last post I showed how to self host the workflow runtime and still be able to use a Windows Communication
you need to provide a provider for the roleManager in order to store role information in a database of your choice.
Great dude, I enjoyed reading it! :)
In a previous blog post I showed how to use the ReceiveActivity with long running workflow and how to
Mocks/Software Development Tools/ASP.NET MVC Phil Compares Moq to Rhino Mocks Simplified Asp.net MVC
The new ReceiveActivity and SendActivity that marry Windows Workflow Foundation (WF) and Windows Communication
Pingback from On the WF ReceiveActivity and WCF bindings - The Problem Solver
Pingback from WF Community Bloggers : On the WF ReceiveActivity and WCF bindings
Lifesaver, thank you so much!
I've learned and been using WF recently. My biggest complaint is the amount of code I have to write to get a workflow up running with a local service. I would suggest simplifying the process of communicating to your WF from the host app and visa versa. If that is not an option have a tool generate all the boiler plate code; I don't want to create a custom event args, interface, and class just to talk to my host app.
How simple is it to wire a form up to data? Having a host and WF talk should be simple also.
i am getting error while i am using in vb.net
object reference not set to an instance of an object
Hi There,
I want to learn VISUAL PROGRAMMING in C#, do you have such trainging video? I don't need Console Programming part. Thanks! Please get me back at:
cosmo_general@yahoo.com
It seems to work :)
And it's working, isn't it?! :)
Live Writer is a great program. Can't live without it anymore.
As I previously mentioned having the LINQ DataContext create the database if it doesn't exist yet
I just posted some more info on correlating workflows in relation to WCF hosted workflows: www.develop-one.net/.../CorrelatingWorkflowsUsingWindowsCommunicationFoundation.aspx
Hi, Maurice
I would like to use VB2008 express to connect SQL2000. How can I do it ? If you have solution, please send me stevepoon2000@yahoo.com.hk
Steve.
Yes Patel, I agree. Even you can't implement role based security in SQL CE
Thanks for your posting on March 6th, 2008. I opened visual studio 2005's asp.net project. i did not see any my project. i recollect seeing a my project folder item in a windows app.
can you help me out.
thanks and regards
Ravi.
ASP.NET, ASP.NET AJAX, ASP.NET MVC, Visual Studio, Silverlight April 11th Links: ASP.NET, ASP.NET AJAX
You should try VistaDB. They now have an Express version that's free. It's a 1 .dll deployment and you instantly have your database! Awesome! :)
Now I want my LINQ to VistaDB! :)
Thanks for this!
Hi!
Other solution: drag the System.DirectoryServices assembly from your current .net framework directory to the GAC.
It worked for me, but I still don't know why this problem came up...
hi, i am praveen i am working with a project of atm system Software.
i us VB.NET as front end and oracle as back end.
i want to create a mini statement module so what i do.
please give me project
I am unsure if this is a problem with my PC but when I am building a workflow using the WebServiceInputActivity
Thank you so much man. I was getting mad with this problem. Thank you very much for sharing these informations.
A few days ago I blogged about the "Publish as Web Service" feature not working for me with
Pingback from suffix
I try to implement your code in other example:
- 1) Winform that call a webservice
- 2) Webservice with Custom UserNameToken with protected override string AuthenticateToken( UsernameToken token )
- 3)Sql Server version is Standard version on my Server, but this database is configured by aspnet_regsql.exe.
All works correctly to create user(like your example) in the webservice, but when i try to validate the user (Membership.ValidateUser("Maurice", "Password_1"), i have this error:
The indicator opening session of instant user is not supported in this version of SQL Server.
Do you have a idea?
that's great!
thank you !
thanks, thanks, thanks!
You wrote: “there are better books out there”.
Which ones do you recommend?
Hello and thanks for sharing this info. I supposed you meant run command prompt as Administrator? I did that and typed "vssadmin list shadowstorage" in there. However, according to my actions, the Command promt stated that what I typed is not recognised as an internal, external command and an operable command and batch files. So I guess I didn't understand your solution. Could you provide more specific details on the solution to this low disk space problem?
Many thanks
@Raven,
You are correct and you need to run a command prompt as an administrator. Your command seems ok so I am not sure what the problem is. Maybe the search path or else vssadmin is not installed by default on every Vista installation. I am using Vista Ultimate 64bits and it works with the default path settings.
Without claiming to know every WCF book out there the twp I would recommend are Learning WCF by Michele Bustamante and Inside Windows Communication Foundation by Justin Smith.
The first book by Michele is more an intro book for when you get started using WCF. The book by Justin Smith is for the hardcore internals.
www.amazon.com/.../ref=sr_1_1
Here is a very useful article about "Edit and Continue" in Visual Studio 2005
whyiamright.wordpress.com/.../aspnet-edit-and-continue-in-visual-studio-2005
Thanks for sharing Maurice.
So now what should I do?
I'm kind of at my wit's end.
Oh by the way, I tried shifting some files from the C drive, under the default folder, "User" and in the end I wasn't able to do that because most of the things there are admin stuffs I guess.
Help!
Hello again. I typed in again and this time it worked. Great!
So now I'm actually wondering what these shadow terms mean and so..
whats Shadow Copy storage space?
whats Shadow copies?
I need additional help!
The disk spaces is used for backup copies of files that are changed. If you right click a file you will see an option to search for previous versions of the file. These previous versions are stored in the shadow copy storage.
Wow where to begin.
The biggest hurdle for any adopter is getting round the problems that occur when the blueprint changes. Immediately developers are in unfamiliar ground with handling multiple versions of assemblies so that old versions can complete.
Worse is when a workflow blueprint is deployed with a bug. Imagine an app with a workflow for handling car recalls of 10K vehicles and a bug exists mid-way through the process. Unless the dev is smart with applying workflow changes and has build infrastructure to apply them, those 10000 WF instances will die and he will be out of a job!
Not wanting to lose mine we have anticipated this by:
1) Handling multiple versions
2) being able to apply changes to running versions
3) only using WF for relatively short processes and storing enough state outside of the persistence DB to recover.
Other issues are mainly to do with designer which is slow and horribly text string based.
Documentation is also very lacking - Dharma's book is great but very thin on the workflow changes area, which is critical for prod apps. No other books even try to cover this.
As a result there is a far too much pain for the average dev to use this stuff in any meaningful way in a production business app except for throwaway process instances (e.g. web page flow).
However depite this I think WF is great - it is by far the best part of .NET 3. Please please try and improve it with substantial breaking changes if needed. WF makes so much sense for business apps but it needs to deal with real-world issues more easily.
TDD/Unit Testing TypeMock continues to grow - MbUnit "Gallo" announces built in support for
leave visual basic on bourd
thank you for this wonderful software visual basic
There are several options for validating properties on a custom activity. Besides the possibility of
Pingback from The Blomsma Code - Correlating Workflows using Windows Communication Foundation
Legitimate work at home jobs. Free work at home. Work from home businesses. Work at home http. Work at home.
We are committed to bringing the benefits of bioscience to our patients, by providing umbilical stem cells of the highest quality possible.
this was very helpful thanks.
no comment
28jzgtmcyw [URL=www.876276.com/310768.html] lq0k89pk [/URL] aky0ptdzaj
Just let a thread that does not own the GUI controls/winForm set a property value.
This has been needed from .NET 1.0 and is a much easier solution than forcing developers to a delegate or invoke() call.
1. Provide an attribute for methods/properties on winform;s controls that lets them be set from a thread that does not own the control.
2. When a thread that does not own the control attempts to set a property with this attribute, queue the set request and invoke automatically within the thread that owns the control.
This will work almost every time and only requires special handling when the GUI thread is processing a message for a long long time.
This will greatly simplify any multithreaded access to GUI controls.
I need it
thanks for uy code
i need ur assistance in my project writing
You'll still need this KB article, because certificates granted by third parties are also not valid for more than two or three years, generally, so they will expire while you're still trying to provide updates.
Good point, so you better make sure you get a certificate with an expiration date far in the future. After all your application is going to be successfully used for a long time right
Thanks man, very useful. It works in vs 2008 too :)
No, just when you renew the cert used to sign, you use the same CSR.
can u please email me the source code for the above...
mo
mohit.akl at gmail.com
In a previous blog post I demonstrated how TypeMock allowed us to mock out the workflow runtime infrastructure
Enjoying cup of Starbucks and Deep Purple Live in Stockholm 1970 (via Zune marketplace). WCF/WF My good
i am having the same problem but when i am using the vssadmin command as administrator it is saying that no items can be found that satisfy the query.....
any help will be appreciated...
How do i download visual studio 2008
Some people new to the Internet get confused by all the virtual terminology. This article on Internet Terminology should help.
Actualy sample code will be more helpfull..
Pingback from sql server conpact edition
There is an early access program for ANTS Performance Profiler 4.
www.red-gate.com/.../viewforum.php
I've tried the new release and it's very different from the previous version. It still has a couple of months development to go but it's looking promising. They have a timeline feature now so you can select which regions of code to see which is pretty cool.
Thanks for the tip - that issue was bugging me!
Plz someone post the link of Visual Studio 2008 sp1.
I would like to install SpatialDB. I see warning message "you must make sure CLR intergration is enabled on the database before proceeding". I ask Mr.Google, he tell me this post "Enabling CLR Integration in SQL Server 2005"
Thank you very much!
Ho Nguyen
http://VietBDS.com
Pingback from windows explorer checking for public keys
Order zithromax seek azithromycin Where can I buy azithromycin get zithromax online without prescrption?
Buying zithromax find azithromycin Where can I purchase azithromycin aquire zithromax online without prescrption?
http://ghjejrpyupyuptlhy.com ghjejrpyupyuptlhy,http://ghjejrpyupyuptlhy.com ghjejrpyupyuptlhy
Pingback from Exploring Workflow Foundation Part 1: Custom Activities « Hungry for Knowledge
when i play games sometimes the microsoft visual studio just in time compiler pops up and asks whether to debug the application or not.Sometimes this happens with my web browser and sometimes with softwares as well.
help me how to disable jit .
Buy zithromax order azithromycin Where can I buy azithromycin buy zithromax online without prescrption?
this topic for test car
useful article. I had 'new'ed up the Cache class in my app and when called from NUnit was getting this null object reference. Using HttpRuntime helped me fix it .
benjy
I am having the same problem of low disk space. I have tried to use the vssadmin and resized the shadow storage but still I am having issues with my disk space. Any help Please
Try using WinDirStat and seeing where all the space is going.
Propecia. Finasteride propecia. Purchase propecia without prescription. Propecia pill. Propecia finasteride precautions amp side effects.
I like your article and follow your example. Can you also show me how to change password in a windows form? I tried to use the membership_resetpassword, but can't get it to work.
Thanks in advance,
-Jonathan
Generic propecia.
ZE9kKQ tfgruj 46rujfgjgh jfhjhf jgfxdj gfj gfjgfjfj gfjgf
Drug test valium time. Buy valium c.o.d.. Valium withdrawal. Canada valium. Vicoden valium. Valium. Buying valium.
Simple and nice stuff to read.
Bharath VasiReddy
Yeahbut....
When you get a new certificate, the ClickOnce install counts as a whole new program that just so happens to have the same name, doesn't it? Which means all the existing users have to re-do their settings all over again.
Pingback from Exploring Workflow Foundation Part 2: Custom Activities - Code generation during compilation « Hungry for Knowledge
Hi! It seems the download link is no longer available. Do you have any idea as to where to get this tool? ...Thanks a bunch! :)
At FIRST, CONGRATS, ABOUT THE ARTICLE. THE DOMAIN OF THE WORKFLOWS COMBINED WITH AN OO APPROACH (CLASSES ETC) SEEMS QUITE REALISTIC.
Secondly, questions of are those that have to be
resolved indeed.
Thanx for the tip. I didn't understand why my test where falling on my machine, when using SQL Server CE. Spend several hours on it :(.
Once I changed my test application to X86 my test didn't fail anymore :)
tests time mashine
Pingback from low disk space why
Great job!
i've converted your code to C# and i'm testing it.
btw, is there a way to change the workflow "label" (the "Sequential Workflow" text at the top of the image)?
I don't think there is without editing the image. This basically just makes an image of what the WF designer looks like. And the designer is limited in the ways you can modify its appearance.
Such a pitty.. I'd like to use it to generate some diagrams from empty classes, just to get the image. I'm gonna follow your advice and try a workaround now (maybe cutting the image or placing something over the label).
Thanks for your reply!
Rico.
Pingback from Using a TransactionScopeActivity with a WCF ReceiveActivity
Use the following code to reset the password.
Membership.GetUser("TestUser1").ChangePassword("TestUser!", "TestUser!!");
ظهرت لدي مشكلة و هي
proplem has been encountered while loading the setup components .canceling setup
Neither of these solutions worked.
Fixed the problem by repairing visual studio via Add/Remove programs in control panel.
...bloody microsoft
In a previous blog post I write about what happens when you place a TransactionScopeActivity within a
Do you know if there is a way of controlling the size of the activity images?
I'm overriding the Image property of the Activity class to change the image, but when the activity is rendered on the design surface, the image appears to have been downscaled considerably from it's actual size.
Cheers,
Jim
In two previous blog posts, part one and part two , I covered the fact that the ReceiveActivity and the
Try to locate the following internal static class with reflector:
System.ServiceModel.Channels.MsmqUri
It contains the logic to convert a Uri to a MSMQ format name, where the uri can be obtained from the IChannelListener of the ChannelDispatcher of the ServiceHost.
I'm glad that you enjoyed my book. I do indeed have a new .NET 3.5 version of this book that was released in June. It provides two new chapters (including one on the 3.5 WCF integration features) as well as updates to correct a few errors.
Yes, it does correct the original beta "myth" that you can only have a single WorkflowRuntime instance in an AppDomain.
Overall, it's over 100 pages longer than this original book.
Bruce Bukovics
The .NET 3.0 version deserves the glowing review it received here and the .NET 3.5 version is even better with good updates all the way through. We have both copies on our desks right now.
@Bruce,
Good to hear that a new version is available. A bit unfortunate that Apress send me the old instead of the new version.
i am having the same problem but when i am using the vssadmin list shadowstorage command as administrator it is saying that you dont have the correct permission to run this command.Please run this utility from a command window that has elevated administrator privileges
Right click on the command prompt in the start menu and select "run as administrator". that will give you an elevated command prompt that will allow you to do admin actions.
I came across this Windows Shellextension, which integrates Lutz Roeder's tool into the windows shell. Very cool :
nishantpant.wordpress.com/.../get-rid-of-regsvr32-regasm-gacutil-a-shellextension-for-net-and-com-dlls
1.ProgrammingWindowsWorkflowFoundation
ProgrammingWindowsWorkflowFoundation:PracticalWFTe...
Pingback from Arjan`s World » LINKBLOG for August 21, 2008
SQL 2008!!!! SQL 2008!!! (SP0 of course)
The only problem is companies are slow in upgrading databases and its far easier, or should I say less difficult, to get them to install a service pack.
WOW!! great tip man big ups to you for that one. That directory tool is something ive needed for ages. I am running Server 2008, it is great BTW, but i was using a program that was not running properly.. the server never shuts down so the error logs had filled up my hardrive to max. it would have taken me a while to find what was killing the space. thanks again!!
how to download all of visual studio 2008 SP1
In this post I demonstrated how to create IronPython objects and call them from strongly typed .NET code
In this post I demonstrated how to create IronPython objects and call them from strongly typed .NET code.
阅读到从VB.NET访问Ironpython对象的文章,立即来了兴趣,并进行了以下测试:
阅读到从VB.NET访问Ironpython对象的文章( msmvps.com/.../calling-ironpython
Could you please explain, how exactly do you use this tool "when developing .NET code" ?
Please provide some insights like this:
- when I develop .NET code Lutz Roeder's Reflector helps me like this:
a)...
b)...
etc
Thank you
Gives me insight into what the .NET framework is actually doing where in the old days I had to reverse engineer behavior by observation of a black box.
Quickly show me where a type is created or expose over multiple assembles, even with no source code.
Show me all derived types of a specific type is another useful feature.
Then there are all the plugins with add even more like dependency diagrams or the ability to dump the source back to disk.
Users really shouldn't have to ask for a service pack. With licensing fees and software agreements it should be assumed that regular service packs and bugfixes will be released on a regular basis throughout the lifespan of the product.
This smells of Microsoft's goal of forcing people to abandon perfectly good software that MS considers legacy.
Another issue to your fine solution is that what if you need to pass an argument from a Silverlight app to the service - as the proxy made for Silverlight only supports async calls.
I guess I just missed a very simple point here - but could you point out which?
Cheers, Nikolaj
The other day somebody asked me about unit testing activities without writing a test workflow.
how configure VSS 6 in visual studio .net 2008?
Hi Nikolaj,
Not sure I understand the question. just because calls are async doesn't mean you cannot pass parameters to a service call. And creating the proxy is local to the Silverlight client so no problems there either.
Nice work! I'm using IronPython too, embedded, to add scripting to a SharePoint application. It's great.
I can not find my ID & pass in Teamviewer.Appers as a -
How to create an Python object without having a
VB class from which the Python class was derived?
If you have a Python modul in source and you want to create
a class from it. How can you do that?
Best Regards
Gerhard
Fantastic! This helped me a LOT.
I was about to go back to Web Sites, but now I'm never looking back.
nice.. great job... thanks
Interesting read and fetched back a few memories.
I put a system together last year when Windows WF was pretty much just released. I hit all sorts of problems with the versioning exceptions when I had to make tweaks to the workflow during testing, but didnt realise exactly why at the time. As there were very few resources around to help me it was a case of having to roll my sleeves up and get under the covers to fully understand what was going on.
It wasnt until i had to make some further changes to the system once it was up and running that i fully got to grips with how the workflow runtime loaded the type for each instance. My first impression was that the workflow item worked its way around the workflow so it didnt matter if you changed the workflow it would just work using the latest version - but this isnt the case. Each instance is a copy of the workflow in a certain way of thinking.
How i finished up getting around it was slightly different to yours as i didnt realise you could do the things you have with the web.config and setting references to assemblies.
What i thought i needed to do was create a new copy of the workflow (at design time) and deploy both versions. This was fine but the next issue i had was how do i copy a workflow and make some changes. Heindsight says this was a bad move but it didnt jump out at me at first. Anyway.. I ended up copying the workflow xaml xml and changing the xaml to a new type - V2. And this actually worked!
Now i had old and new versions of the workflow and could make my changes and deploy.
The next issue i came across was code that was hooked into the workflow, i.e. any services/classes that made use of the workflow. You had to change the code to tell it what version of workflow to create, that was easy but then if you had referred to the workflow at any point in your classes, and this had been removed/changed then it would obviously break.
Now i have more experience in everything .net, not just wwf i plan to revisit wwf and the issues above - so i shall keep an eye on your blog with interest on your next article.
As an aside ive not used wwf in a project since as i found the hosting part a large amount of work as i was hosting in IIS and i had a lot of considerations to think about - threading etc. It is this that has put me off using it more as i think its a fantastic tool. I am now about to look at sharepoint and how it uses the WF.
Also id like to learn more about hosting mutliple types of workflow for multiple projects i.e. easier re-use and a single host deployment. This would be really neat for what i would like to do with workflow.
Is there anything you can do about the fact the code examples are getting truncated by the column and therefore some of the examples missing?
How would you implement this on say a live site? Would you simply build a little console app for the project simply for uploading changes to the workflow? Or would you have to plumb this code into the main system to update every single workflow item created?
And does this update a single instance or the workflow as a whole?
These changes are only for a single workflow instance. So you will need to examine every existing workflow, determine if changes are needed to the workflow type and if so make the changes.
I typically add this to the actual host program as this is something you cannot do until you have started the WF runtime. And that means the workflows can start running so you need to have the proper runtime configuration.
Sorry about the code being truncated. Even though you cannot see the code you can still select all the lines and copy it to notepad. Not perfect but at least a workaround so you can see all the code. I will take more care in the future.
Part 1 Part 2 In my previous post I demonstrated how to keep multiple versions of an assembly around
Pingback from Versioning long running workflows part 2 - The Problem Solver
Pingback from Versioning long running workfows - The Problem Solver
Hi Damian ,
Good suggestion to do a few posts or an article about hosting.
Sorry Bruce, I really didn't like your book:
www.amazon.com/.../ref=cm_cr_dp_hist_1
[url=http://drtdfgdtsdhfgy.com]rgfhjdfsdf[/url]
Unfortunately this behavior is by design with 3.5 as we did not have the resources available to add flow-in transaction support in the constraints of the 3.5 release. Look for better answers to this issue at PDC :)
Unfortunately this is not supported in 3.5 and you hit numerous issues if you try (as you've experienced). RecieveMessage in 3.5 was authored as a non-persistable activity (the data it receives is not necessarily persistence-friendly), so either going idle or hitting a persist point (through transactions or [PersistOnClose]) will cause ReceiveMessage all sorts of problems. Life gets better in 4.0 and I'll be able to provide those details after PDC (late October).
FWIW, the documentation also mentions this (though it isn't particularly helpful since you don't get viable alternatives in 3.5)
msdn.microsoft.com/.../system.workflow.activities.receiveactivity.aspx
"To ensure that persistence performs properly and does not persist transient messages, make sure that child activities of the ReceiveActivity do not persist by themselves. This can occur if the child activities go idle when a persistence provider was created with UnloadOnIdle set to true, for instance. "
It is an unfortunate limitation, and one we plan on addressing in the next release.
You may recall my previous posts about using the TransactionScopeActivity within a ReceiveActivity and
Pingback from More on using a TransactionScopeActivity within a ReceiveActivity - The Problem Solver
Pingback from Using a TransactionScopeActivity within a ReceiveActivity in a state machine workflow - The Problem Solver
Part 1 part 2 Part 3 Part 4 You may recall my previous posts about using the TransactionScopeActivity
Part 1 Part 2 In the first article of this series I demonstrated how to get multiple versions of a workflow
Pingback from Versioning long running workfows part 1 - The Problem Solver
Pingback from Workflow Tracking Events Not Available Until Workflow Completes
Part 1 Part 2 part 3 In the previous blog posts we made sure we could have multiple versions of the same
Part 1 Part 2 Part 3 Part 4 In the previous blog posts we made sure we could have multiple versions of
Pingback from Versioning long running workflows part 4 - The Problem Solver
Part 1 Part 2 Part 3 Part 4 In the first article of this series I demonstrated how to get multiple versions
The link for part 3 is pointing to part 4.
<a>http://freesharepointbooks.blogspot.com</a>
Hello, thanks for the info.
But where did you get this part of the code?
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Will it work with ASP.NET 3.5 (I'm using VisualStudio 2008).
Thanks in advance!
There are several ways to get the fully qualified name of an assembly. I use Reflector where you can find it at the left bottom of the screen. Another way is by looking in C:\WINDOWS\assembly.
hey the link for part 3 is pointing to part 4. can you pls correct it so that we won't miss the excellent flow and I don;'t want to miss part 3 and just jump to part 4.
I think matthew is right. There is alot around version control which needs to be looked at. Although I would hope you would change the workflow sometime before you hit the same error 10K times.
Dragging the System.DirectoryServices.dll from the .NET directory to the GAC worked for me.
thanks guci
Pingback from Versioning long running workfows part 3 - The Problem Solver
Thank you for this.
Pingback from Exploring Workflow Foundation Part 4: Custom Composite Activities « Hungry for Knowledge
WOW. Thanks. You just saved me a month a year. I don't know why this fact was so hard to find. Thanks for posting!!
Pingback from Andrew Ferguson dot NET » My Hatred for Unbounded Volume Shadow Copies
www.microsoft.com/.../details.aspx
Great article. It taught me how to version workflows but could not solve my error with an external event because I ma not manually starting my workflows because I'm using my workflows hosted in a web service.
The solution was to separate my interface and give it a strong name.
See: www.adefwebserver.com/.../VacationRequest3.htm
I am writing a SourceSafe tutorial at:
www.kevingao.net/sourcesafe-vss-how-to
If you are interested, you can take a look.
Kevin, MCSD MCDBA
Thank you for valuable information.
Pingback from Exploring Workflow Foundation Part 5: Custom activity validators « Hungry for Knowledge
femara side effects
Did you see it ? :) It's simply beautyfull thing <u>http://adventures.110mb.com</u>
Is it possible to call a mysql db hosted on a unix/linux server using a wcf service from a silverlight site hosted on a windows server?
If you have some sort of web service running on the Linux server you can call into that should be no problem. I don't know if MySql has something like data services out of the box though.
Maurice, thank you very much for this excellent series.
Versioning workflow instances was a problem I had for a long time in my project and now I finally think it is doable, which I doubted before.
One question tough: I have a custom tracking service defined in separate assembly, which is versioned. Recently I've updated it and suddenly old workflow instances, which were started with a previousversion of this service, stopped sending tracking information. I managed to solve this in not very elegant way, could you perhaps suggest some elegant solution? I just want to say that workflow version and tracking service version do not change at the same time.
Thank you again
Hi Ula,
Is your custom tracking service actually using one of your custom types that you are using in the workflow? If so you are probably running into the same versioning issues where the variable used in the tracking service is of a different version the variable type in the workflow.
One option is to use multiple tracking services, one for each version, but that doesn't sound like a very workable solution. Another option is to stick to the native .NET types and only reference the data as Object and use reflection. Again not a very nice solution.
Depending on the situation it would probably be best to add a class to your workflow assembly that does all the workflow data specific tracking work and create an object using reflection as I did with the external data service in part 2 (see the code in SendEvent2). Using this object do all the version specific work and return standard .NET types (like a Dictionary<string, object>) with the data you need in the tracking service itself.
Again not pretty but in line with what WF does.
Thank you for your prompt answer. Issue with tracking service is similar to this post: forums.microsoft.com/.../ShowPost.aspx. Tracking service did not throw ClassNotFoundExcepton or CastException. It simple did not receive any events from the working workflow instance. As if tracking service was not there.
Turned out, that workflow instance keeps somewhere very deep version number of tracking service that was used, when the instance was first created.
Dear members of a forum. Yesterday I have seen an interesting site. On it site is good offer on earnings on the Internet.
Is it really what owners of this site offer?
Adress of the site is <b>http://takegold.110mb.com</b>
Actually, you CAN use a NetMsmqBinding with WF. I've done it. Just mark the contract as OneWay and set the initial RecieveActivity to implement it.
Unfortunately, you still can't use a NetMsmqBinding on the initial receive activity if you're hosting the WCF service in IIS. Some combination of WCF, MSMQ, WF, and WAS (activation services) doesn't let a workflow be activated by receipt of an MSMQ message.
What where you using as the host application when using the NetMsmqBinding?
Normally with the WCF/WF bridge you need to be using one of the context bindings. These not only make sure the workflow instanceId is routed but also add the behavior that creates and manages the WF runtime. So no context binding means no correlation and no runtime.
With any luck using MSMQ with WF should become a supported scenario in the future though. Stay tuned for more after the PDC.
Nice site you have
Hello
Thanks for this article.
If I use a CallExternalMethod in the Replicator how can I pass the correct LoopValueProperty as parameter to the external method.
How can I adapt this example to support multithreading.
Each call to CallExternalMethod would run in a separate thread.
Thank you very much for your help, amazing tips, i was also getting irritated by the lack of space on my system drive.
Good site! Interesting information.. )
Looks like you have a fairly good solution, after spending a few days off goggling, i think your solution is probally the best around
Thanks -
This is a really good series on what is actually a massive problem with Workflow Foundation.
I had to find my own solutions to these problems which basically come to the same point as yours (side-by-side execution from GAC, using reflection to call methods on different versions of the data exchange service).
It works, but it ain't pretty!
To me, this story should be built into WF so that we don't have to write this code ourselves (and have various aneurisms on the way) - we should be able to tell WF what versions we expect to run, and WF should do all the jiggery-pokery to do the actual execution, including whether to use reflection or not.
To me it just shows the immaturity of the product and I really hope that Microsoft are working on this stuff for future releases.
What is the available components in visual studio 2008?
Is the VSS inbuilt in VS 2008?
I'm facing the same problem but when trying to load the designer in a re-hosted designer environment, Do you have any info about that? thanks
Interesting post, not sure I agree fully although you make some excellent points, thanks for a good read.
SQL Server 2005 SP3 Beta is finally available. The download is available at www.microsoft.com/.../details.aspx
"One of the nice new features in Visual Basic 9 are lambda expressions. They where actually added as one of the underlying pieces for LINQ."
You wrote:
"They where actually added..."
Consider:
"They were added..."
Sorry to be so picky, but one thing I notice reading programmer blogs is the awful grammar. It detracts from the message. I do not mean to be so critical. It is embarrassing to be in this profession and see so examples of poor writing.
I'm using .Net 3.5 and have tried exactly reproduce your code, but on the folowing assignment
private void replicatorActivity1_ChildInitialized(
object sender,
ReplicatorChildEventArgs e)
e.Activity.SetValue(LoopValueProperty, e.InstanceData);
The exception: "Dependency Object type 'System.Workflow.Activities.SequenceActivity' doesn't define this DependencyProperty 'LoopValue:Workflow1'."
Where I'm wrong?
Thank you in advance.
@Max,
Please make sure you create the dependency property using RegisterAttached() instead of Register(). That is the most likely error.
Using this configuration I get the next error:
"Unable to connect to the remote server"
I need to authenticate to the ISA Server first. But how I don't know.
I got problem for loading dll.
Error: "CreateInstance failed for type 'ActivitiesLibrary.BaseWorkflow'. Exception has been thrown by the target of an invocation. "
my solution has two project: one is "consoleProject" which contains one No-code(pure xoml) workflow(wf.xoml) and program.cs .
one is "ActivitiesLibrary" which contains one custom activity and one BaseWorkflow(custom root activity:contains the class BaseWorkflow that is derived from SequentialWorkflowActivity and is the base class we want to use for our wf.xoml. )
So consoleProject needs to get .dll generated by ActivitiesLibrary. the thing is it only works when i Manually add the reference to consoleProject. if I delete the reference and use addAssemblyReference to get the path. it wont work.
Here is the codes:
the baseWorkflow classe in "ActivitiesLibrary"
namespace ActivitiesLibrary
public sealed partial class BaseWorkflow : SequentialWorkflowActivity
// The actual code
the xml file of wf.xoml in "consoleProject"
<ns0:BaseWorkflow x:Name="wf" xmlns="schemas.microsoft.com/.../workflow" xmlns:x="schemas.microsoft.com/.../xaml"
xmlns:ns0="clr-namespace:ActivitiesLibrary;Assembly=ActivitiesLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<!-- Add the remainder of the workflow here. -->
</ns0:BaseWorkflow>
Program.cs
TypeProvider typeProvider = new TypeProvider(WorkflowRuntime);
typeProvider.AddAssemblyReference(@"F:\Activities.dll");
workflowRuntime.AddService(typeProvider);
XmlReader reader = XmlReader.Create("wf.xoml");
WorkflowInstance instance = workflowRuntime.CreateWorkflow(reader, null, null);
instance.Start();
phpAdmin. is not displaying the user graphic interface
If I want to add the ServiceInputActivity and ServiceOutputActivity to the StateMachine Worlflow ,How can I do?
Thanks for the article. I tried to use this code and display the image in a windows app and it worked but I was not able to display this on a web form. I am getting an overflow exception where the WorkFlowView is being used.
Can you please tell me if I'm missing some thing ?
kiran
Hi Kiran,
I have used this to display an image on a website so I surprised you are getting an overflow exception. The only problem I ran into was the different threading model ASP.NET uses as compared to VS so I had to spin up a new thread and do the work in there.
Even now, almost 2 years later this article is helping people. :-)
Thanks for the info!
Problem still exists, this post solved my problem, thanx
Pingback from links for 2008-11-12 « MyNotePad
Solved my issue... thanks.
1. Version controls of workflow instances.
2. Exception handling (lack of global exception handling).
it helped me aswell
Pingback from Thailand Trip bangkok, phuket, patong beach
In my previous post I created a horizontally scrolling ListBox. Nice but sometimes I want to have the
at http://www.xamltemplates.net you can find themes for wpf(xaml) controls
please advise on how to enter the command correctly for resizing shadow storage. i am having problems. i have tried a number of ways and keep getting invalid code
hi i am using silverlight version 2 and i keed getting the install logo come up when i try and run the silverlight website im trying to develop.
cheers
These are actually anonymous methods, not lambda expressions.
@Ben
VB doesn't support anonymous methods yet.
Thanks for the tip it saved me loads of time, cheers.
Instead of a for loop to populate your listbox, why not use data binding?
DemoList.ItemsSource = Enumerable.Range(0, 100);
I agree that Frans is a very talented guy and LLBLGen is a marvelous piece of software. But Richard and Carl haven't had a clue what to ask him!
What a waste of time!
After this podshow, I think Carl Franklin and Richard Campbell are two biggest idiots in IT industry ended up in a wrong place!
I created a custom validator class for my custom activity but Error messages are displayed in custom activity as well as Main parent workflow designer. i need to display error messages only for my custom activity.
Thanx in advance.
I don't see Enabling CLR option in SQL server 2008?
Khanh
http://bandovang.com
Nice site. Thank you!!!,
Hello admin, nice site ! Good content, beautiful design, thank !,
A fantastic site, and brilliant effort. A great piece of work.,
Hello admin, nice site you have!,
Pingback from links for 2008-11-27 » The Gryphin Experience
Big thanks for your post!
I used windirstat to check my hdd and i found 23.8GB as <unknown> However I check the system restore storage space to be about 15.9GB only. Could anyone advise on where does the remaining 8Gb comes from? Really appreciate it. Thank you
Thank you very much. I thought this problem for a long time~~~
I am here at a forum newcomer. Until I read and deal with the forum.
Let's learn!
I'm very pleased to announce the publication of a new WF 3.5 hands-on lab to the MSDN Virtual Labs site:
TDD/Unit Testing TypeMock continues to grow - MbUnit "Gallo" announces built in support for Typemock Isolator Here's a nice post on Mocking Web Services with it And another Typemock post - Automated Unit tests in my life - beginning Typemock
And that's it, summer is over. ASP.NET MVC ScottGu returns with ASP.NET MVC Preview 5 and Form Posting Scenarios Jeff Palermo has published another excerpt from his upcoming ASP.NET MVC in Action book, this time the Basics of MVC Routes LINQ K. Scott
Enjoying cup of Starbucks and Deep Purple Live in Stockholm 1970 (via Zune marketplace). WCF/WF My good friend Marjan has worked hard with us Influencers (I wish I wasn’t so busy) to come up with a stellar bunch of Webcasts! Must see! One of the
ASP.NET, ASP.NET AJAX, ASP.NET MVC, Visual Studio, Silverlight April 11th Links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, Visual Studio, Silverlight - The latest in ScottGu's series Latest in James series: Visual Studio Links #17 Putting ASP.NET Dynamic Data
Mocks/Software Development Tools/ASP.NET MVC Phil Compares Moq to Rhino Mocks Simplified Asp.net MVC Controller Testing with Moq C#/.NET Sample Code for Games, P2P Apps, Vista Tools, Web Services for Flickr, MySpace, Digg and YouTube DLR/IronRuby/IronPython
We already saw the Diamond and Omnia in action and you’ re free to replay the game here. The Diamond surely has a few things to offer over the Omnia (VGA screen, smaller size, 3D acceleration, and magnetic stylus) but it also has its issues here and there
I’ ve had occasion to try out taksi, it worked well for GDI capture, but for Direct3D capture on the engine I used it failed in CTaksiDX9:: GetFrame during GetRenderTargetData. I’ ve found a solution by disabling the avi feature (I didn’ t need it) and
A while a go I write some posts about unit testing Windows Workflow foundation Activities, you can find
Pingback from links for 2008-12-03 « MyNotePad
that is nice. i would like to become one member of you association.