Re: Strange situation ---how is this happening?




Nick Malik [Microsoft] wrote:
As you know, your code behinds are compiled, not script like they were in
ASP. What you might not know: they are normally all compiled into one DLL.
So if you update the code-behind pages for two pages on the same site, and
compile, and deploy the dll, you've deployed both changes.

That is intentional.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Hannibal111111" <Hannibal111111@xxxxxxxxxxx> wrote in message
news:1156280327.230762.29910@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am getting a strange situation with a .NET 1.1 web application that
we have deployed. I have made an update to a code behind page in 1
file, and then made an update to another code behind page. After that
I rebuilt everything. This is all on my dev server. Now I move the 1
code behind page and the updated dll to the live server. But I did not
move the other code behind page to the live server. Now somehow I am
getting an error on the live server that is referring to the updated
code behind page that has NOT been moved to the live server. How is
this possible? How can it error out on code that hasn't been made live
yet?

Thanks,

Chris Green


So even if I don't move the code-behind page to the live server,
because I have updated the dll it will still run the updated code from
the code-behind page? Is the code stored in the dll? How do I prevent
the new code from running if I don't want it to but have to update the
dll because of a bug fix somewhere else on the site?

Chris

.



Relevant Pages

  • Re: Confused Using VB in VS2003
    ... your .aspx page and your code-behind file ... code-behind file, into .dll files. ... Now, when a client requests your .aspx page, ASP.NET will compile only ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Confused Using VB in VS2003
    ... your .aspx page and your code-behind file ... code-behind file, into .dll files. ... Now, when a client requests your .aspx page, ASP.NET will compile only ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Strange situation ---how is this happening?
    ... code behind page and the updated dll to the live server. ... You modified existing code to provide this new feature. ... branch your source control tree to allow bug fixes in one body of code ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Strange situation ---how is this happening?
    ... code behind page and the updated dll to the live server. ... You modified existing code to provide this new feature. ... functionality, while the other is for rolling out new functionality. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Strange situation ---how is this happening?
    ... code behind page and the updated dll to the live server. ... You modified existing code to provide this new feature. ... functionality, while the other is for rolling out new functionality. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading