Is there a way to compile and update a single page in a web site and have it use the existing app_code.dll, without having to put out all the pages and their associated renamed dlls? Publish Web Site won't work for
me. We have a slew of dynamic content on the web site that is not in the development environment. I just change two line of code in a code-beside file and I only want to impact the web site with that change. Is that not possible
You can create a web site that deploys with the code behind files, rather than compiling into a dll. I used to build my apps that way when ASP.Net first came out. As far as doing exactly what your asking for though, I have no suggestions.
Thanks for the quick response even though it wasn't what I wanted to hear. Just out of curiosity, you say you used to deploy that way when ASP.NET came out. What caused you to change to compiled sites?
Thanks for the quick response even though it wasn't what I wanted to hear. Just out of curiosity, you say you used to deploy that way when ASP.NET came out. What caused you to change to compiled sites?
pamela
Microsoft introduced Web Application technology. We found them to be easier to deploy since none of the .cs pages had to be copied out.
We have a slew of dynamic content on the web site that is not in the development environment. I just change two line of code in a code-beside file and I only want to impact the web site with that change. Is that not possible
I would set-up a test site with the production data and try some different things. Maybe you can just xcopy deploy your page with it's code behind and everything will work fine.
I have to use ftp rather than xcopy. I already tried just replacing the single page with its code-behind and it complained that the version of App_Code.dll wasn't up to date. I tried copying an aspx page with a reference to its uncompiled .vb file along
with the source file and it still insisted on finding its compiled source, even without the reference. So I have to assume that App_Code.dll has some internal map that references all the pages to their compiled source. It appears that if we want any compilation
at all, we have to deploy all compiled source and everything that references it whenever we make a change.
I already tried just replacing the single page with its code-behind and it complained that the version of App_Code.dll wasn't up to date. I tried copying an aspx page with a reference to its uncompiled .vb file along with the source file and it still insisted
on finding its compiled source, even without the reference. So I have to assume that App_Code.dll has some internal map that references all the pages to their compiled source. It appears that if we want any compilation at all, we have to deploy all compiled
source and everything that references it whenever we make a change.
Well, that is basically what I would have tried also. Maybe one of the Forum Moderators will have a suggestion in a few days.
How was the original web site deployed? If you used aspnet_compiler with -fixednames, you might be able to just replace the single assembly corresponding to that page.
pthalacker
Member
11 Points
55 Posts
Update a single page
May 08, 2008 04:41 PM|LINK
Is there a way to compile and update a single page in a web site and have it use the existing app_code.dll, without having to put out all the pages and their associated renamed dlls? Publish Web Site won't work for me. We have a slew of dynamic content on the web site that is not in the development environment. I just change two line of code in a code-beside file and I only want to impact the web site with that change. Is that not possible
pamela
allanhorwitz
Contributor
2517 Points
623 Posts
Re: Update a single page
May 08, 2008 05:18 PM|LINK
You can create a web site that deploys with the code behind files, rather than compiling into a dll. I used to build my apps that way when ASP.Net first came out. As far as doing exactly what your asking for though, I have no suggestions.
pthalacker
Member
11 Points
55 Posts
Re: Update a single page
May 08, 2008 05:36 PM|LINK
Thanks for the quick response even though it wasn't what I wanted to hear. Just out of curiosity, you say you used to deploy that way when ASP.NET came out. What caused you to change to compiled sites?
pamela
allanhorwitz
Contributor
2517 Points
623 Posts
Re: Update a single page
May 08, 2008 05:42 PM|LINK
Microsoft introduced Web Application technology. We found them to be easier to deploy since none of the .cs pages had to be copied out.
allanhorwitz
Contributor
2517 Points
623 Posts
Re: Update a single page
May 08, 2008 05:45 PM|LINK
I would set-up a test site with the production data and try some different things. Maybe you can just xcopy deploy your page with it's code behind and everything will work fine.
pthalacker
Member
11 Points
55 Posts
Re: Update a single page
May 08, 2008 06:00 PM|LINK
I have to use ftp rather than xcopy. I already tried just replacing the single page with its code-behind and it complained that the version of App_Code.dll wasn't up to date. I tried copying an aspx page with a reference to its uncompiled .vb file along with the source file and it still insisted on finding its compiled source, even without the reference. So I have to assume that App_Code.dll has some internal map that references all the pages to their compiled source. It appears that if we want any compilation at all, we have to deploy all compiled source and everything that references it whenever we make a change.
pamela
allanhorwitz
Contributor
2517 Points
623 Posts
Re: Update a single page
May 08, 2008 06:06 PM|LINK
Ftp and xcopy is pretty much the same thing.
Well, that is basically what I would have tried also. Maybe one of the Forum Moderators will have a suggestion in a few days.
hongping
Contributor
3403 Points
635 Posts
Microsoft
Re: Update a single page
May 08, 2008 06:13 PM|LINK
How was the original web site deployed? If you used aspnet_compiler with -fixednames, you might be able to just replace the single assembly corresponding to that page.
http://msdn.microsoft.com/en-us/library/ms229863(vs.80).aspx
If you get the answer to your question, please mark it as the answer.
pthalacker
Member
11 Points
55 Posts
Re: Update a single page
May 08, 2008 07:41 PM|LINK
As I said in the previous post, that didn't work. The new version of the compiled code file wanted its associated newer version of app_code.dll
pamela
hongping
Contributor
3403 Points
635 Posts
Microsoft
Re: Update a single page
May 08, 2008 07:49 PM|LINK
So, how was the original web site deployed?
If you get the answer to your question, please mark it as the answer.