Solved

I added a couple of new dll references(that resides on my pc), Publish to web server now the app doesn't work

Posted on 2014-12-31
6
204 Views
Last Modified: 2014-12-31
Hi, I'm using vs2012.
I added a couple of dll to my project and these 2 dlls resides on my local PC's C drive.  It runs fine from my local VS however, after publishing to server it doesn't work when it reaches code area where these 2 dlls are needed.  How do I configure the Publish or build manager to make sure these 2 dlls are included when published using Web Deply?

Also, one of the dll requires the 2nd dll to even run on my pc that's why I added reference to the 2nd dll.  In general, if you create a class library, shouldn't you include all the dependency dll that you need so user like me wouldn't have to download and include those dependent dll?  The error message I got is the application cannot find and load the 2nd dll(MS Sharepoint.client dll) that is needed by the 1st dll(this is a class library built by co-worker).

Thank you.
0
Comment
Question by:lapucca
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Author Comment

by:lapucca
ID: 40526121
Attached is the error message when the application crashed.  This dll was added to reference in my project.  The dll resides on my local PC.  So when I build in Release mode, and publish, shouldn't these dll automatically be included in the publish deployment to the web server?  I even tried copy the file, using the same path, on the web server and it still can't load the dll.
dll-error.txt
0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40526227
You need a local copy of both DLLs, thus please set both DLLs local copy property in your web project as shown here
After done that, publish your site again and make sure your DLLs are copied to your bin folder in your server.
0
 

Author Comment

by:lapucca
ID: 40526242
Hi,
I read the link you provided, not understanding it completely but I did set the 2 dll propety's Copy Local to True.  Attached is one of the dll, the one in the error message, property screen shot.  I publish using Web deploy again and still getting the same error.  Thank you.
dll-error2.txt.png
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 36

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 40526265
I think you need to install the correct Share point client version in your server. There should a redistributable package associated with the Sharepoint version you are targeting. For example Microsoft's SharePoint Foundation 2010 Client Object Model Redistributable for Sharepoint 2010.
0
 

Author Comment

by:lapucca
ID: 40526278
Hi,
This is what I installed on my local PC.  I will install that on the web server.sharepointclientcomponents_x64
Awesome!  That is it!!  Previously I copied the dlls and folders to the web server, that didn't do the trick. It's odd that My project reference to these 2 dlls but the publish web deploy doesn't include this.  Or is it the problem that the SP Dll just need to be install with the web server?
Thank you for the big help.
0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40526375
You are welcome. You can see this step as installing SP as prerequisite of your web site.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question