Are the dashes in the UniqueIdentifier always in the same index position?
I have an Asp.Net mvc application where I pass a uniqueidentifer in the querystring as one of the parameters. Normally this is not an issue to have the dashes in it. However, In one solitary instance where I am creating a Pdf document, the Persits.PDF assembly will crash on the creation of HTML to PDF Conversion when there are dashes in the querystring. If I remove the dashes from the Uniqueidentifier and pass it without dashes then it will convert the HTML file to Pdf for me. Leave them in there though and it will throw an error every time.
My thought is to use the Replace function to remove them when I build the querysting, and then put them back in on the controller for this page before I pass to the SPROCS that I will be calling.