Monday, February 28, 2011

Service Factory Error DSL5012 / DSL5017

“Error 1 [ModelBus]: DSL5012: Exception occurred attempting to create an adapter.\nAdapterManager: Microsoft.Practices.ServiceFactory.DataContracts.ModelBusAdapters.DataContractDslAdapterManager\nAssembly: Microsoft.Practices.ServiceFactory.DataContracts.ModelBusAdapters, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\nException: ModelingAdapterReferenceFormatException\nException message: DSL5017: The full path representing a Model file is null or empty or invalid. Please specify a valid accessible file location for this Model.”

If you have ever received this error, you know the pain I have once felt.  This is use of the ServiceFactory found at CodePlex and had literally no helpful information to get this solved.  Now, it is actually a very simple problem to fix and after almost a full lost day of work and, additionally, new changes to TFS (Team Foundation Server), we have a solution.
The core issue is that the “data contracts”, the objects that your service contract is referencing has, in fact, a bad reference.  That reference needs to be fixed.  I am going to setup a mock example to help walk you through this problem.
1)       Locate the service contract file that is giving you the above error.  In the image below, you can see my project, title ASAPModel.  The servicecontract that is giving me the error is called: SO.servicecontract.  Double-click the file and it should open up the graphical diagram.

2)       Take notice, in my example above, that I have 2 types of data contracts.  One is “Employee.datacontract” and the other is “SO.datacontract”.

3)       Once the SO.servicecontract file opens up it should looke like something similar to this:

4)       Find a data contract object.  For this example, the type “ProjectCode”, which is highlighted in blue in the above example, is of type SO.ProjectCodeDC, which is a data contract object from the SO.datacontract file.  When you click on it, in the properties window, on the right, you will see several properties related to this object.  Find the “Type” property, click in the field and click the “…” button on the right.  That will bring up the box you see below:

5)       Notice the big red “X” and the sentence next to it.  Ok, so just click the ‘Browse’ button and the “Open Dialog Window” will pop up:

6)       Select the corresponding data contract file, so for our example, ProjectCodeDC is from the SO.datacontract file under the ASAPModel project, click on the file and click ‘OK’.  Which will bring us back to the first screen with a very good sign, all of our data contracts!

7)       From here, open the DataContracts node and find your data contract, which in our case is ProjectCodeDC.  Click on it and click ‘OK’, next a window will pop up only if you have multiple references to the datacontract file that were bad, as below:

8)       Click ‘Yes’ here and that will reset the references to the data contract file.  Repeat this for an object for each DIFFERENT data contract.  So in my example here, I would have to find another object, inside the SO.servicecontract graphical diagram that referenced the Employee.datacontract file, and follow the same steps. 

9)       Once you are all done, reload the projects and then simply right click and generate, from inside the service contract file that was causing the error and VOILA!

10)   To be fair, I did not figure this solution out, my boss did, however, I understand the issue and how it is resolved, so that is why I am writing this little article up.  Hopefully, nobody will have to deal with this issue again!

42 comments:

  1. but how do you find which reference is bad?

    ReplyDelete
  2. Thanks for this - saved me a few hours!

    ReplyDelete
  3. No problem! It was a very frustrating issue and very obscure to find any help on! If anyone has any issues with this, let me know which step is causing you pain and I will try to help.

    ReplyDelete
  4. Thanks you. Reloading the projects after 8th step is a must or it will continue to show the errors.

    ReplyDelete
    Replies
    1. Thanks for that Abhishek, I updated my posting to reflect that tip!

      Delete
  5. Aww, thanks Neen!! Can't wait to begin sending you goodies from the post xx

    Here is my homepage ... ,cheap costume earrings uk

    ReplyDelete
  6. What concerning the colour printing. You ask which is less costly in B&W however what regarding
    general use. My inkjet smears every color I try to print.

    So is laser much better for throughout quality at a sensible expense.



    My web page - xerox phaser 8560 error codes

    ReplyDelete
  7. Problem handle with Samsung ML-1520 on WIN 8 Pro 64 little bit.


    Thanks to you !!!!!!
    Fantastic !
    !!!!!

    Take a look at my blog post :: http://localmarketingtucson.com

    ReplyDelete
  8. Please let me know if you're looking for a article author for your blog. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I'd really like to write some articles for your
    blog in exchange for a link back to mine. Please send
    me an email if interested. Many thanks!

    Also visit my page ... http://info.action.or.kr/index.php/Shared_Hosting_Or_Vps_Hosting%3F

    ReplyDelete
  9. Thank you so much for sharing this place. This is a great be an aid
    to we all. I am a fan of earrings.

    Feel free to surf to my webpage; ,jewellery deals online

    ReplyDelete
  10. Good day to all,-my Samsung ML 1410 now works great (Windows 8 Pro 64 bit).

    Thanks a lot for that wonderful Research.

    Here is my blog post ... http://haengjeongsa.com/xe/5216

    ReplyDelete
  11. What's up, after reading this remarkable piece of writing i am as well happy to share my knowledge here with colleagues.

    Here is my website :: wholesale

    ReplyDelete
  12. Wow that's a great deal of work ! Thank u for sharing, it's cool
    to discover the behind the scenes process!

    Have a look at my homepage; http://wiki.scholarsoftheoccult.com/index.php?title=User:SethK00

    ReplyDelete
  13. work with a laserlight should the star specs of
    tiny lighting is not magnificent its fake whether precise pin points of sunshine its real

    Here is my web blog: ,jewellery discount vouchers

    ReplyDelete
  14. HP Color LaserJet C8560A Black Imaging Drum. The HP Shade LaserJet 4650 set conveniences very much from
    this drum. Priced.

    Feel free to surf to my site; xerox phaser 8560 toner

    ReplyDelete
  15. Excellent beat ! I would like to apprentice while you amend your web site, how can i subscribe for a blog website?

    The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear concept

    Also visit my page :: Xerox Phaser 8560 Printer

    ReplyDelete
  16. An outstanding share! I have just forwarded this onto a friend who has been doing a little homework on this.
    And he actually ordered me dinner because I found it for him.

    .. lol. So allow me to reword this.... Thanks for the meal!
    ! But yeah, thanx for spending the time to discuss this matter here on your blog.


    Here is my website HTTP://5Dsmartstore.com/pet-care/treat-your-kitty-with-the-sureflap-microchip-cat-flap/

    ReplyDelete
  17. I respect your piece of content, appreciate it for the fascinating material .


    my webpage ... ,cheap earrings online shopping

    ReplyDelete
  18. Machine Beats Headphones 2012 For that Charming You.Listen Machine Beats Dr.
    Dre Studio Headphones Examine Beats Solo HD (PRODUCT) RED Hi-def
    On-ear Headphones with Control Talk. Style formal overall
    look style; permit you to really speedily be considered a trend fashionable rider, provide high rate of second view.
    Advancement technology tends to make accurate diction of announcer, transmit the backdrop music striking had, the headset is rise in maintain a swimming pool of turning functionality, and style could be very
    flexible cable, successfully stopping the coil. I lately found a standard friend jogging around the street donning
    monster beats simply by Dr. Dre studio headset, therefore I
    urge usually get asked her the direction they sounded.
    She had been each pixel welcoming to let folks have fast
    hearken to be able to her casqued beats detector claim I was satisfied could
    possibly be very an understatement.Be prepared to require the
    job Potential beats sharpening of plastic rather than grinding craft MONSTER.
    This prior it could be cooler. Beast Earphones through he or she is within your.

    Nevertheless, this is just too higher therefore is usually to enable several customers to build amends.
    The specific bodily Simply provides great progress over may be performed.
    Although quantity seriously isn't modest, could be duplicated, coming from freedom practical tote, offered within this field that's superb since your seem professional program, Machine product.
    Within be learned. Your BNC-pin connection
    headset is usually 3. 5 mm bendable place. Defiantly Dark
    brown is definitely backed from the tourist class, squeeze genuine mic string conversation.
    Exactly like Monster Beats, the products that is generated
    by all of them usually are so excellent the way the Facilities
    requires traditional red-colored joined with dark ever since
    the colors plan, providing the genuine ground-breaking visible
    impact. In the stage, this kind of comparison colour plan is
    the fact is loaded with "Visual Impact", as shocking since acoustic in the Machine.
    Shut Created hearing keyrings, Provides improvement over Factories
    totally enclose your ear so that you can fasten away foundation sound.
    Furthermore, Beats Facilities completely enclose your favourite songs to
    lock out ambient noise. Moreover, Monster Surpasses by Dr.
    Making home has added the Noises Reduction function.
    Just place 2 7# power supply towards the remaining hearing mug also, the headphone
    functions. On the flip side, there is a ability turn on the perfect types
    in addition to silence switch in addition drive this "b"
    logo design switch and you should temporarily stop the original
    songs perform perform also, the Sound Decrease carry it out truly is user-friendly!
    Today, acoustic probably will not be the only real yardstick for almost any Superior Justin s symptomatic of friendship,
    Monster Surpasses, with several motor property
    proprietors are compensated n. Monster Beats headphones because of their
    ongoing loyalty to visit to clubs. An individual will be gifted having an tam card you can easily use for
    gas using the foremost half mass selling station.


    Feel free to surf to my blog post - ,cheap pretty earrings

    ReplyDelete
  19. I have SAMSUNG UA46B7000 46-inch LED TV Price - Series 7.


    Here is my blog post: http://www.lg42ls5600.co.uk

    ReplyDelete
  20. Just nice tips. It's going to definitely help me as I'm in
    the strategy of building my website.

    my site: contemporary silver jewellery

    ReplyDelete
  21. I am regular reader, how are you everybody?
    This paragraph posted at this web page is genuinely fastidious.


    Also visit my blog ... LG 42LS5600 LED TV

    ReplyDelete
  22. Really appreciate you sharing this short article.

    Much thanks again. Great.

    my web page ... ,cheap earring online

    ReplyDelete
  23. It's a shame you don't haνe a dοnate
    button! I'd definitely donate to this fantastic blog! I suppose for now i'll settle
    for bookmarκіng and adding youг RSS feed to my Google account.
    Ӏ look forwaгd to freѕh updates and will talk
    about this blоg with my Facebook gгoup.
    Chat soon!

    Herе is my homepage :: somalinow.net

    ReplyDelete
  24. Hi my friend! I must say until this post is amazing, great written and are available with nearly all vital
    infos. I would really like to look more posts such as this .



    My homepage ... silver jewellery manufacturer

    ReplyDelete
  25. Hey this is kinda of off topic but I was wanting to know if blogs use WYSIWYG editors or
    if you have to manually code with HTML. I'm starting a blog soon but have no coding knowledge so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

    Also visit my site ... xerox 8560 phaser

    ReplyDelete
  26. A fascinating discussion is worth comment. I believe that you need to write more on this issue, it might not be
    a taboo matter but usually folks don't speak about these issues. To the next! All the best!!

    my web blog :: Pilgrim Jewellery Stockists Uk

    ReplyDelete
  27. hi there Mr. JOJO,
    Pls email me the vedio for Laser Printer utilized for PCB.


    My webpage: http://atozartticle.info/article.php?id=11252

    ReplyDelete
  28. ... and an advancement in to "4D" printing.

    My web site: xerox phaser 8560 maintenance kit ::
    ::

    ReplyDelete
  29. Whoa! This blog looks just like my old one! It's on a entirely different topic but it has pretty much the same page layout and design. Wonderful choice of colors!

    Feel free to visit my blog post; hultquist jewellery online

    ReplyDelete
  30. Excellent beat ! I wish to apprentice at the
    same time as you amend your website, how can i subscribe for a weblog
    web site? The account helped me a applicable deal.
    I have been tiny bit familiar of this your broadcast offered
    bright clear concept

    Have a look at my web page xerox 8560mfp

    ReplyDelete
  31. Hello there! This post could not be written any better!
    Reading through this post reminds me of my old room mate!
    He always kept talking about this. I will forward this write-up to
    him. Fairly certain he will have a good read. Thank you for sharing!



    Feel free to surf to my web blog - best web hosts *www.ukbesthosting.info*

    ReplyDelete
  32. When someone writes an post he/she retains the plan of a
    user in his/her mind that how a user can understand it.

    Thus that's why this article is amazing. Thanks!

    Take a look at my web page ... pilgrim jewellery on ebay **

    ReplyDelete
  33. Thanks for writing. All the answers have the video clip .
    .. watch very carefully and you will be publishing tags quickly!
    Thanks for stopping by!

    Here is my web-site; xerox phaser 8560 service manual

    ReplyDelete
  34. May I've permission to implement these records as well on my website for handmade jewelry. My business is still developing my site and would love to add this info.

    Also visit my site - handmade silver jewellery

    ReplyDelete
  35. Link exchange is nоthіng else excеpt it is
    juѕt plасing the other pеrѕon's web site link on your page at suitable place and other person will also do same in support of you.

    Also visit my page; facebook apps

    ReplyDelete
  36. Greetings, every one there, I am using HP LaserJet 1500 color printer on Mac
    how can easily I take prints of several pages in Mac.
    I tried all the options and I did not prospered in taking a number of web pages print.
    There is now problem with Hp 1500 Drivers and Hp 1500 printer software application, all are working fine.


    Also visit my web site ... xerox phaser 8560mfp

    ReplyDelete
  37. Interestingly, I'm presently acquiring a limitcheck error on an HP4700- less than 2 years old! )Our now inoperative 4600 never had this concern when printing the exact same file!

    Have a look at my site :: xerox phaser 8560 solid ink *http://wiki.ueb.pt/*

    ReplyDelete
  38. Hi Tia! Yes, that is definitely totally feasible! Fundamental essentials tools and
    supplies I'd recommend to get going:
    Butane torch kit: https://shop.rings-things.com/cart/pc/Rings-Things-Micro-Torch-Kit-1995p30500.htm
    A superb book: https://shop.rings-things.com/cart/pc/Book-Soldering-Made-Simple-Easy-Techniques-for-the-Kitchen-Table-Jeweler-499p27181.htm
    And unfortunately your sterling wire, chain, charms etc.; silver solder (https://shop.rings-things.com/cart/pc/showsearchresults.asp?pageStyle=M&resultCnt=10&keyword=hard+grade+solder) and flux (https://shop.rings-things.com/cart/pc/Flux-Liquid-4-oz-Self-Pickling-2113p17460.htm).

    Also visit my blog ... danon jewellery sale

    ReplyDelete
  39. Some genuinely interesting information, well written and broadly user friendly .


    my weblog - silver jewellery designs

    ReplyDelete
  40. Cuгrently it sounԁs likе
    BlogEngine iѕ the top blogging platform availablе right now.
    (fгom what I've read) Is that what you'rе using on уоur blog?


    Here iѕ my page - home page facebook

    ReplyDelete
  41. Just remap the reference of your operation properties.
    [Even though those are correct]
    - Rimbik

    ReplyDelete