ASP.NET网站在部署时看起来不一样 [英] ASP.NET website looks different when deployed

查看:205
本文介绍了ASP.NET网站在部署时看起来不一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在这个问题上回答了这个问题,但还没有提出什么。也许我使用的搜索字词太泛泛了...无论如何,这里:

I have googled around for the answer to this question, but haven't come up with anything. Maybe the search terms I used were too generic... Anyway, here goes:

我发现网页设计和ASP.NET的乐趣,以及尝试的恶梦在IE和所有其他浏览器中以相同的方式显示东西。
我在VS2010工作,并使用IE8调试我的网站。我真的没有得到的是为什么我发布的网站在IE中看起来与调试模式看起来不一样...我的意思是只有小事情,像在网站中的边界在发布的网站上消失,简单的html横向规则也不一样。

I am discovering the joys of web design and ASP.NET, and the nightmare of trying to get things to display in the same way in IE and all the other browsers. I am working in VS2010 and debugging my website using IE8. What I really don't get is why the website once I publish it looks different in IE from the way it looks in debug mode... I mean small things only, like border in gridviews disappearing in the published site, simple html horizontal rules aren't the same either.

它也弄坏了我的列表菜单非常糟糕,但我设法用* display:inline修复;黑客奇怪的是,它不需要它在调试模式,但需要它发布的网站。

It also messed up my list menu pretty bad, but I managed to fix that with the *display: inline; hack. The weird thing is that it doesn't need it in debug mode, but needs it for the published website.

我在自己的机器上运行网站,运行Win XP Pro和通过IIS托管.NET 4.0 ...可以将问题与IIS相关?

I am hosting the site on my own machine, running Win XP Pro and hosting through IIS with .NET 4.0... Could the issue be IIS related?

任何帮助将不胜感激,因为这些差异只是可笑,而且驱使我绝望我希望大家在这里使用Chrome或Safari,但不幸的是IE仍然在日本规则...

Any help would be much appreciated, because those differences are just ridiculous and are driving me to desperation. I wish everyone over here would use Chrome or Safari, but unfortunately IE still rules in Japan...

推荐答案

与受信任站点/内部网站/互联网站点安全设置相关的类似行为。当您以调试模式运行时,您所使用的URL与发布时的不同?有时当我使用 http:// localhost / xxx 这样的URL进行调试时,以及当我直接访问同一网站时从IIS使用 http://machinename.domain.com/xxx 这样的URL解析为信任网站或本地内联网,另一个到互联网,它会根据IE设置更改外观。

I've seen similar behavior related to trusted sites/intranet sites/internet sites security settings. When you run in debug mode is the URL you are using different from when you publish it? I've seen sometimes when I debug using a URL like http://localhost/xxx and when I access the same site straight from IIS using a URL like http://machinename.domain.com/xxx that one resolves to a trusted site or local intranet and the other to internet and it changes the appearance based on the IE settings.

这篇关于ASP.NET网站在部署时看起来不一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆