tag:blogger.com,1999:blog-7929053599129622940.comments2023-10-04T13:48:47.224+01:00Ian Picknell - Under the CoversIan Picknellhttp://www.blogger.com/profile/11237307149515983183noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-7929053599129622940.post-81688194241662435412023-10-04T13:48:47.224+01:002023-10-04T13:48:47.224+01:00My .application is called from an http: or https:/...My .application is called from an http: or https://server/myapp.application?parameters url and runs a myapp.exe written in vbNET. From vbNET I would like to be able to analyze the response headers that triggered the call of myapp.application.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-60140371809656279702023-10-02T11:38:34.006+01:002023-10-02T11:38:34.006+01:00Beautiful explanation. Is it possible to get the l...Beautiful explanation. Is it possible to get the launch http context with the System.Deployment.Application.ApplicationDeployment libraries? I would like to get the httpresponse headers that started the application. Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-38117597585196049382016-07-27T07:31:00.220+01:002016-07-27T07:31:00.220+01:00What is the point of using strong names if you can...What is the point of using strong names if you can simply edit the msil byte code and evade the check? I'm seems worthless if it doesn't hash the entire assembly and only checks the header (or what ever it actually is) Rolandhttps://www.blogger.com/profile/00438552245420979360noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-45995965732671181862016-07-06T12:06:16.828+01:002016-07-06T12:06:16.828+01:00Informative article.Thank you author for posting t...<br />Informative article.Thank you author for posting this kind of article .<br /><br /><a href="http://www.wikitechy.com/view-article/php-mail-form-doesnt-complete-sending-email" rel="nofollow">www.wikitechy.com</a><br /><br />Both are really good.<br />Cheers,<br />VenkatAnonymoushttps://www.blogger.com/profile/14254305782663491999noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-15551198572391749172016-05-06T16:34:52.262+01:002016-05-06T16:34:52.262+01:00Hello,
Could you try this:
[DataContract]
...Hello,<br /><br /><br /><br />Could you try this:<br /> [DataContract]<br /> public enum Gender<br /> {<br /> [EnumMember]<br /> Male,<br /> [EnumMember]<br /> Female<br /> }<br />And then in the employee class add this:<br /> [DataMember]<br /> public Gender Gender { get; set; }<br /><br />A great Thanks to: Ian Picknell<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-91002155391409868132015-03-03T13:58:41.845+00:002015-03-03T13:58:41.845+00:00Saved my bacon! Thanks very much for sharing this....Saved my bacon! Thanks very much for sharing this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-78679338400281645912014-10-29T02:31:13.491+00:002014-10-29T02:31:13.491+00:00great post :)
really enjoyed and pocket it.
Th...great post :) <br /><br />really enjoyed and pocket it. <br /><br />Thanks,Fer Antiverohttps://www.blogger.com/profile/11302334730118952239noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-31490615966955966422014-09-17T18:43:57.986+01:002014-09-17T18:43:57.986+01:00This is perfect. Thank you This is perfect. Thank you Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-46744349443959721942014-01-02T19:46:48.993+00:002014-01-02T19:46:48.993+00:00Good stuff mate! Came in very useful in regard to ...Good stuff mate! Came in very useful in regard to a custom resolver I was writing that is being called from an ESB itinerary.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-22080769625099637472013-11-22T16:09:04.639+00:002013-11-22T16:09:04.639+00:00It works, thanks :)It works, thanks :)pruebahttps://www.blogger.com/profile/13403465131087135324noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-52719412650094363252013-10-25T13:48:12.219+01:002013-10-25T13:48:12.219+01:00Thanks you so much
I got solution here… I solved...Thanks you so much <br /> I got solution here… I solved it.. thanks again.<br />You saved my days. :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-14016399697724344002013-09-13T07:02:15.140+01:002013-09-13T07:02:15.140+01:00Thanks ! This is good knowhowThanks ! This is good knowhowAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-25471704675647012842013-06-10T07:17:25.285+01:002013-06-10T07:17:25.285+01:00Good question. I don't know. The setting is al...Good question. I don't know. The setting is almost certainly in the registry. Having had a quick root around, my guess would be HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Accepted Documents. On my Windows 7/IE 9 machine this location lists the following MIME types: image/gif, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml and application/x-ms-xbap. Note that the MIME type associated with a .application file, application/x-ms-application, is within that list.<br /><br />Having said that, I believe that the user can specify how particular file types should be handled via HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\*\UserChoice, which might also be relevant.Ian Picknellhttps://www.blogger.com/profile/11237307149515983183noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-68489041494041803902013-06-07T04:09:02.702+01:002013-06-07T04:09:02.702+01:00When IE receives the .application response, why do...When IE receives the .application response, why does it save it in temp folder then open it immediately? Why not prompt the user and do a normal "save as/download" operation? Who tells IE the operation it should take?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-34157535947194915822013-05-28T18:11:49.461+01:002013-05-28T18:11:49.461+01:00The only solution that worked for me!
Thank you Ia...The only solution that worked for me!<br />Thank you Ian!AHBAPhttps://www.blogger.com/profile/12523901275137607702noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-53553084982863635012013-05-17T02:43:54.906+01:002013-05-17T02:43:54.906+01:00Awesome. ThanksAwesome. ThanksRyan Bartschnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-13614687389621172212013-05-15T05:29:53.327+01:002013-05-15T05:29:53.327+01:00thanks for the post ,, I tried to set a 0 value fo...thanks for the post ,, I tried to set a 0 value for one of the enum values , and adding the MemberShip attribute this did not solve the issue , i worked around it by setting a default value in object constructor ,,, hope this may help another one ,, Mohd Al-Bakrihttps://www.blogger.com/profile/17131998458530703990noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-39574249436011066412013-03-19T14:06:18.047+00:002013-03-19T14:06:18.047+00:00Thank you. After searching for an answer to sign a...Thank you. After searching for an answer to sign a 3rd-party-DLL with an existing pfx-File, I found this here! This saved my day an was very helpful.<br /><br />In your last step, it Looks like the following line is missing?! (For generating *.res- and *.il-file)<br /><br />ILDASM ASQLService.dll /out:ASQLService.il<br /><br /><br />Best Regards, <br /><br /> Steffen M.Steffen M.https://www.blogger.com/profile/12378410471087217650noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-23209401650600359812013-02-05T10:17:13.222+00:002013-02-05T10:17:13.222+00:00Hello.
I'm windering is there any way to use, ...Hello.<br />I'm windering is there any way to use, for example, German umlauts within EndpointAddress definition?<br />EndpointAddress endpointAddress = new EndpointAddress("net.tcp://localhost:8001/EmployeeService");<br />For example instead of localhost to use süd.<br />Thank you in advance.<br /> NenadAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-17558128544562502692013-01-10T23:08:04.162+00:002013-01-10T23:08:04.162+00:00Thanks, very helpfulThanks, very helpfulAnonymoushttps://www.blogger.com/profile/04937988312777235982noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-77474498110988471932012-12-18T07:48:15.783+00:002012-12-18T07:48:15.783+00:00Well, I say can't talk as to whether the behav...Well, I say can't talk as to whether the behaviour will remain as it is, but is is the expected behaviour (at least by Microsoft, if not by the rest of us). If you take a look at http://msdn.microsoft.com/en-us/library/cc713694.aspx you'll note that Microsoft say "Starting with the .NET Framework version 3.5 Service Pack 1 (SP1), strong-name signatures are not validated when an assembly is loaded into a full-trust AppDomain object, such as the default AppDomain for the MyComputer zone." That's quite explicit - they don't validate strong names by default. (I mention this is the Mitigation section at the end of the article.)Ian Picknellhttps://www.blogger.com/profile/11237307149515983183noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-50656890166078145502012-12-17T03:24:36.190+00:002012-12-17T03:24:36.190+00:00Hi, thanks for the article. I am also interested i...Hi, thanks for the article. I am also interested in knowing if that's normal behavior or not? Also will it always remain like that? Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-70626705683519315282012-11-22T07:58:54.861+00:002012-11-22T07:58:54.861+00:00The scenario the article covers is where the contr...The scenario the article covers is where the contract has changed (i.e. the Gender property of the Employee class has changed from a char to an enum) but we had to abstract away this change from existing clients - so existing clients still send a char.<br /><br />It looks like your client's Employee class is expecting Gender to be a enum - i.e. it is aware of the update made on the server. Did you have Visual Studio auto-generate the Employee class on the client from the original contract? Or are you sharing the same implementation between client and server?<br /><br />If you're sharing the implementation (i.e. both client and server reference the same Employee class) then there's no transformation to do - the client knows about the change already. But if your client has an auto-generated proxy for the server's Employee class (which is the scenario covered by the article) then the client should still be sending 'F' based upon the out-of-date proxy - which you be converted 'in-flight' to an enum value.<br /><br />Does that make sense?Ian Picknellhttps://www.blogger.com/profile/11237307149515983183noreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-89728970578890476332012-11-20T15:27:47.775+00:002012-11-20T15:27:47.775+00:00I've tried to get your code to work using the ...I've tried to get your code to work using the XSLT approach. However I having difficulty in making the Behaviour work. For example, in the original code you speicfied that Gender was a char and then you changed it so it accepts an enum.<br /><br />Now in the client code i have specified the employee object like this:<br /> var employee = new Employee<br /> {<br /> Name = "Testing 123",<br /> DateOfBirth = new DateTime(1977, 7, 12),<br /> Gender = (Gender)'F'<br /> };<br /><br />I get an exception saying that Enum value '70' is an invalid type. Am i doing something wrong? I was expecting it to convert the value 70 to use the value Female.<br /><br />System.ServiceModel.CommunicationException: There was an error while trying to s<br />erialize parameter http://tempuri.org/:employee. The InnerException message was<br />'Enum value '70' is invalid for type 'WcfClient.EmployeeServiceClient.Gender' an<br />d cannot be serialized. Ensure that the necessary enum values are present and ar<br />e marked with EnumMemberAttribute attribute if the type has DataContractAttribut<br />e attribute.'. Please see InnerException for more details. ---> System.Runtime.<br />Serialization.SerializationException: Enum value '70' is invalid for type 'WcfCl<br />ient.EmployeeServiceClient.Gender' and cannot be serialized. Ensure that the nec<br />essary enum values are present and are marked with EnumMemberAttribute attribute<br /> if the type has DataContractAttribute attribute.<br /> at System.Runtime.Serialization.EnumDataContract.WriteEnumValue(XmlWriterDele<br />gator writer, Object value)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7929053599129622940.post-6621617079300201252012-10-25T09:45:08.797+01:002012-10-25T09:45:08.797+01:00Thanks for this. Appears to still be the same bug ...Thanks for this. Appears to still be the same bug in .net 4Mark Adamsonhttps://www.blogger.com/profile/01781253629769374191noreply@blogger.com