Groups | Blog | Home
all groups > visual studio .net general > october 2005 >

visual studio .net general : Missing .vb code behind files but web still works


Stephen Solt
10/25/2005 5:34:40 AM
I was developing a small web in Dot Net2005 Beta2 using .aspx files
with .vb code behind. I had a presentation coming up and thought that
this should be on a production server. I had some difficulty publishing
the web so I set up the destination folders in Explorer and web in IIS
and copied everything over and got it working.

The presentation was postponed and I made some unsuccessful changes to
my development web. When I decided to abandon this, instead of getting
the files from backup, I just copied all the files back from the
production server, went into the IDE and continued to tweak the HTML.
When I wanted to edit one of the code behind pages, I discovered it
wasnt in the folder with the aspx files and clicking on view code
didn't do anything, But I can see that the code behind is still in
effect because the pages are behaving as they should.

When I restored Home.vb from backup the IDE showed it associated with
Home.aspx and I could edit it. However, none of the changes had any
effect. My web is still responding to invisible (cached?) code, not the
actual files..

I daren't rock the boat until after the rearranged presentation: at
least it is all working! I will need to understand what is going on and
restore my development environment, however.

I've looked at this post
http://groups.google.com/group/microsoft.public.vsnet.general/browse_frm/thread/4c9d470e9c477a1e/a929194f06a45c68?lnk=st&q=missing+code+behind&rnum=3&hl=en#a929194f06a45c68

I've ensured that in Explorer folder options web files are shown
individually and even that hidden files are shown. Unless I'm missing
something, this is a different problem (although it sounds similar).
Any ideas?

Stephen Solt
Kevin Spencer
10/25/2005 9:05:49 AM
You didn't mention compiling the application, so I can only guess that you
did, and that the \bin folder in your web has the DLLs for the CodeBehind
classes in it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

[quoted text, click to view]

Stephen Solt
10/25/2005 9:55:35 AM
Thanks, I imagined something like that was happening.

Presumably if I rebuild now, all the code behind functionality will
fail. If i restore the files and rebuild again, it will be restored. I
hope...

Steve

--
Sent via .NET Newsgroups
AddThis Social Bookmark Button