1

I am trying to modify the string values for a resx file of an existing application. I have done nothing else apart from just changing the string value to replace a word (from "technician" to "agent"). File name and permissions are same, even the structure and naming convention is same.

Now, these changes do not reflect in IIS. I have restarted app pool, refreshed the application, double checked the permissions. Nothing seems wrong anywhere. I even tried the suggestions in older similar questions, but no luck.

I am not sure, if I need to recompile the whole solution, although, I believe that should not be the case. Do I need to do that? Also, will I have to republish the website from scratch, or can I just replace recompiled files in the IIS folder?

Or is there some other step I am missing?

jitendragarg
  • 945
  • 1
  • 14
  • 54
  • I think you need to do a clean build and then just replace the main dll for your site in the bin folder. What happens when you do that? – Markus Sep 01 '14 at 04:00
  • Let me check and get back to you in an hour or so. – jitendragarg Sep 01 '14 at 08:32
  • Thanks, that worked. When I copied just the resx file, IIS removed the whole folder. Maybe it thought the folder was corrupt or something. Anyway, I moved the resources folder again, and the new dll, and changes show up fine. – jitendragarg Sep 01 '14 at 09:00

2 Answers2

4

You need to do a clean build and then just replace the main dll for your site in the bin folder. Sometimes Visual Studio doesn't see the change in resources and, in turn, it doesn't trigger a rebuild on your DLL. Clean build ensures the changes are built.

Markus
  • 761
  • 3
  • 6
0

As per /u/Markus suggestion, I tried to build the code again. After changing the main dll file, and copying the resources folder again, it works.

jitendragarg
  • 945
  • 1
  • 14
  • 54
  • I posted the answer. I've experienced this problem before, so I was 99% sure it would work. – Markus Sep 02 '14 at 20:12