IIS7 & IE8 - Pages Rendering Differently On Same Versions Of IE8?
Apr 30, 2010
I have an ASP.NET (framework 2.0) web app running under IIS7.hen I run the app on the server, using IE8, localhost the app runs the way it is supposed to.When I run the app in Visual Studio 2008 (framework 2.0) it runs the way it is supposed to.But when I try to run the app from another computer it renders incorrectly.Same versions of IE8.What would cause the serving of an ASP.NET application to render correctly on the server, but incorrectly when serving to another computer, when the Internet Explorer versions are the same?
I have incorporated the asp.net membership and roles feature in my web app on my local dev setup that uses SQL 2008 Developer edition, all works as it should.
My remote system uses SQL 2005 express and I went through the process of creating the ASPNET membership tables via the "aspnet_regsql" command to my remote target database. I then created a few users, adjusted my app connection strings accordingly and uploaded.
My login page uses the "login" server control and when I try and login using credentials from one of the previously created users I get a "Your login attempt was not successful. try again." error. I know the users are in the DB as I can see then via the SQL Management studio on the remote DB. I have triple checked the username/passwords and I am definately entering the correct info. The connection strings are correct as the initial page renders content from another table in the DB. I am getting no errors.
My best guess at the moment is that SQL Express handles Membership/Roles connections differently to the full versions of SQL?
I have an Application_Error handler in my Global.asax file. However, I load many pages using an XHR request and would rather these "sub pages" return javascript or a real 500 code for my main app to process, rather than an error page.
Is it possible to handle errors on certain pages in a different way? Can a master page handle its own errors in a page extending it without bubbling it up to Global.asax?
I have developed a website(using vs 2008 with framework 2.0) used css in it, Website is running perfectly in development server but when i deploy it in iis7 css and images does not load at all.
How would you troubleshoot a page that is rendering slowly in ASP.NET?
This issue is happening on only specific pages with a few user controls. Other pages work fine. Tracing has clarified that the issue is happening between "Begin Render" and "End Render".
My environment is Windows 7 (64bit), with IIS7. I have a web application that I have hosted remotely, as well as running it locally. The problem is that, when running it locally, I would like to go to the app's address at [URL], but when I do this, the page seems to "Half" render, meaning only some images are shown, styles are not being applied, etc. It is very strange.
However, when running the exact same app in debug mode from Visual Studio (which provides a port, like so [URL]), then the App runs fine. I've looked through all IIS settings, and I am not spotting anything obvious that might be causing this. The default port should be 80 for the app. As far as I know I have left all IIS settings default for the most part, and I've installed every single Windows Feature related to IIS, from the control panel.
I'm still trying to resolve a problem with relative links on a page that uses URL routing. The relative links work find when running from Visual Studio, but fail when deployed to a shared hosting account.I'm told that the difference is that Development Server handles all requests through ASP.NET handler but IIS7 doesn't. The result is that URLs with no extension are considered folders on my test machine, and filenames on the shared hosting account. That breaks the relative links.
It was suggested that I do wildcard mapping to IIS7. But I can't make random changes to the shared server machine. I also have concerns about routing everything through IIS, graphics files, style sheets, javascript files, etc. In addition, I also tried adding a <base> tag, which fixed this issue but broke other links on the page.
So I'm left with two questions.
1. If IIS isn't processing files without an extension, then how does my routed page display as an ASP.NET page?
2. What I'd really like to do is specify in my web.config that all files with no extension be handled the way they're handled when running from Visual Studio. I don't suppose that's possible.
I am using IIS7's URLRewrite feature to hide the .aspx extension in my ASP.NET WebForms application's URLs.
I'm using the following configuration:
[code]....
I can now browse to:
[URL]
and this is rewritten to:
[URL]
This preserves the "pretty" url in the browser address bar. I have also updated all my links on the site to use the extensionless URLs.
The problem is that the underlying .aspx pages can still be accessed directly and I'd like to prevent this.
If a user browses to [URL] I'd like it to either redirect/rewrite to [URL], or at the very least just return a "Page not found".
Update:
I managed to get this working by redirecting all .aspx pages to the home directory. This isn't ideal as I'd prefer to send them to the non-.aspx version, but it will do for now.
I am working on the migration of the server. Our new server is Windows server 2008 with IIS7.0 I have a great difficulty in browsing the pages hosted in virtual directories. I have followed the proper steps of creating a virtual directories and converting them into applications. But when i try to browsing the pages of the virtual directory, i get the 404 error. Note: The .Net Framework 4.0 is installed on the server and the web applications which i am trying to configure in the virtual directories are developed in Visual Studio 3.0. Even the http://localhost also don't work.
in every page would be painful. I am thinking if there is anyway we can set this in IIS7 (add this header to aspx pages, but not images/css/js). Is it possible ?
Why IsNothing() is behave differently between RDL and RDLC? I was trying to create a report (RDLC) in VS 2008 and using the IsNothing() function to check to NULL value, however, it keeps return #ERROR when I tried to execute this expression:IIF(IsNothing(Fields!dbField.Value),"emtpy",Fields!dbField.Value)However, I tried the same expression with Reporting Services report (RDL), it works and return "empty" string.
I have encountered a weird thing. I did a quick prototype in plain HTML to show a client an idea for a web page. Then I proceeded to implement the page in MVC 2. The border that I'm utilizing (border-style is ridge) is being displayed differently when rendered as a MVC app versus a HTML page in IE 8 (I haven't checked any other version of IE).
For the past few days Ive been searching for a way to highlight the active tab. If I have say 5 tabs, tab1 (when active) would have the background color red, tab2 green (when active), tab 3 blue (when active) etc. Is there a way to do it?
I developed a page where the formatting looks great in Internet Explorer 8 but when I open the same page in Mozilla Firefox 3.6.3 it does not center the div horizontally (left to right) but instead has the div and content inside on the left side of the page.
Is it possible to detect or use a different template in the asp.net repeater for the last iteration in the repeater?If not I could just use a for loop but I'm curious if it can be done.
I am new to this MVC and have a basic question related to validation. I have a create view for customer and based on the customer entity partial class metadata, I am validating the user input and its working fine as expected when the user clicks the create button.I also have a search button in the same create view, which is used for auto generation of some of the field values. When the user clicks the search button the action method create (post) is called with the corresponding button value as argument.the issue here is when the user clicks the search button most of the user input fields will be blank and the validation fails because of that.
i have a page where i have some text boxes and some dropdowns at the top and a Gridview(in the other page) in a Iframe at the bottom.the problem is that when i see this page in IE 8 and Mozilla 3 i can see them nicely formatted.but when i see it in IE 8 with compatibility mode on then the boxes are sqaushed and the columns of the gridview are also squashed and the whole page looks bit clunky.
I've got a details view control, default set to Insert which I've added file upload controls. I've used a button to begin the upload process and add the other data to the database. The weird thing is that if I use FireFox to enter the data and upload the files, everything works fine but it works slightly differently in IE8. The difference is that when I browse for a file in FireFox, upload it and store the file name, it returns just the file name e.g. myPic.jpg. However, when I upload with IE8 it stores the entire route to the file e.g. C:/Users/Users/Site/myPic.jpg Why would a browser treat these things differently? And, is there a way to fix it to work on both browsers?
I have a strange problem that I am trying to find a solution to or even only know why does this happen. I built a website using ASP.NET, when I run the website locally it looks very normal (I am speaking Style and CSS wise) on all the browsers (including IE8). And when I deploy this website to the test server which has Windows Server 2003 and IIS 6, the applications looks normal too on all the browsers except IE8. I did not try other versions of IE but I have a requirement to have this website working on IE8. Some tweaking on the CSS solves some of the problems but I do not want to go through each and every tiny detail and rework my whole CSS. There are even some problem which cannot be resolved.I have no clue why is this happening. It should be something either with the OS or the application server because those are the only differences between my machine and the server. On my machine I have Windows 7 Enterprise and I was test the website on the ASP.NET development server.
I was adding ContentPlaceHolder by dragging it from the Toolbox to a master page. Depending on the spot where it is inserted, the mark up generated is different:
[Code]....
Is the control name ContentPlaceHolder or contentplaceholder?
When I drag ContentPlaceHolder2 to the bottom of the page, after </html>, it stays unchanged for a while. Then when I formatted it (Ctrl-K, Ctrl-H), the control became contentplaceholder!!