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?

3
  • 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? Commented Sep 1, 2014 at 4:00
  • Let me check and get back to you in an hour or so. Commented Sep 1, 2014 at 8: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. Commented Sep 1, 2014 at 9:00

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

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.

1 Comment

I posted the answer. I've experienced this problem before, so I was 99% sure it would work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.