Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7412237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:30:40+00:00 2026-05-29T06:30:40+00:00

Must be doing something stupid but can’t see it. App created from default template

  • 0

Must be doing something stupid but can’t see it.
App created from default template using master page Site.Master.
'File System' Published to local folder on Development machine(WinServer 2008 R2, IIS7)
Browse to localhost/MyWebApp/Account/login.aspx OK
After password validation login.aspx attempts to redirect.

Response.Redirect(@”~/wfMyForm.aspx”);

Browser errors with
The file '/MyWebApp/wfMyWebForm.aspx.cs' does not exist.
I assume the cs file has been compiled into the DLL in the bin directory so why is it attempting to find the Source code file in the Application directory? Have I missed a configuration option or something?

Made a simple test app and get same result. If no code behind file attached to Target page the redirect occurs OK.
Attach a code behind file and redirect fails ‘no such file’.

<%@ Page CodeFile="wfTest.aspx.cs" Inherits="PubTest.wfTest" Title="" Language="C#" MasterPageFile="Site.Master"  CodeBehind="wfTest.aspx.cs"%>

I have tried various application pools no effect.
Thanksfile does not exist

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:30:41+00:00Added an answer on May 29, 2026 at 6:30 am

    Sounds like you are using a “Web Site Project” but you are expecting the default behavior of a “Web Application Project”.

    A comparison of the two: http://msdn.microsoft.com/en-us/library/aa730880%28VS.80%29.aspx#wapp_topic5

    Options for precompiling a “Web Site Project”: http://msdn.microsoft.com/en-us/library/bb398860.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I must be missing something stupid here but I can not see it. My
I must be doing something totally stupid here, but I can't get the PLCrashReporter
I'm sure I must be doing something wrong. But can't for the life of
I must be doing something stupid. I'm running this in Google App Engine: class
I must be doing something really stupid here, but I've been beating my head
I must be missing something simple, but I can't see it. First, the setup:
I feel like I must be doing something really stupid. What can I do
I'm must be doing something stupid, because I can't make this simple animate work
This must be something utterly stupid that I've done or am doing, but I
I must be doing something really wrong, but I can't find anything on this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.