Solved

DLL changes do not work till DLL version is changed

Posted on 2010-11-19
7
693 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 33
Chat Room 1 26
cs.Designer Issue 2 17
Calling stored proc in EDMX 11 19
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 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

19 Experts available now in Live!

Get 1:1 Help Now