Solved

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

Posted on 2011-03-07
2
510 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
gdupadhyay earned 500 total points
ID: 35060201
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
ID: 35073977
Thanks!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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