MVC 3 Razor view renders different on hosting environment than locally?

When something different in a host comparing to your environment, it's usually one of the following issues.

Up vote 1 down vote favorite share g+ share fb share tw.

I have created an MVC 3 view, just by adding a controller and scaffold it by usage of entity framework. See below view: MetaType Value Page @foreach (var item in Model) { @Html. DisplayFor(modelItem => item.

MetaType) @Html. DisplayFor(modelItem => item. Value) @Html.

DisplayFor(modelItem => item.Page. Title) @Html. ActionLink("Edit", "Edit", new { id=item.

Id }) | @Html. ActionLink("Details", "Details", new { id=item. Id }) | @Html.

ActionLink("Delete", "Delete", new { id=item. Id }) } When I open the view on my dev machine than the html produced is just as expected: MetaType Value Page Keywords bla, bla bla, Home Edit | Details | Delete On our hosting environment it's rendered with on almost every row an extra whiteline. MetaType Value Page Keywords values, values, values.

Home Edit | Delete Anyone has an idea why there is a difference, and how to resolve this extra whitespace? UPDATE It seems like only this page is having this issue. Other pages just have a normal html layout as expected.

I also have checked the data from the database, but can't find anything unusual or different than the other pages. I have also tried to regenerate the file and upload it again, but also no luck. I'm a bit out of options on this issue.

Asp.net mvc asp. Net-mvc-3 razor link|improve this question edited Sep 8 '11 at 14:21 asked Sep 8 '11 at 9:44ChristiaanV1,5821313 100% accept rate.

When something different in a host comparing to your environment, it's usually one of the following issues: Time and/or DateTime Format of server is different from your local machine Global application culture and/or encoding is different Databases (MS-SQL) has a different collisions I suggest you to add the following node to both your local and host web. Config, and check the result.

After a doing a republish of my application the issue has dissapeared. Haven't found what's causing it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions