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
Solved

DLL changes do not work till DLL version is changed

Posted on 2010-11-19
7
697 Views
Last Modified: 2012-05-10
Hi all,

I have a custom SPJobDefinition dll deployed on my SP Server (written in C#).

Any changes I make in the dll do NOT get reflected until I change the dll version (while I want it to work right after deployment without having to change version with every minor change I make).

Any help will be appreciated?

Thanks.

0
Comment
Question by:m_a_n
  • 4
  • 3
7 Comments
 
LVL 12

Expert Comment

by:jagssidurala
ID: 34174781
You have to change the DLL version if you done any code changes.

currently you are replacing the new DLL manually. Instead there many Sync tools available in the market, you can use them to copy the DLLs automatically.

Then apply hourly or minute basis Sync between from New DLL location to your production server or SP server .
0
 

Author Comment

by:m_a_n
ID: 34176739
In any other .NET project that I work on, I do not have to change the version for any changes. Then why would I be forced to so in this case?

Thanks for your time!
0
 
LVL 12

Expert Comment

by:jagssidurala
ID: 34178042
The scenario is like this

We have .net solution, in that we can add website, Class Library(where we write classes).

1) Build the Class Librarery, you will get a DLL in debug folder
2) Then Right click on the website and add the DLL by selecting the "Add reference" option.

Thats it.

Then if you do any changes in DLL, just build the Class Library first and Then build the website. The will effect to the website.

Here the creation and consuming both are in one solution and also we have added DLL by selecting "Add refernce". So definatly we can not change DLL version again and again just we should build the Class Library and web site respectively.

I think Your scenario is not like this. DLL location and consuming location(SP server) is located different location. if this is the situation we should change DLL version every time.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:m_a_n
ID: 34187973
Can this have something to do with persistent objects?

SPJobDefinition inherits from SPPersistedObject.

(
Thanks jagssidurala,
  1. My location is same for dev and deployment as I am in DEV environment.
  2. Even if locations were different, still I have never needed to change the DLL version in so many other projects that I have completed.
)

Any clues?



0
 
LVL 12

Expert Comment

by:jagssidurala
ID: 34198144
compare the existing project architecture and the current project again. you can find the difference.

otherwise explain me the old architecture so that i will help you.
0
 

Accepted Solution

by:
m_a_n earned 0 total points
ID: 34230501
Well, thanks all for your time and efforts.

The way I got it working is:

In the C# code delete the existing SPTimerJob and create a new job every time with same arguments as the previous job.

I believe this is the case with Persisted Objects.

Have a good day all.
0
 

Author Closing Comment

by:m_a_n
ID: 34276740
Thanks for everybody's help, though what worked for me was some help from a workmate who advised that I delete and recreate jobs in the code.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
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…

839 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