Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DLL changes do not work till DLL version is changed

Posted on 2010-11-19
7
Medium Priority
?
708 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
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
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

604 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