S
Scott M.
I thought I understood this, but I guess not.
In ASP .NET 3.5, using VS 2008 Pro. and working with Web Applicaiton
Projects (NOT WEB SITES) that use the code-behind model, I was under the
impression that deployment of the .aspx files and the pre-compiled .dll in
the /bin folder was all that is needed. As far as I can remember, this is
what I've been doing since ASP.NET's inception.
But, now I've switched hosting providers and am starting fresh by uploading
only the files needed for the site to function. I've built my project in
release mode and used the Publish feature with "Only files needed to run this
applicaiton" selection turned on. As expected, only my .aspx, web.config,
global.asax, and /bin directory (with my compiled .dll in it) are deployed.
But, now I'm getting errors when I try to access the .aspx pages that say
that the referenced CodeFile cannot be found.
Again, to be clear, I'm NOT using Web Site, this is an ASP.NET Web
Application Project that is built locally and I just want to deploy the .aspx
pages but not the source code. I'm sure this is what I've done in the past.
I've tried taking the CodeFile="" portion out of the @Page directive line,
but then I get an error saying that an instance of that page's class could
not be made.
What gives?
In ASP .NET 3.5, using VS 2008 Pro. and working with Web Applicaiton
Projects (NOT WEB SITES) that use the code-behind model, I was under the
impression that deployment of the .aspx files and the pre-compiled .dll in
the /bin folder was all that is needed. As far as I can remember, this is
what I've been doing since ASP.NET's inception.
But, now I've switched hosting providers and am starting fresh by uploading
only the files needed for the site to function. I've built my project in
release mode and used the Publish feature with "Only files needed to run this
applicaiton" selection turned on. As expected, only my .aspx, web.config,
global.asax, and /bin directory (with my compiled .dll in it) are deployed.
But, now I'm getting errors when I try to access the .aspx pages that say
that the referenced CodeFile cannot be found.
Again, to be clear, I'm NOT using Web Site, this is an ASP.NET Web
Application Project that is built locally and I just want to deploy the .aspx
pages but not the source code. I'm sure this is what I've done in the past.
I've tried taking the CodeFile="" portion out of the @Page directive line,
but then I get an error saying that an instance of that page's class could
not be made.
What gives?