archive-be.com » BE » B » BENNYMICHIELSEN.BE

Total: 348

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • start – Benny Michielsen
    Emo apple Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning Brew 2052 on Getting up and running with Mono and Raspberry Pi 3 bhldev on Exposing iCal data in WebAPI Archives March 2016 February

    Original URL path: http://blog.bennymichielsen.be/tag/start/ (2016-04-29)
    Open archived version from archive


  • Benny Michielsen – Page 12 – .net developer with a touch of Cocoa
    to get this working under Leopard Just had to complain about it to be continued for sure Author BennyM Posted on 06 05 2008 Categories Computer Tags blablabla documentation open source Leave a comment on Open source 1 Benny 0 New project MailConverter I ve started work on an Outlook plugin to convert the mailbox to various other formats In my case to mbox so I can import my mails in Apple Mail The library will be able to be used in other applications as well but that won t be the main goal The source code is hosted at Google and can be found here Project progress will be reported on this blog Author BennyM Posted on 05 05 2008 Categories Computer Tags converter mbox outlook pst Leave a comment on New project MailConverter Using the MacBook While delving through the Monodevelop bug tracking pages one submitter stated that while the control click combination didn t work to get the appropriate context menu you could work around it by using a two button mouse Why didn t I think of that I plugged the mouse of my other laptop in and boom I had context menus in Monodevelop Technology of two competitors working together I took the picture with my iPhone and was able to convert it with iPhoto One shortcoming however was that when you export a photo it allows you to change the size to small medium large and full size I was missing the size in pixels here the only way to find out what the program does is to do the export and look at the new file The new thumbnail now had to move to the blog so where s the ftp program Well there isn t you can connect Finder to an ftp server but that only allows one way traffic I could have used the terminal and start ftp from the command prompt but who wants to use that On the Apple site I found a link to Transmit which has an idiot proof interface perfect for me Author BennyM Posted on 29 04 2008 Categories Computer Tags ftp leopard macbook mouse Leave a comment on Using the MacBook Monodevelop on Leopard Since last week I m the proud owner of a MacBook and I m exploring this new world I want to try out Mono with Monodevelop since I m a net developer but their Mac support seems to be lacking I m using the latest version of Mono 1 9 1 3 and Monodevelop 1 0 and am unable to add any projects to a solution The documentation states I need to right click control click on a Mac right the solution and then select Add new Project but I don t get any context menu I m guessing it s my own fault and not theirs Where s my menu Edit after going through the MD bug tracking pages I found several issues related to this behaviour bug 359734

    Original URL path: http://blog.bennymichielsen.be/page/12/ (2016-04-29)
    Open archived version from archive

  • WCF HTTPS And Request Entity Too Large – Benny Michielsen
    the problem for me I spent quite some time to resolve the issue Turns out I also had to modify the IIS settings of the website that was hosting the WCF service The config setting is called uploadReadAheadSize and can be found in the serverRuntime section below system webServer and you can use the configuration editor feature of IIS manager to modify it Give it the same or a larger value you specify in your WCF configuration Author BennyM Posted on 22 03 2014 Categories Software Development Tags HTTPS IIS wcf 3 thoughts on WCF HTTPS And Request Entity Too Large Marc Wils says 26 03 2014 at 15 58 Extra background information The uploadReadAheadSize modification is needed because the entire request entity body is preloaded during SSL negotiation For HTTP requests the WCF config setting should be enough to get things working See http blogs catapultsystems com rhutton archive 2012 07 22 request entity is too large over ssl in iis 7 aspx http www microsoft com technet prodtechnol WindowsServer2003 Library IIS 7e0d74d3 ca01 4d36 8ac7 6b2ca03fd383 mspx mfr true Reply Justin says 29 03 2016 at 21 07 There is some evidence that using uploadReadAheadSize to fix this issue causes CPU spikes Try this instead http stackoverflow com a 36292973 774600 Reply BennyM says 29 03 2016 at 22 29 Thanks for the info Reply Leave a Reply to Marc Wils Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post Model binding with Headers in ASP NET WebAPI Next Next post Global Azure Bootcamp 2015 Belgium Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin

    Original URL path: http://blog.bennymichielsen.be/2014/03/22/wcf-https-and-request-entity-too-large/?replytocom=623 (2016-04-29)
    Open archived version from archive

  • WCF HTTPS And Request Entity Too Large – Benny Michielsen
    solve the problem for me I spent quite some time to resolve the issue Turns out I also had to modify the IIS settings of the website that was hosting the WCF service The config setting is called uploadReadAheadSize and can be found in the serverRuntime section below system webServer and you can use the configuration editor feature of IIS manager to modify it Give it the same or a larger value you specify in your WCF configuration Author BennyM Posted on 22 03 2014 Categories Software Development Tags HTTPS IIS wcf 3 thoughts on WCF HTTPS And Request Entity Too Large Marc Wils says 26 03 2014 at 15 58 Extra background information The uploadReadAheadSize modification is needed because the entire request entity body is preloaded during SSL negotiation For HTTP requests the WCF config setting should be enough to get things working See http blogs catapultsystems com rhutton archive 2012 07 22 request entity is too large over ssl in iis 7 aspx http www microsoft com technet prodtechnol WindowsServer2003 Library IIS 7e0d74d3 ca01 4d36 8ac7 6b2ca03fd383 mspx mfr true Reply Justin says 29 03 2016 at 21 07 There is some evidence that using uploadReadAheadSize to fix this issue causes CPU spikes Try this instead http stackoverflow com a 36292973 774600 Reply BennyM says 29 03 2016 at 22 29 Thanks for the info Reply Leave a Reply to Justin Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post Model binding with Headers in ASP NET WebAPI Next Next post Global Azure Bootcamp 2015 Belgium Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin

    Original URL path: http://blog.bennymichielsen.be/2014/03/22/wcf-https-and-request-entity-too-large/?replytocom=48150 (2016-04-29)
    Open archived version from archive

  • WCF HTTPS And Request Entity Too Large – Benny Michielsen
    solve the problem for me I spent quite some time to resolve the issue Turns out I also had to modify the IIS settings of the website that was hosting the WCF service The config setting is called uploadReadAheadSize and can be found in the serverRuntime section below system webServer and you can use the configuration editor feature of IIS manager to modify it Give it the same or a larger value you specify in your WCF configuration Author BennyM Posted on 22 03 2014 Categories Software Development Tags HTTPS IIS wcf 3 thoughts on WCF HTTPS And Request Entity Too Large Marc Wils says 26 03 2014 at 15 58 Extra background information The uploadReadAheadSize modification is needed because the entire request entity body is preloaded during SSL negotiation For HTTP requests the WCF config setting should be enough to get things working See http blogs catapultsystems com rhutton archive 2012 07 22 request entity is too large over ssl in iis 7 aspx http www microsoft com technet prodtechnol WindowsServer2003 Library IIS 7e0d74d3 ca01 4d36 8ac7 6b2ca03fd383 mspx mfr true Reply Justin says 29 03 2016 at 21 07 There is some evidence that using uploadReadAheadSize to fix this issue causes CPU spikes Try this instead http stackoverflow com a 36292973 774600 Reply BennyM says 29 03 2016 at 22 29 Thanks for the info Reply Leave a Reply to BennyM Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post Model binding with Headers in ASP NET WebAPI Next Next post Global Azure Bootcamp 2015 Belgium Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin

    Original URL path: http://blog.bennymichielsen.be/2014/03/22/wcf-https-and-request-entity-too-large/?replytocom=48151 (2016-04-29)
    Open archived version from archive

  • Exposing iCal data in WebAPI – Benny Michielsen
    iCal standard The only WebAPI specific code can be found in the constructor There we add the mapping for the headers we want the formatter to be invoked for After we add the formatter to the configuration object it will be invoked automatically whenever a client says it accepts text iCal The current setup works fine in Fiddler or when you use a custom client JavaScript or HttpClient But for a true end to end sample I want to use Outlook to connect to my appointment service Unfortunately Outlook does not send an accept header with text iCal when it requests resources from an internet calendar So we need to work around this problem Here another extensibility point of ASP NET Web API comes into play MessageHandlers MessageHandlers allow you to plug into the request processing pipeline on its lowest level You can inspect the request and response message and make changes In this case we can inspect the user agent that is added to the request when Outlook contacts our service When we find a match we will add an additional header to the incoming request We also add this message handler to the configuration object We now have everything in place to add an internet calendar in Outlook and view the appointments in our WebAPI Open Outlook Go to Calendar In the ribbon click on Open Calendar and then From Internet Fill in the url of the AppointmentService in WebAPI i e http localhost 58250 api appointments Click Ok You now have one AppointmentController serving json xml and iCal The complete source can be downloaded here Author BennyM Posted on 11 11 2013 Categories Software Development Tags iCal outlook WebAPI 2 thoughts on Exposing iCal data in WebAPI Pingback Modelbinding with Headers in ASP NET WebAPI Benny Michielsen

    Original URL path: http://blog.bennymichielsen.be/2013/11/11/exposing-ical-data-in-webapi/?replytocom=47638 (2016-04-29)
    Open archived version from archive

  • Entity Framework 4.1 – One To One Mapping – Benny Michielsen
    class CustomerContext DbContext public IDbSet Customer Customers get set protected override void OnModelCreating DbModelBuilder modelBuilder modelBuilder Entity Address HasRequired x x Customer WithRequiredDependent x x Address base OnModelCreating modelBuilder I m saying here that the address entity has a required customer property and that the customer class is actually in charge MSDN reference Resulting database structure Another way to achieve the same result public class CustomerContext DbContext public IDbSet Customer Customers get set protected override void OnModelCreating DbModelBuilder modelBuilder modelBuilder Entity Address HasRequired x x Customer WithRequiredDependent modelBuilder Entity Customer HasRequired x x Address WithRequiredPrincipal base OnModelCreating modelBuilder MSDN link on WithRequiredPrincipal You saw that the WithRequiredPrincipal and Depedant actually have one taking a lambda and one with no arguments This allows you to exclude a navigation property and still get a proper one to one mapping Which brings me back to my starting point public class Customer public Customer Address new Address public Guid Id get set public string Name get set public Address Address get set public class Address public Guid Id get set public string City get set public string Country get set public string Street get set public class CustomerContext DbContext public IDbSet Customer Customers get set protected override void OnModelCreating DbModelBuilder modelBuilder modelBuilder Entity Customer HasRequired x x Address WithRequiredPrincipal base OnModelCreating modelBuilder Author BennyM Posted on 02 06 2011 02 06 2011 Categories Software Development Tags entity framework 18 thoughts on Entity Framework 4 1 One To One Mapping Pingback The Morning Brew Chris Alcock The Morning Brew 865 Sergii Lazurenko says 09 08 2011 at 12 13 Good post Thank you very much Benny Reply yuriylsh says 26 08 2011 at 20 23 Thank you Benny your post helped a lot to resolve one problem I had in my EF code Appreciate it Reply Shimmy says 15 05 2012 at 05 31 Is there a way to use data annotations instead of the fluent API in this scanario 0 1 1 Reply Kevin Bolander says 22 10 2012 at 06 01 thank you nice decription much appreciated tyty Reply User123 says 12 12 2012 at 06 07 How to display on the web i e i mean calling the function in the Controller action explain that also given a Customer Id it should display the both related rows from Customer and Address Reply Pingback Entity Framework Friend or Foe Blue Collar Nerd BillJam says 14 03 2013 at 21 14 That s fine except Address never gets saved to the database since there is no DBSet for it in the Context first of the both ends required scenarios I never tried the other Reply Jake says 02 06 2013 at 08 59 Hi i v used this approeach but when i see in database there is not a column created customer for Address in fact when i want to retrive data it says null reference exception may you help me Reply Loukouzou says 12 07 2013 at 04 39 Clean concise explanations Thanks

    Original URL path: http://blog.bennymichielsen.be/2011/06/02/entity-framework-4-1-one-to-one-mapping/ (2016-04-29)
    Open archived version from archive

  • entity framework – Benny Michielsen
    set Customer could also have a bunch of methods that acted upon the address fields Employee could have the same properties the same logic and an invoice probably also has an address So let s move the properties and logic into a new class called Address I don t want a separate table that contains all the addresses though I want all of the address fields to be present in the customer employee and invoice table In order to achieve that result you need the ComplexType attribute public class Customer public Customer Address new Address public Guid Id get set public string Name get set public Address Address get set ComplexType public class Address public string City get set public string Country get set public string Street get set Using the ComplexType attribute will result in a database table with the correct structure You can also use the fluent API to configure a complextype public class CustomerContext DbContext public IDbSet Customer Customers get set protected override void OnModelCreating DbModelBuilder modelBuilder modelBuilder ComplexType Address base OnModelCreating modelBuilder Author BennyM Posted on 02 06 2011 02 06 2011 Categories Software Development Tags entity framework 2 Comments on Entity Framework 4 1 Component mapping How to support Contains in Entity Framework 3 5 How can you retrieve the products that are contained in a list of id s var ids new List int 1 2 3 500 using var context new AdventureWorksEntities var products from product in context Products where ids Contains product ProductID select product WriteProducts products The good news this is supported in Entity Framework v4 0 but since I m on 3 5 I needed to find another solution Luckily using the info from my previous post I can write an expression for this var ids new List int 1 2 3 500 using var context new AdventureWorksEntities Expression Func Product bool idMatching null foreach var id in ids int productId id if idMatching null idMatching x x ProductID productId else idMatching idMatching Or x x ProductID productId var products context Products Where idMatching WriteProducts products Author BennyM Posted on 05 12 2010 Categories Software Development Tags entity framework linq 3 Comments on How to support Contains in Entity Framework 3 5 Combining expressions to use with the Entity Framework You often have to create a screen where the information is filtered on a given condition and the user can set some more options through checkboxes For instance display all products of a certain category and those results should be able to be filtered on their active status We could send one query to the database to retrieve the products and then filter them in memory but let s try to use the database for all of this since they re good at this You ll bump into several issues when trying to solve this and like most problems in software development someone else most likely encountered the same issue and has already found a solution In this case take

    Original URL path: http://blog.bennymichielsen.be/tag/entity-framework/ (2016-04-29)
    Open archived version from archive