Cheers. Makes sense. I think when I've done it in the past I've had dlls for separate projects which have been referenced by name, so I suppose that's why it works.
Lesson learned.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: .Net dlls - what's going on?
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on ".Net dlls - what's going on?"
Collapse
-
I think the problem will be that any .dll file that gets dropped into a bin folder is automatically included in the codebase of the application when it recompiles (which happens as soon as IIS detects the new files).
The problem then will be that you'll have two identical sets of classes/namespaces - one inside your original (old) .dll and one in the new file. These will conflict and the web application won't know which ones to use, hence the error.
Whenever I deploy like this, I make a backup copy of the entire bin folder, then drop the new files into the live bin and overwrite the existing files. If any problems you can just delete the bin folder and restore the copied bin.
Leave a comment:
-
.Net dlls - what's going on?
This is a really basic question and no doubt goes to show what a charlatan I am.
However...
Was deploying the noddiest little change to clientCos web app.
Normally I'd copy the dlls to a backup directory, but today I just made a copy in the same folder (bin) and dropped the new ones in.
No doubt it's no surprise that the app broke.
Copied the old files back, and it was still broke. Got hold of the error, and it was moaning about the - Copy version of my dll. Removed the - Copy version and everything fine.
Anyone got a link to an online resource that explains what it's doing? Why did it ever try and run my - Copy.dll file? I'm sure I used to be able to do this in the old days - perhaps something specific to web apps happening here?
TaTags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Starmer vs Burnham on housing: What their rival plans mean for your contractor mortgage Jul 22 00:59
- Burnham's housing vision vs. Starmer's home-buying reforms: what it means for your contractor mortgage Jul 22 00:59
- In Khalil v Innovate Transport, a limited company contractor wasn’t a worker and was on £2.30 — not £230 Jul 21 07:58
- Andy Burnham is PM: 5 new IT policies set to shape UK tech and its contractors Jul 20 06:29
- Taxed on money I haven't earned yet? Bold move, HMRC Jul 17 08:36
- The Fair Work Agency has got zero hours in its sights. Do you? Jul 16 08:44
- Cookie Policy Jul 15 11:50
- Cloned again: an umbrella company founder's warning on fraud, JSL and Companies House Jul 15 07:47
- How is JSL bedding in for contractor umbrella companies, 100 days in? Jul 14 07:45
- IT contractor demand cools in June 2026 amid UK heatwave Jul 13 08:18

Leave a comment: