Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / August 2003

Tip: Looking for answers? Try searching our database.

Missing "src=...." from CodeBehind file reference

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dean - 26 Aug 2003 04:21 GMT
I just developed a VB ASP.net application using VS 2003.
The application worked fine on my computer, however when
I copied the files to the productiuon server, I found the
only way I could get it to find the code behind source
was to go into the Page directive and manually
insert 'src="Default.asp.vb"'. I would think that if this
was so necessary the Visual Studio should have put it in
there for me.

Thanks for any help
Somchai U. - 26 Aug 2003 12:07 GMT
VS.NET compile your code behind into .DLL. You need to copy .DLL together
with your aspx pages.

Somchai

> I just developed a VB ASP.net application using VS 2003.
> The application worked fine on my computer, however when
[quoted text clipped - 6 lines]
>
> Thanks for any help
dean - 26 Aug 2003 12:58 GMT
Thanks for your help. I did have the dll copied, and I
think that hi0lites another problem I was having.. I had
2 DLL's one for my app., and one for a component I was
using and the only way that the dll for the component
could be found was to copy it to a /bin directory under
wwwroot, (previously it was in a /bin directory 1 level
lower in my applications directory). I did not try
copying the .dll for my app there, however that probably
would have worked, maybe?

>-----Original Message-----
>VS.NET compile your code behind into .DLL. You need to copy .DLL together
[quoted text clipped - 14 lines]
>
>.
Jay B. Harlow [MVP - Outlook] - 26 Aug 2003 14:55 GMT
Dean,
You need to copy the DLL for you app also! They need to be put in the /bin
folder for the app.

The easiest way to copy your app from development to production is use
'Project - Copy Project' while then select the 'Only files needed to run
this application'. This will create an 'application' on production if
needed, then copy all the DLLs and aspx & related files needed to run your
app. Because all the .vb or .cs files are compiled into the DLL, .vb & .cs
files are not copied. Other files that have been compiled into the DLL are
not copied either.

Hope this helps
Jay

> Thanks for your help. I did have the dll copied, and I
> think that hi0lites another problem I was having.. I had
[quoted text clipped - 30 lines]
> >
> >.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.