Deployment in VS.NET 2005

P

Peter Afonin

Hello,

I'm just starting to work with ASP.NET 2.0 and VS 2005.

If I understand correctly, even if I precompiled my application, I still
need to upload aspx.vb files to the server, correct? The way I did it in
VS.NET 2003 - uploaded only aspx and dll files - no longer works, correct?
At least it didn't work for me.

Thank you,
 
J

Juan T. Llibre

re:
If I understand correctly, even if I precompiled my application, I still need to upload aspx.vb
files to the server, correct?

No.

..cs or .vb files not in App_Code folder are compiled with the page
or resource that depends on it and the assembly is placed in the /bin folder.

Just make sure you transfer the contents of the /bin folder.

See :
http://msdn2.microsoft.com/en-us/library/e22s60h9.aspx for full details.
 
P

Peter Afonin

Thank you Juan,

Well, at first, when I go to Configuration Manager, I see only Debug option
there (apart from New and Edit). Then, after I rebuld everything
successfully, there are no DLLs in my Bin folder. So I guess I need to
configure something else.

Peter

Juan T. Llibre said:
re:
If I understand correctly, even if I precompiled my application, I still
need to upload aspx.vb
files to the server, correct?

No.

.cs or .vb files not in App_Code folder are compiled with the page
or resource that depends on it and the assembly is placed in the /bin
folder.

Just make sure you transfer the contents of the /bin folder.

See :
http://msdn2.microsoft.com/en-us/library/e22s60h9.aspx for full details.
 
J

Juan T. Llibre

VS 2005 doesn't create any DLLs in the /bin directory.

They are only created if you use the aspnet_compiler.exe tool,
or if you use the Web Application Projects add-in for VS 2005.

Please review :

http://msdn2.microsoft.com/en-us/library/ms227972.aspx
for the aspnet_conpiler.exe tool
and
http://webproject.scottgu.com/
for the Web Application Projects Add-in.




Peter Afonin said:
Thank you Juan,

Well, at first, when I go to Configuration Manager, I see only Debug option there (apart from New
and Edit). Then, after I rebuld everything successfully, there are no DLLs in my Bin folder. So I
guess I need to configure something else.

Peter
 
P

Peter Afonin

Thank you, Juan, I'll look into it. This doesn't make any sense to me - why
to do it a complicated way if it could be done much easier, just like in VS
2003, but perhaps there is a reason for it.

Peter
 
P

Peter Afonin

Another strange thing - when I build a web site, I'm getting success
messages. What do I building then?

Thanks,

Peter
 
J

Juan T. Llibre

Building a web site is local and, unless you have code issues, will work 100% of the time.

Try publishing your website with VS 2005,
(within the IDE, just below the "build" menu item) and deploying the results.

You'll see several DLLs in the appropiate directories after you do that.

But, with the aspnet_compiler, and with the Web Application Project add-in,
you get a much more granular control over the assemblies (DLLs) compiled.

Review the two links I sente you :
http://msdn2.microsoft.com/en-us/library/ms227972.aspx
for the aspnet_conpiler.exe tool
and
http://webproject.scottgu.com/
for the Web Application Projects Add-in.

....and you will understand much better the available scenarios.
 
P

Peter Afonin

Thank you, Juan.

Yes, I've tried publishing website, and it worked. I'll look into Project
add-in.

Peter
 
J

Juan T. Llibre

re:
Thank you, Juan.

You're quite welcome, Peter.

re:
Yes, I've tried publishing website, and it worked.
Fantastic!

re:
I'll look into Project add-in.

Good luck with it!
It really gives programmers a lot of flexibility when deploying projects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top