locked
Parser Error: could not load file or assembly Castle.DynamicProxy2... RRS feed

  • Question

  • User-968653481 posted

    I am recieving this Parser error message: Reference.svcmap Could not load file or assembly 'Castle.DynamicProxy2', version = 2.1.0.0, Culture=neutral, PublicToken=407dd0808d44fb.. or one of it's dependencies.  The system cannot find the file specified.  I am using WebMatrix 2.0 and Visual Studio Express 2010 (pretty light on the VS too).  About 6 months ago I added a service reference to the Microsoft Tag service as we are making calls to create QRCodes.  (The error is pointing to /App_WebReferences/MyService/ so I figured it had something to do with the service call).  But I can execute the service and everything else in my dev environment just fine. When I opened the prod website this weekend every cshtml page I tried to go to gave me the error above.  The only thing I can get to is graphic files and / or text files from the url.  The current hosting service is GoDaddy, for now.  I figured it was something on their end since I had not made any changes in prod since 6 days before but they are tellng me it's a script error, which I'm sure it is something I have done that has caught up with me.  After many hours of trying anything I could (also referenced a completely different service) I ended up renaming the App_WebReferences folder in prod to App_WebReferences_TEMP and the site started working, all but the service I am calling of course.  I downloaded the Castle.Core and Castle.DynamicProxy2 .dlls and added them to my WebMatrix solution, the bin dir, packages, etc to prod and then renamed the App folder back and nothing is helping (I've done about 20 more things that will just take too long to explain in one post).  I'm hoping someone a lot smarter than me can give me a couple ideas.  I would really appreciate it!!

    Tuesday, April 9, 2013 5:19 PM

Answers

  • User863028031 posted

    In your local, you installed the package your system but in hosting it's not installed. So you must take the using dll to your bin folder and add the dll as a reference or you must install package on your hosting.

    Have a nice day.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 10, 2013 6:33 PM

All replies

  • User863028031 posted

    Hi,

    Did you add the dll from visual studio or just copy the file to folder? If you directly copy file to folder, you must add dlls to solution and rebuild main dll.

    Have a nice day.

    Wednesday, April 10, 2013 4:54 AM
  • User-968653481 posted

    The problem is that I am not directly using this DLL at all. I know I would have to add it as a reference if I was but I have no idea what it even is.

    Wednesday, April 10, 2013 9:01 AM
  • User863028031 posted

    In your local, you installed the package your system but in hosting it's not installed. So you must take the using dll to your bin folder and add the dll as a reference or you must install package on your hosting.

    Have a nice day.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 10, 2013 6:33 PM