|
Thank you, Robert.
Your solution solved the problem.
Regards,
Alexandru
|
|
|
|
|
Hello community,
I'm experiencing problems while working with persisted workflows.
As long as I keep the assemblies containing my Activity-types unchanged everything works great.
But as soon as I make changes to my activities/workflows (i.e. deleting single child-activities from a sequence) and start my host application, those workflow instances using the changed activites won't reload and continue running.
The problem is of course, that because the types have changed, SqlWorkflowPersistenceService is not able to deserialize the data stored in our database.
What I want to do is keeping backups of my assemblies, so that even if there is a more current version of the assembly, the old workflow instances will use the backup version and thus be able to deserialize without any trouble and continue running.
I tried writing my own assembly management routines (by subscribing to AppDomain.ResolveAssembly) which would provide the backup versions. The problem is, that SqlWorkflowPersistenceService does not seem to save the whole AssemblyQualifiedName of the serialzed types, so the Service would always try and deserialze to the types held in the most current assembly.
Now my question:
Is there a way to change SqlWorkflowPersistenceService's default behaviour of only saving the type name to saving the AssemblyQualifiedName which would solve all my problems in an instant?
If there's no such way, how would I implement my own WorkflowPersistenceService? As far as I've seen, all the custom implementations out there resolve to using Activity.Load and Activity.Save, which seem to show the same behaviour (of only saving the type name without assembly qualification).
Any help would be greatly appreciated.
Greets,
The Lord
|
|
|
|
|
|
Got the problem solved by accident ;D
Providing the correct Assembly by use of AppDomain.AssemblyResolve works perfectly well, AS LONG AS the Assemblies are SIGNED. Otherwise the AppDomain.AssemblyResolve event won't even be called.
So there's no need to change anything on SqlWorkflowPersistenceService's behaviour.
Thanks for attention.
|
|
|
|
|
I want to convert a string to byte array as follows
byte[] b = Convert.FromBase64String(s);
it is giving the following error:
Invalid length for a Base-64 char array.
can any one give me a suggestion to solve this.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Your string is not a valid base64 string. Its length should be a multiple of four and '=' characters at the end for padding (if needed).
|
|
|
|
|
I believe their are some utilities in the Text.Encoding class.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hi,
something like this:
Dim val As String <br />
Dim [unicode] As System.Text.Encoding = System.Text.Encoding.Default<br />
<br />
Dim unicodeBytes As Byte() = [unicode].GetBytes(val)<br />
<br />
|
|
|
|
|
i have project i want import database of xml into sql 2005 but before insert
database.program must prepare database of xml and database of sql 2005
if have different row database between two database then have record
you help me?
thank
|
|
|
|
|
Can you pls xplain a bit more
|
|
|
|
|
Public Property HIGHEST_PRICE() As Decimal
Get
Try
Return CType(Me(Me.tableSTS_STOCKS_INFO.HIGHEST_PRICEColumn), Decimal)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'HIGHEST_PRICE' in table 'STS_STOCKS_INFO' is DBNull.", e)
End Try
End Get
Set(ByVal value As Decimal)
Me(Me.tableSTS_STOCKS_INFO.HIGHEST_PRICEColumn) = value
End Set
End Property
my project have error:--> StrongTypingException was unhandled
|
|
|
|
|
The StrongTypingException comes from you throwing it if an InvalidCastException occurs. Seemingly it does, so this means Me(Me.tableSTS_STOCKS_INFO.HIGHEST_PRICEColumn) could not be casted as a decimal.
|
|
|
|
|
|
i have made two setup. one is window application(desktop Application) and second is website(local website) setup.my problem is that i want to make only one setup that installed these two setup.Please guede me.
Suahail Shahab
|
|
|
|
|
There can be two solutions for these:
1. Write a batch file, and call these two setups one by one
2. Create a new installer project, and add the execuatbels and dlls manually specify their desired output location.
Infact you only need to ask for win app location. For Wep App you can just get the name of app in a textbox(if you want)
|
|
|
|
|
Can any body tell me how to connect & manipulate a FileMaker Application in .net
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
I tried their sit but i am not getting sufficiednt information about how to connect it with the .net application and to manipulate it.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
We are trying to create an aggragate function that needs to accept 3 parameters. one parameter is a variable, and two are constant once initialized.
does anyone know how to do this?
|
|
|
|
|
Do you mean one parameter is optional? All parameters are variable, else it is pointless having parameters.
In VB.NET you can use the Optional modifier on the third parameter, but in C# you have to have two, overloaded methods, one that accepts three parameters, and only two parameters and calls the three parameter version with a null parameter or some other indication to ignore the third parameter.
|
|
|
|
|
I want to know the length of string in pixels in a web based applicaiton. can anyone tell me how can i get it..?
If my mind can conceive it, and my heart can believe it, I know I can achieve it.
|
|
|
|
|
Well to know that you have to know the Font object the string is formatted with. Even then I'm not convinced it will give back exact results under all circumstances (also note you can change font size in the browser without the server-side knowing of it). With these limitations stated a good approximation would be:
int width;
System.Drawing.Font myFont = System.Drawing.SystemFonts.DefaultFont;
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(1, 1);
using (System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(bmp))
width = (int)g.MeasureString("myString", myFont).Width;
bmp.Dispose();
|
|
|
|
|
Hey Thanks a ton for the response. The code worked. Now I just need to set the width accordingly. Thanks once again.
If my mind can conceive it, and my heart can believe it, I know I can achieve it.
|
|
|
|
|
In a web based app? There's no way to figure this out. Your ASP.NET app doesn't have access to any resolution information abtou the clients machine, DPI settings, the font the browser is actually going to use to render your content, ... You can't get any of the information you need to figure this out.
The only way to simulate this is if you wrote the string to a bitmap image, then sent the image to the browser.
|
|
|
|
|
If web based applications have access to the Graphics object through any paint routines, then you can use the measurestring method.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|