Solved

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

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I write a redirect rule for this scenario? 2 32
List<PaisEntity> - show some 1 28
PCI Scan on IIS Remediation not working 1 42
Why use this lambda? 12 37
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

829 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