.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Asad Ali
Post New Web Links

Pages not loading the styles when directly accessed

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net
 

I have been trying very hard to identify the issue that I am facing and am facing a brick wall now. Any help will be great!

My application uses Windows Live ID for authentication. Everything works fine but for one issue. There are few pages that do not load styels/css/graphics when accessed directly. However, if I access the home page (that works fine always) and then access these error-prone pages, then they also work fine. After this, the all error-prone pages always work fine unless the browser is re-opened.

When this error pages are acessed directly, it shows place holder for images but does not show the images. Now when i access this image directly on the browser,for example - http://....logo.png it appends '?wa=wsignin1.0&ppud=4' and shows an error page 'HTTP Error 405.0 - Method Not Allowed'. Soon after If I refresh or type the image path, it loads up the image.

I am not sure what the problem is. I tried adding web.condig with authorization tags to allow all users in these CSS/images folder but nothing works. Somehow, few of the pages work absolutely fine.

Any help is heighly appreciated.




View Complete Post


More Related Resource Links

Using Server-Side XSL for Early Rendering: Generating Frequently Accessed Data-Driven Web Pages in A

  

Dynamic data-driven pages have become the basis of many cutting-edge Web sites. Early render systems can provide better performance and maintainability for data-driven Web sites by generating frequently accessed pages that contain less-volatile information ahead of time. We'll show you an example of a server-side solution that uses Extensible Stylesheet Language (XSL) to merge data and layout information into HTML that is compatible with just about any modern Web browser. Using these techniques to render Web pages early can reduce the load on your database back end and increase performance for your users.

Paul Enfield

MSDN Magazine April 2000


Long execution times for Search pages even after 4th or 5th user has accessed the same page.

  
Hi Guys We have a Sharepoint 2010 farm with two NLB web fronts ends, a Index server and a two box SQL cluster. The same problem also occurs on a dev box which has Sharepoint 2010 and SQl server running on the same single box. When a user access the search or advanced search page we get long execution times of between 15 and 30 seconds.  The strange thing is that the user will have a slow response the first time, then they are fine for a period of an hour or two and then they hit the slow response again.  Below i have copied info from the developer dashboard.  Does anyone have a suggestion of where to start tackiling this issue. Thanks 1st Run.  (Note this site was accessed by 3 other users first) BeginRequestHandler (0.05 ms) PostAuthenticateRequestHandler (0.06 ms) PostResolveRequestCacheHandler (18.48 ms) GetWebPartPageContent (16.87 ms) GetFileAndMetaInfo (15.57 ms) GetWebPartPageContent (35.25 ms) GetFileAndMetaInfo (34.99 ms) GetWebPartPageContent#1 (89.27 ms) GetFileAndMetaInfo (89.06 ms) Add WebParts (3975.17 ms) Search Box (3974.54 ms) SearchBoxEx.OnLoad (15426.56 ms) SearchBoxEx.HandleContextualScoping (0.01 ms) UserPreference.GetUserPreference (15418.52 ms) UserPreference.GetFromCache (0.04 ms) SearchServiceApplicationProxy.GetUse

Web Developer is not loading my web pages

  
Hi All,   In urgent need of some help. I have been using Visual Web Developer without any problems until yesterday, when it decided that it is no longer going to load any of my web pages.  I have tried creating a very simple project with a single hyperlink on the page, but the page does not load. If I  Change the "use dynamic ports" to false and select a port number i get the following message "unable to launch the ASP.Net development Server. Port 'xxxx' is in use". Does anybody have any ideas as to what could possibly have happened to my Web Developer to cause this?   Any help is appreciated.   ThanksEddieB

Problems loading pages that require to be logged in.

  

So the problem is that when a user logs on the website and he tries to load a pages that requires someone to be logged in. For example to edit his profile or add a record to the database. So when I log in and try to load profile.aspx he gives me the following error.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error:

Line 58:     Public Overridable Property Voornaam() As String
Line 59:         Get
Line 60:             Return CType(Me.GetPropertyValue("Voornaam"),String)
Line 61:         End Get
Line 62:         Set

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\flanders_website\925da723\20319e75\App_Code.45wzfix6.19.vb    Line: 60


However if I try to do this on my local machine for testing everything works fine. (on the same da

Response.Redirect Holds Other Pages from Loading

  

Here's the scenario.

I've got a form with a button on it. You have to be logged in to see this form. I use this code to check if the user is logged in and act appropriatley.

Dim isLoggedIn As Boolean = CType(Session("LoggedIn"), Boolean)
       

        If isLoggedIn = False Then
            Response.Redirect("Login.aspx")
        End If

The button runs a report that takes anywhere from 0.5 to 20 seconds. For testing it just sleeps for 10 seconds.

Threading.Thread.Sleep(10000)


The problem is this. Say User1 comes to the form, logs in and runs the report. If User2 comes to the form, the page will not load until User1's report is done.

Now, the bonus is if I comment out the response.redirect line, everything works fine. But if that line is in there I will get this problem.

My quesiton is why is this happening? What's going on in the background that's causing this? Any way around it?


Problem on loading sharepoint pages in Iframe.

  

Hi All,

 

I am using WSS 3.0.

I have 2 sharepoint application pages. ie, the pages A(http://site1.com/A.aspx) and B(http://site2.com/B.aspx).During the page load of A, we create an iframe and load the page B on it.  But it does not work, the login page shows in my iframe. These two pages may be in same domain. Is there any problem on loading sharepoint pages on iframe?

 

Please help me.

 

Thanks in Advance...

 


Loading pages content with jquery

  

Hi people

I would like to know, based on your experience, if loading every page content into a div with jquery is a good practice.

 

Regards

Jonathan

 


ScriptManager not loading script resources when page accessed by Chrome

  

During development of my site, I have optimized for all the common browsers, including Chrome and it works fine when tested locally on my dev machine. However, I have found out that when put on my live dedicated server, the pages that are delivered to Chrome do not contain the AJAX scripts and for example the treeview, which should load its branches dynamically, renders in such a way that a full postback occures. This completely breaks the site in Chrome.

Considering all things I could deduce about the problem, I would suppose that I may need a newer version of MS AJAX that supports Chrome, but I cannot find any version older than Feb 2007 and anyway, Microsoft .NET Framework 3.5 SP1 is installed on the live server. That should contain the propper MS AJAX anyway, shuldn't it?

I've been researching this for more than a whole day now and cannot figure out what's wrong. I even matched and compared all settings of the site on IIS 7 on both my dev machine and the live server. Except a couple of, as far as I can say, unrelated additional entries on the live server, those are identical as well.

I tested using Fiddler that all the difference is made by the User-Agent request header. If I just add

(compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2;

Using jQuery to directly call ASP.NET AJAX page methods

  
Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

High Performance ASP.NET - Speeding Up ASP.NET Pages

  
have been writing a series of blog posts, which I have named High Performance ASP.NET Websites Made Easy! There is no rhyme or reason to the order of these posts and certainly can be read in any order:

Developing High Performance and Scalable ASP.NET Websites
Avoid Chatty Interfaces Between the Tiers in Your ASP.NET Web Application
ASP.NET Page Profiling - Page Tracing - High Performance and Scalable ASP.NET Websites Made Easy
Web Applications: N-Tier vs. N-Layer - Benefits and Trade-Offs
Query Analyzer - Sql Server Database Indexes and Execution Plans

SharePoint Application and Site Pages - Part 1 of 2

  
In this first part of the two part series, Steven covers the differences between Site and Application pages in SharePoint 2007, why each may be used in various circumstances, and prepares for the construction of a menu located application page. After a brief introduction he examines the concept of Site Pages and Application Pages separately in detail with supported screenshots.

SharePoint Application and Site Pages - Part 2 of 2

  
As the second article in a two part series, Steven examines the attributes and details of a SharePoint 2007 application page, including the construction and feature deployment of the same page based project. Since this is a WSS level objective, as opposed to MOSS, you will not need MOSS to work with the code included in this project. Windows Server 2003, WSS, and Visual Studio 2005 are all that is needed, with no additional add-ons. He provides a detailed analysis of each step involved in the creation and deployment of the project.

Application Vs. Content Pages in SharePoint

  
SharePoint has two types of ASPX pages. One type is the application page, also known as a _layout page. The other type of ASPX page is a content page, also known as a site page. Each of these page types is stored in a different location in SharePoint. When developers create custom ASPX pages, they must decide on the page type.

Master Pages in MOSS 2007

  
'MasterPages' feature in sharepoint 2007 makes the entire customization job easy.In 2003 we used to face lot of issues to get the same look and feel and the standard behaviour for overall site. In 2007, customizing the look and feel for the entire site can be done in a simple way by using 'MasterPage' feature.

How to Pass Values Between Web Pages ASP.NET

  
You can pass information between pages in various ways, some of which depend on how the redirection occurs. The following options are available even if the source page is in a different ASP.NET Web application from the target page, or if the source page is not an ASP.NET Web page:

Use a query string.

Get HTTP POST information from the source page.

The following options are available only when the source and target pages are in the same ASP.NET Web application.

Use session state.

Create public properties in the source page and access the property values in the target page.

Get control information in the target page from controls in the source page.

How to Pass Values Between ASP.NET Web Pages

  
You can pass information between pages in various ways, some of which depend on how the redirection occurs. The following options are available even if the source page is in a different ASP.NET Web application from the target page, or if the source page is not an ASP.NET Web page:

Use a query string.

Get HTTP POST information from the source page.

The following options are available only when the source and target pages are in the same ASP.NET Web application.

Use session state.

Create public properties in the source page and access the property values in the target page.

Get control information in the target page from controls in the source page.

Combine, minify and compress JavaScript files to load ASP.NET pages faster

  
Websites are getting more interactive these days and most of this interactivity comes from JavaScript. People are using different JavaScript libraries and frameworks to make their websites more interactive and user friendly.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend