I was facing this very strange problem.
The
@Html.ActionLink was as usual working on my local (dev machine) but when I uploaded on the server, the
@Html.ActionLink returns empty string.
I searched a lot in google and many suggests to use @Url.Content or @Url.Action etc helper methods but it didn't work. I even set below setting into web.config file.
<modules runAllManagedModulesForAllRequests="true" />
What worked for me? My server had .NET Framework 4.0 installed and now I thought there might be a bug in the .NET Framework that MS would have fixed so I decided to install .NET Framework 4.5 and it did the work.
Amazingly, it worked. Everything is working fine now.
Hope my experience will help someone.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com