tag:blogger.com,1999:blog-17332816.comments2023-04-05T22:38:04.960+08:00Cup(Of T)piers7http://www.blogger.com/profile/11186470645521299750noreply@blogger.comBlogger238125tag:blogger.com,1999:blog-17332816.post-49624952700989658152019-04-09T13:32:17.654+08:002019-04-09T13:32:17.654+08:00We are facing this issue while opening the form of...We are facing this issue while opening the form of one of the custom entity untill the role is assigned to team only. We are using Dynamics 365 CE April 2019 UpdateMohammed Fakhrihttps://www.blogger.com/profile/00524746658722211352noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-53710916552979630462019-03-20T20:21:40.664+08:002019-03-20T20:21:40.664+08:00Until now I have always felt that SSIS operations ...Until now I have always felt that SSIS operations are a bit complicated and especially the Upsert operations but I want to understand that what role do triggers play in the Upsert operations.I am right now reading this post to get some information but still unable to understand from it. https://zappysys.com/products/ssis-powerpack/ssis-upsert-destination/ James Zicrovhttps://www.blogger.com/profile/00094356083987556970noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-9475629301835748842018-11-23T10:40:05.751+08:002018-11-23T10:40:05.751+08:00Doh! Thanks :DDoh! Thanks :Dveimishttps://www.blogger.com/profile/01527451628838270969noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-59515367707074174592017-01-31T10:43:15.665+08:002017-01-31T10:43:15.665+08:00Many thanks for putting this in such detail. I was...Many thanks for putting this in such detail. I wasn't aware of ASP.NET threading behaviour until I stumbled into logging issues in one of older project. Your articles saved me a lot of time!<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17332816.post-28677744961493280322017-01-07T07:14:54.826+08:002017-01-07T07:14:54.826+08:00I found this which looks pretty awesome to make Po...I found this which looks pretty awesome to make PowerShell handle extra arguments not required by the cmdlet you happen to be calling.<br /><br />http://pelebyte.net/blog/2011/07/14/better-powershell-splatting/Deikensentsuhttps://www.blogger.com/profile/15538586481060914020noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-1273412969072172922016-11-18T14:49:37.945+08:002016-11-18T14:49:37.945+08:00Can you do a post based on Arduino with LED RGB St...Can you do a post based on Arduino with LED RGB Strips please? I want to broaden some projects like how this post states http://bestrgbledstrips.com/2016/11/18/rgb-led-strip-arduino/MyTrendExpert.comhttps://www.blogger.com/profile/03832287169814631890noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-12318137548380754852016-09-28T00:43:57.891+08:002016-09-28T00:43:57.891+08:00Was wondering why the first solution didn't wo...Was wondering why the first solution didn't work for quite a few hours before I found this article.<br /><br />Really good job and thank you for keeping me sane!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17332816.post-60538072133725764092016-07-22T23:59:56.308+08:002016-07-22T23:59:56.308+08:00Great Piece of knowledge. Thanks for Sharing.Great Piece of knowledge. Thanks for Sharing.Jeffhttp://letsdev.innoreply@blogger.comtag:blogger.com,1999:blog-17332816.post-66708465111133101692015-12-09T20:32:23.796+08:002015-12-09T20:32:23.796+08:00Hi Frédéric,
That's a great question, and tha...Hi Frédéric,<br /><br />That's a great question, and thanks for the link - I wasn't aware that feature had been implemented in log4net.<br /><br />Short answer: not sure. I think it depends more on what ASP.Net propagates onto it's worker thread than how Log4Net is setup, *unless* in the meantime LogicalThreadContext adaptively uses HttpContext if available (which I don't think it does).<br /><br />Been a long time since I looked at any of this so take all this with some scepticism.<br /><br />Cheers, piers7https://www.blogger.com/profile/11186470645521299750noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-42368461383265067582015-12-09T16:41:54.960+08:002015-12-09T16:41:54.960+08:00This comment has been removed by the author.piers7https://www.blogger.com/profile/11186470645521299750noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-72233246251058324892015-12-02T23:06:50.162+08:002015-12-02T23:06:50.162+08:00Yes, I had not seen your follow up, thanks for poi...Yes, I had not seen your follow up, thanks for pointing it.<br />Now I am back about a recent change in log4net (released November 2015, v1.2.14) for supporting async/await case with LogicalThreadContext. (Yes I have, quickly, searched if you have already posted another follow up, and not found some.)<br /><br />Maybe it also fixes the context loss issue with asp.net thread agility.<br />Here is the link to the issue: https://issues.apache.org/jira/browse/LOG4NET-455<br />(Log4net release notes : http://logging.apache.org/log4net/release/release-notes.html)<br /><br />I have unfortunately not the knowledge to infer this from the information I found there. Informations on technical detail on how asp.net thread agility works and what may work to preserve some king of context looks sparse.Frédéric Delaportehttps://www.blogger.com/profile/05875430430471455951noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-47667645123784406682015-10-31T03:20:50.179+08:002015-10-31T03:20:50.179+08:00Hi, I liked your post. I also had some experience ...Hi, I liked your post. I also had some experience with powershell here is the link :-<br /><br />http://mycsharpcorner.blogspot.com/2010/05/powershell-magic-weirdness-arrays.htmlShoesOnhttps://www.blogger.com/profile/01163046033741273878noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-78568897848799448082015-10-05T02:07:25.776+08:002015-10-05T02:07:25.776+08:00But when you create a proxy using the credential y...But when you create a proxy using the credential you specified and set a job step to run as that proxy you get the following error:<br />"Unable to start execution of step 1 (reason: Error authenticating proxy NT AUTHORITY\NETWORK SERVICE, system error: Logon failure: unknown user name or bad password.). The step failed."<br /><br />It seems without a password you cannot specify an identity for a credential.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17332816.post-48356241171022538632015-09-01T11:24:05.835+08:002015-09-01T11:24:05.835+08:00@Frédéric - yes, you will need IFixingRequired. I ...@Frédéric - yes, you will need IFixingRequired. I posted a follow up about this here http://piers7.blogspot.com.au/2007/07/log4net-in-aspnet-redux-implement.htmlpiers7https://www.blogger.com/profile/11186470645521299750noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-38073253123195370002015-08-31T17:33:30.494+08:002015-08-31T17:33:30.494+08:00Great solution, but a little issue remains : this ...Great solution, but a little issue remains : this does not work with buffering appenders as AdoNetAppender, when buffer size is greater than one.<br />In their case, your proposed provider gets evaluated only at buffer flush time, causing it to use the http context of the request having caused the flush, defeating the whole purpose of the provider.<br /><br />Fortunately, it appears little is required to fix this point: the provider just have to implement IFixingRequired from log4net.Core.<br /><br />As an example, here is my own provider:<br /><br /> public class HttpContextValueProvider : IFixingRequired<br /> {<br /> private string _contextKey;<br /> public HttpContextValueProvider(string contextKey)<br /> {<br /> _contextKey = contextKey;<br /> }<br /><br /> public override string ToString()<br /> {<br /> var currContext = HttpContext.Current;<br /> if (currContext == null)<br /> return null;<br /> var value = currContext.Items[_contextKey];<br /> if (value == null)<br /> return null;<br /> return value.ToString();<br /> }<br /><br /> object IFixingRequired.GetFixedObject()<br /> {<br /> return ToString();<br /> }<br /> }Frédéric Delaportehttps://www.blogger.com/profile/05875430430471455951noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-91180546078568434642015-06-15T04:21:13.788+08:002015-06-15T04:21:13.788+08:00The accepted answer to this StackOverflow.com ques...The accepted answer to this StackOverflow.com question presents an alternative approach where the "adaptive" context is actual the log4net %properties collection: http://stackoverflow.com/questions/9702066/how-to-set-log4net-context-property-specific-to-an-asp-net-request#9789629urighttps://www.blogger.com/profile/16827560849255505038noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-49980769379677135042014-05-06T23:40:06.034+08:002014-05-06T23:40:06.034+08:00Hi Piers,
Is this still true with 4.5 and using S...Hi Piers,<br /><br />Is this still true with 4.5 and using Set/GetLogicalData on the CallContext?Dewyhttps://www.blogger.com/profile/08803286448368181478noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-20203766059498162322014-05-03T22:11:34.713+08:002014-05-03T22:11:34.713+08:00Related: in PowerShell 1 and 2 if you send an empt...Related: in PowerShell 1 and 2 if you send an empty collection / array to the pipeline, you'll get a null passed (once) to the downstream expressions.<br /><br />In PowerShell v3 this no longer happens, and piping an empty array causes downstream pipelines to see no data instead.piers7https://www.blogger.com/profile/11186470645521299750noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-44194266311470634512014-05-03T09:48:02.091+08:002014-05-03T09:48:02.091+08:00@DemandingDev yes, implement IFixingRequired on yo...@DemandingDev yes, implement IFixingRequired on your custom object. I blogged about this here <a href="http://piers7.blogspot.com.au/2007/07/log4net-in-aspnet-redux-implement.html" rel="nofollow">http://piers7.blogspot.com.au/2007/07/log4net-in-aspnet-redux-implement.html</a>piers7https://www.blogger.com/profile/11186470645521299750noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-18737359293767855572014-05-03T06:39:27.791+08:002014-05-03T06:39:27.791+08:00this is working great for all of my logs throughou...this is working great for all of my logs throughout my asp.net application life cycle. HOWEVER I have a log enter submitted within an httpModule's httpEndRequest method, and while the log call has the HttpContext.Item values, when my custom object's ToString() method is called AFTER the next thread is being processed, and the ThreadContext.Items is empty.<br /><br />Any ideas how the resolve this?Demanding Devhttps://www.blogger.com/profile/11890008144066534500noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-71751239828406740602014-03-12T23:17:51.784+08:002014-03-12T23:17:51.784+08:00Good post, was searching exactly for this. Thanks....Good post, was searching exactly for this. Thanks.lxnoreply@blogger.comtag:blogger.com,1999:blog-17332816.post-51036967470600747732013-12-05T20:05:33.184+08:002013-12-05T20:05:33.184+08:00http://sqltreeo.comhttp://sqltreeo.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-17332816.post-24212290276532602502013-11-20T11:44:14.522+08:002013-11-20T11:44:14.522+08:00This post just saved me 3 lines of code! I knew t...This post just saved me 3 lines of code! I knew there had to be a way to deal with $Error with either one element or multiple elements, without iffing and elseing whether count was 1 or not...thank you so much!Rhys Edwardsnoreply@blogger.comtag:blogger.com,1999:blog-17332816.post-40548737971180131852013-09-19T21:49:35.042+08:002013-09-19T21:49:35.042+08:00I have checked the same in CRM online I am not fac...I have checked the same in CRM online I am not facing this issue. I have created a new Team with Customer representative role. added new user who does not contain any roles. I logged into CRM with new user credentials, I am able tocreate service activity...<br />Anonymoushttps://www.blogger.com/profile/09418688499126067891noreply@blogger.comtag:blogger.com,1999:blog-17332816.post-74656623055661474882013-07-18T20:56:48.039+08:002013-07-18T20:56:48.039+08:00Just updating the changed URL mentioned to fix CC ...Just updating the changed URL mentioned to fix CC issue <br /><br />http://blogs.msdn.com/b/buckh/archive/2006/09/12/path-is-already-mapped-in-workspace.aspxAnonymoushttps://www.blogger.com/profile/11200650663515385294noreply@blogger.com