The Muffin Man
The Muffin Man

Reputation: 20004

How to make server recompile code behind files

I'm using Asp.net 4 and IIS 7. I have a remote desktop connection to the server, and I am rebuilding my solution in visual studio and then replacing the new code behind file on my local computer with that of the web servers deployed version.

However it is not recompiling and using my updated file. I've tried stopping the server, recycling the app pool, replacing files in the app_code, bin directory, and searching with no luck. For now the files are not dll's.

What am I doing wrong?

Upvotes: 0

Views: 891

Answers (1)

Oded
Oded

Reputation: 498904

Delete the compiled assemblies from the %windir%\Microsoft.NET\Framework\v.xxxx\Temporary ASP.NET Files\<site name> directory.

This is where IIS generates the assemblies - deleting these should cause it to recompile.

Upvotes: 2

Related Questions