Solved

DLL changes do not work till DLL version is changed

Posted on 2010-11-19
7
700 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
[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
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

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