Arrows and buttons vanished in IIS7 / Windows Server 2008 - asp.net

[Cross-posted on http://datatables.net]
Hi,
can anyone offer me clues about this problem?
I have a web site running on IIS6 and Windows Server 2003. It uses an add-on for JQuery UI called "datatables" (http://datatables.net). In the DataTables objects, it displays the up-and-down arrows in the sortable column headings, and "prev / next" button at the bottom-right of the table.
If I copy the entire site to a server with IIS7.0 and Windows Server 2008, the arrows and the buttons no longer appear. I can still sort the columns by clicking on their headings, and navigate to the previous and next pages by clicking on the words "prev" and "next". However the graphic arrows and buttons do not appear.
I did find a reference to this kind of problem; http://datatables.net/forums/discussion/6353/arrow-next-to-the-header-of-the-table-is-missing/p1
However, that suggests the cause is a missing .css file and in my case, I know none is missing.
I have upgraded DataTables from v1.8 to v1.9.1, and ensured that the application pool in IIS7 is "classic", supposedly compatible with IIS6, but the arrows and buttons did not re-appear.
All suggestions gratefully received!

In IIS7, if I remember correctly you need to enable static content, which is not selected by default. I remember that when I first used IIS7 that was my main problem. There are more details about it here: http://weblogs.asp.net/anasghanem/archive/2008/05/23/don-t-forget-to-check-quot-static-content-service-quot-in-iis7-installation.aspx

Related

.ASPX pages markups are opening in web browser

When I double click on .aspx pages in my web application project in VS2010, instead of showing the mark up in the ide the .aspx pages are opening in the web browser as shown below. The same is happening when I run my application it opens all the .aspx pages in the web browser along the application url i.e., http://localhost123456/default.aspx. I have to close all the other pages except the http://localhost123456/default.aspx to run/ test my application. Not sure what would cause this to happen. I am not able to find any solutions so far, any help is appreciated. I used the option View Markup (Rightclick on aspx page -> view Markup) to see the markup for now.
Update
As per Mike's answer I checked the options under Open with... and I do have a Internet Explorer (Default) set as shown in the following image. Not sure how did it got there.
Deleting the Internet Explorer (Default) option might be cumbersome if I have lot of .aspx pages , if there is a way to remove this option at once for all .aspx pages rather than right clicking on each and every .aspx and remove it that would be great.
As per #JB King suggestion I did checked the file properties and all the .aspx files are set with Opens with: Microsoft Visual Studio option as shown it the image below.
Right-click any .aspx file in the project, select Open With...
In the screen that pops up, select Web Form Editor, then click the Set as Default button.
Not sure how you got Internet Explorer as an option here, but if it is there, you can just delete it. It's not applicable for loading the aspx from disk. Rather, to see the rendered page in IE, you'd do View in Browser or Browse With... (in which you can set your default browser, as well).
Your address bar shows you're loading files directly from disk. This won't work. ASP.NET is not lilke static HTML. ASP.NET applications must be run from within a webserver. Install IIS and ensure ASP.NET is installed and configured, or use the Debugging Webserver (IIS Express) in Visual Studio.
If you look at the properties of the file, there should be a line of Opens with: that is where you want to have Visual Studio rather than Internet Explorer as the issue is with which programs are mapped to what file extension. Microsoft instructions if you want those as specific steps to do.

Web components messed up when Configuring Web Deploy using Win Server 2008

I am trying to google solution on this but quick answer will be appreciated. I am kind of new to this: I configured webdeploy (website) using IIS7 on Win Sever 2008. But my status bar and gridview is shows messed up. Gridview columns are in one row and status bar is on next line. What can I do to make things right? I am using IE browser.
Will this link help: http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-web-deploy
I guess my CSS is getting messed up but it runs perfect on visual studio!
Thank you very much for answers!
Under "Compatibility View Settings", the "Display Intranet Sites In Compatibility View" checkbox was checked... I unchecked was able to toggle compatibility view from the IE toolbar and everything looks great! For CSS to work perfectly: Do this!

Telerik image editor Tool Dialog issue

I am trying to implement a rad editor. In it there is an Image Manager and inside the image manager is an Image Editor. So far its fine(the image is being shown perfectly).
As in every story there is a villain here it is.
Now the problem arises when i click on any of the tool buttons in the image editor window. The popup screen but there is nothing inside it. Like when i click on the Crop button the popup heading is just Tool Dialog and there is no content in it. A preview can be seen .
This issue is arising only when i use it in a RadEditor. When i am using an Image Manager alone then there is no issue. I am kind of stuck here..
Thanks
This a follow-up, because there is addition information on the issue. The problem is discussed in the following help article: http://www.telerik.com/help/aspnet-ajax/radcompression.html
Known issues
Problem
When RadCompression is enabled and you are using .NET 4.0, event handlers might not be raised in a default document in IIS 7 or IIS 7.5 Integrated Mode.
Solution
This problem is caused by a breaking change in .NET 4.0 described here. To workaround it one can set preCondition="managedHandler" for the RadCompression module. You may also need to remove the runAllManagedModulesForAllRequests setting from your web.config if you have it (or set it to false).
I am aware of this problem which is caused by IIS of Windows 2008 server. The problem arise when the when the loaded URL in the browser doesn't contain the exact page hosting the control.
For example the control will not work at www.domain.com, but it will work at www.domain.com/Default.aspx.
Here you can find article, which discusses such a problem: http://forums.iis.net/p/1175925/1973069.aspx.
Please, note that the issue is not directly related to Telerik controls. If you are unable to solve it you could contact Microsoft or search in Internet for a solution.

2 servers, same website on both: IE shows two slightly different version

I'm getting a weird issue involving IIS and IE, and I'll try to describe it clearly.
I have a regular html-css-js/jquery website that I've developed locally. Now that it's ready, I'm trying to deploy it on a server.
Once it's hosted on the server, I see two problems in IE only:
The rendering is slightly different: there's a few pixels of additional white space all around my website (so the contents is actually more 'compressed' than when viewed locally).
Some JS issues: I'm using the Impromptu jQuery popup plug-in, and the callback I specify in its 'loaded' event pre-populates its forms fields. In FF it works, but in IE the fields don't get populated until I close the popup and open it again. This worked locally on all browsers.
As weird as it sounds, the text in my jQuery popup dialog does not seem to have the 'ClearType' technology applied. The text is like '1 pixel thin' and not anti-aliased like everywhere else.
I have uploaded my website to another server and it runs perfectly fine. The issue is that I need to put it on the first server and I don't know what's wrong. Both servers are on Win 2k3 with IIS 6, .NET 3.5.
Any pointers as to what is going wrong? Thanks a lot.
Make sure that the "security zone" in the Internet Explorer status bar is the same when viewing the site between the 2 servers.
Use the IE developer toolbar to debug your css. Could also be a caching issue if it looks like an older version.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=95e06cbe-4940-4218-b75d-b8856fced535

Visual Studio | ASP.NET Configuration error

I have a problem as I have struggled with for a week.
Now I give up! I really can not figure out how to solve it. Every time I open the ASP.NET Configuration in VS10, then comes the first with this error:
**An error was encountered. Please return to the previous page and try again. **
If I then press:
How do I Use this Tool
so this comes up:
**Tool Has Timed Out
As a security measure, the Web Site Administration Tool times out after a period of inactivity. Changes to machine.config or web.config may also result in the tool needing to be restarted. To continue configuring your web site, restart the tool. **
Some who can answer me on what's happening here?
"Special characters in the path may be the problem, according to the posts." as Posted above by Dave Swersky
THIS worked perfectly for me! I had a special character ("#") in my folder path I removed this and removed spaces for good measure!
I was getting the error "Tool has timed out" among other errors when accessing the WSAT(Web site administration tool) from the ASP.NET configuration menu item.
I saw a post somewhere else that said the problems was solved when the default browser was changed to Internet Explorer. I have been using Firefox and have the exact same problem. When I changed the default browser to IE, the configuration page came up with no problem. But it won't work twice in a row without going in and setting the default browser back to IE each time. When I go back in to Program Access and Defaults, "Use by current browser" is selected. I have to reselect IE, and then it will work one time.
Judging by the Connect site, this error has been reported and is not well understood:
http://connect.microsoft.com/VisualStudio/feedback/details/118567/an-error-was-encountered-please-return-to-the-previous-page-and-try-again
Special characters in the path may be the problem, according to the posts.
This is what worked for me.
I'm using Visual Studio 2010 trying to create the membership role. I was trying to use the ASP.NET Configuration in Visual Studio.
Set the 'Default Browser' to Internet Explore.
To do this:
Right click on one of the .aspx pages you have under "Solution Explorer".
Select "Browse With..."
Select Internet Explore and Click on Set as Default.
Close the box.
Go back and click on "ASP.NET Configuration"
This will automatically open Internet Explorer.
Problem Solved :D
I guess what I was doing wrong was using Firefox as the default browser with Visual Studio. I'm guessing Visual Studio works good together with Internet Explorer since Momma and Daddy made them together (awww how cute)
The issue might be related to an application path that has spaces. After googling I managed to bypass the issue by appending the application path to the url manually ie.
http://localhost:{your_port_here}/asp.netwebadminfiles/default.aspx?**applicationPhysicalPath={path_to_your_application}&applicationUrl=/**
As a firefox user, I closed firefox then executed the "ASP.NET Configuration" option in VS2010. It automatically opens firefox (default browser) and now I am seeing WAT page contents.

Resources