Solved

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

Posted on 2011-03-07
2
509 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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