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
188 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
  • 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 35

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 35

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 35

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now