Solved

"The page cannot be found" after changing target framework to 4.0

Posted on 2011-03-07
2
505 Views
Last Modified: 2012-06-27
I have an application that I originally created targetting NET 3.5 framework.  This morning I changed the target to .NET 4 and also changed it within IIS.  I uploaded the new new web.config file, opened my browser and attempted to view my Default.aspx webpage, however I get a message of "The page cannot be found".   How can I fix this?
0
Comment
Question by:cdemott33
2 Comments
 
LVL 9

Accepted Solution

by:
gdupadhyay earned 500 total points
Comment Utility
This problem is not related to moving from .Net 3.5 to 4.0.
Please check your virtual directory path and make sute it is pointing to correct physical directory.

You can verify by browsing the page in IIS.

Try one more time by following steps.

1. Make sure your application pointing to .Net 4.0
2. Rebuild the application.
3. Publish it.
4. Verify in IIS and select and browse the default.aspx (as shown in fig)
      - If its display the file in browser, check the URL for default.aspx.
5. If you find any error in URL, please correct it as correct one.

Let us know if you have any question
1.png
0
 

Author Closing Comment

by:cdemott33
Comment Utility
Thanks!
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now