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
195 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

10 Experts available now in Live!

Get 1:1 Help Now