Page in aps.net is not loading at all - asp.net

I have a website project developed using Telerik's rad controls and Twitter's bootstrap in VS2010 (framework 4). I must say it is a large project and this problem was not there a couple of days ago. Problem is that I have few asp.net web pages under a particular folder which when requested to open on localhost, browser is in the loading state forever but page is not getting loaded. Earlier these pages were getting loaded without any problem whatsoever. And when I publish them on the IIS server, they work without any issue means there is no problem with the code.
I tried to debug on the Page_Load of code behind but I realized that server is never reaching there and I wonder what is causing this issue. I would also say that I had not changed any settings on OS or VS. I tried to copy the same page to an another folder to see if it works there but no luck. So folder does not seems to be any issue.
Any idea would be greatly appreciated as this is driving me crazy.
Thanks

Nailed it down, finally:) Infinite loop was messing up, Exit While did the trick.

Related

Azure - Uploaded MVC Project returns 404

Using Visual Studio 2019 I tried to Publish the MVC Project I've been working on. It goes well, but the default route returns a 404 Not Found. Other routes for login/register load the correct html content. This all works well on my localhost. I've been searching around but can only find things relating to Angular etc.
The index page loads content from a database, which I haven't set-up yet if that causes any issues?
Any help is appreciated as I'm boggled.
Issue solved. For anyone wondering in the future, if the page reads content from a database make sure the Migrations are applied and the database is exactly how it is on your local machine (This was my issue anyway).

Visual Studio shows blank page when web application is run

I've had an occasional issue with my laptop where the power instantly cuts out - without the machine shutting down properly. This happened a couple of times yesterday while I was working on a project in VS 2013. Since then when I try to run the project the browser loads and the name of the start up page appears in the url box but it just shows a blank page.
Before, the page loading icon in the Chrome tab would swirl for a while as it was loading, but now it hardly does that at all, as if it's not even trying to load the page.
Some extra info:
I tried setting a different starting page - same result.
I put a break point in the page load code - it doesn't get hit.
If I view the source of the blank it is completely empty, not even
tags
Other projects seem to work find still.
I'm using VS 2013 on Windows 7.
Tried deleting the temp asp.net files
(c/windows/microsoft.net/framework64/v4.0.30319/Temporary ASP.NET
Files) but curiously this folder is already empty - I'm sure this is
what I've done with problem projects before - although I've never
seen this particular problem.
I'm running on IISExpress and have tried all browsers and running without debugging with the same result.
Has anyone seen this problem before? Any ideas??
Thanks
I had the same problem. Solved it by adding a break point at Application_Error function in Global.asax.cs. Then I was able to see the real problem. It was because of some conflicting dlls.
I had the same problem as well. Suddenly when I launch my MVC web application from Visual Studio 2013, the browser comes up and the app is running, but the browser displays blank, no url and does not even try to load the page. In Visual Studio, none of the Script Documents are loaded either.
Simply by setting a breakpoint in Global.asax.cs, Application_start, everything went back to normal, problem solved.

IIS express suddenly not displaying web page

Perhaps someone can help me figure out what's going on.
I'm running VS 2013 and working on a Web Forms application (not an MVC app). I'm using the templates that came down, including all the cool FriendlyUrls functionality. I've been working on this website for several weeks without any problem.
Today, for no apparent reason, one of my pages stopped working. When I attempted to view it, I got an error message that the server was not configured to list directories. My web page does not attempt to list the contents of any directory. It just has some images and some relatively simple Javascript (which does not attempt to enumerate anything).
The error message suggested I run the following command in the IIS Express directory:
appcmd set config /section:system.webServer/directoryBrowse /enabled:true
Just for the sake of experimenting, I ran that command. Now when I attempt to view the page, I get something that looks like this (the page is named Menus.aspx)
localhost - /Menus/
[To Parent Directory]
Clicking on "To Parent Directory" takes me to the home page, as one might expect.
I created a new page, Menus2.aspx, and copied all of the code from Menus.aspx into Menus2.aspx, and Menus2 runs fine. In addition, when I upload the site to Azure, Menus works correctly (as does Menus2). So I think my code is innocent of any wrongdoing.
I then deleted Menus.aspx and renamed Menus2.aspx to Menus.aspx, and I'm back to the same problem.
I was working in a git branch, and reverted back to master to see if at least my original configuration would work, but now even in master I can't get the page to come up.
So it looks like the problem is that something got jacked up in my local configuration, but I can't for the life of me figure out what it is. I have exited VS and rebooted the machine in hopes that the problem will disappear as mysteriously as it started, but no luck.
Every other page in the site (6 so far) works fine. It's just this one, with this name.
So my options at this point are to simply not have a page named Menus.aspx in my project because the name has somehow become cursed, or do all of my testing by uploading to the server and seeing how it works up there, which is a pain and should not be necessary.
Can someone suggest how and where I should start looking for what happened here? This isn't the problem I expected to be working on today.
Thanks in advance.
-Rob

css and images not loading

i have uploaded my asp.net 4 web forms site to my testing server. all the database connectivity issue is resolved and its working perfctly but i am having problem the css and the images are not showing neither localy on the server nor if i try to access it from the external link.
i am using master pages. (if this help in anyway )
i have tryed to hard code the styles into a page. they have appeared i think there is something with the path on server i have to create
i have double checked the css path and the images path they are correct but still they are not showing. any idea?
Thank you 4 the help
I had the same problem two minutes ago. Here's the solution.
All you have to do is run ‘optionalfeature’ command and make sure ‘Static Content’ option is checked.

imagebutton not redirecting when site is live

Ive an asp.net 4.0, c# site,
all the functionality works fine apart from one thing which is doing my head in.
I have 3 image buttons on the masterpage which link to the clients facebook, linkd in and twitter pages,
when I run it on my dev machine (IE 8) the open fine,
when I make the site live (IIS 6) they dontr appear to do anything, no error, no redirect, nothing in the event log.
I was about to bin them and do them from scratch but im wary that I'll install it and the same thing will happen - anything obvious I should check?
thanks
Did you checked whether you missed deploying any external CSS files or images if there are any which effectively causes image buttons to get hidden/unidentifiable?

Resources