Can overwrite via FTP an ASP file of precompiled application ?

P

pamela fluente

I have created and published a precompiled application.

If I replace an ASP file, e.g. Default.ASP, with a new copy, by
sending it via FTP, do I do something WRONG?

Do I spoil the precompiled application or I can replace any file as I
wish?

Can I also just drag all the application files to replace the old
version ?

-P
 
J

Juan T. Llibre

re:
!> If I replace an ASP file, e.g. Default.ASP, with a new copy, by
!> sending it via FTP, do I do something WRONG?

ASP doesn't pre-compile.
ASPX ( ASP.NET 2.0 ) Applications do pre-compile.

re:
!> Do I spoil the precompiled application or I can replace any file as I wish?

For ASP.NET 2.0 apps, you'll neeed to pre-compile the app again,
assuming you have marked the site as updatable.

re:
!> Can I also just drag all the application files to replace the old version ?

Yes, as long as you've re-compiled them.
 
P

pamela fluente

re:
!> If I replace an ASP file, e.g. Default.ASP, with a new copy, by
!> sending it via FTP, do I do something WRONG?

ASP doesn't pre-compile.
ASPX ( ASP.NET 2.0 ) Applications do pre-compile.

re:
!> Do I spoil the precompiled application or I can replace any file as I wish?

For ASP.NET 2.0 apps, you'll neeed to pre-compile the app again,
assuming you have marked the site as updatable.

re:
!> Can I also just drag all the application files to replace the old version ?

Yes, as long as you've re-compiled them.

You are right I was talking about ASP.NET 2.0 and the extension is
ASPX
(gor mixed up), but you understood anyway well my question.

So assuming I have a site at

fpt://Mysite/MyAspNetApp

and I am working home at c:\MyProjects\Mysite/MyAspNetApp

Can I just drag my files from the work folder into Internet Explorer
to
replace one or more files on the server ?

And what does "precompiled" really means. Is the precompilation info
stored into the ASPX or where ??

-P
 
J

Juan T. Llibre

re:
!> Can I just drag my files from the work folder into Internet Explorer
!> to replace one or more files on the server ?

You can use FTP to update your files. Just copy all the files and directories.

The only thing you have to keep in mind, since you stated that
!> I have created and published a precompiled application
....is that pre-compiled applications can be set to updatable...or not.

If you set the application to be non-updatable, you can't just copy files.
You have to pre-compile the application and mark it a updatable.

*Then* you can copy the updated files.

re:
!> And what does "precompiled" really means.

These articles give you a good backgrounder on precompilation :

http://blogs.msdn.com/walzenbach/archive/2007/07/19/daily-net-feeds-asp-net-2-0-advanced-day-9.aspx

http://blogs.msdn.com/walzenbach/archive/2007/07/20/daily-net-feeds-asp-net-2-0-advanced-day-10.aspx

re:
!> Is the precompilation info stored into the ASPX or where ??

Special files are created, by the pre-compilation process, which have the ".compiled" extension.
The compilation references are stored in them.

One important thing to know is that the articles cited above describe
the *manual* pre-compilation process, i.e., from the command line.

You can achieve the exact same result by "publishing" the web site from the VS 2005 IDE.

Note : this cannot be done if you're using an ASP.NET "Project".
Publishing an ASP.NET "Project" doesn't give you the precompilation option.

You can either use the "Web Application" model ( there's a context menu to "convert to Web Application"
when you right click the app in the Solution Explorer ) or create a "Web Site" from scratch.

If you create a "web site", it will be placed by default in :
drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\WebSiteName

If you create a "Web Site" in VS 2005, and then you "Publish" the website,
to any directory you designate, you'll be presented with the options you need.

If you accept the default directory, the "published" files will be placed
in a subdirectory of your Website's file directory, named "PrecompiledWeb"

Examining the files in that directory will tell you all you need to know.

Don't edit those files manually, though.
If you need to make changes, make them in the VS 2005 IDE and republish the web site.

I hope this makes the process more understandable for you.
If you have any questions...post them.




re:
!> If I replace an ASP file, e.g. Default.ASP, with a new copy, by
!> sending it via FTP, do I do something WRONG?

ASP doesn't pre-compile.
ASPX ( ASP.NET 2.0 ) Applications do pre-compile.

re:
!> Do I spoil the precompiled application or I can replace any file as I wish?

For ASP.NET 2.0 apps, you'll neeed to pre-compile the app again,
assuming you have marked the site as updatable.

re:
!> Can I also just drag all the application files to replace the old version ?

Yes, as long as you've re-compiled them.

You are right I was talking about ASP.NET 2.0 and the extension is
ASPX
(gor mixed up), but you understood anyway well my question.

So assuming I have a site at

fpt://Mysite/MyAspNetApp

and I am working home at c:\MyProjects\Mysite/MyAspNetApp

Can I just drag my files from the work folder into Internet Explorer
to
replace one or more files on the server ?

And what does "precompiled" really means. Is the precompilation info
stored into the ASPX or where ??

-P
 
P

pamela fluente

re:
!> Can I just drag my files from the work folder into Internet Explorer
!> to replace one or more files on the server ?


Than you very much, Juan

for the throughout anf helpful explanation.



-P
 

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

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top