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 / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Can overwrite via FTP an ASP file of precompiled application ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pamela fluente - 04 Aug 2007 00:37 GMT
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
Juan T. Llibre - 04 Aug 2007 03:50 GMT
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.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
>I have created and published a precompiled application.
>
[quoted text clipped - 8 lines]
>
> -P
pamela fluente - 04 Aug 2007 11:53 GMT
> re:
> !> If I replace an ASP file, e.g. Default.ASP, with a new copy, by
[quoted text clipped - 31 lines]
>
> > -P

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
Alexey Smirnov - 04 Aug 2007 12:32 GMT
> Can I just drag my files from the work folder into Internet Explorer
> to
> replace one or more files on the server ?

yes

Note, that the web.config file might be different

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

http://www.odetocode.com/Articles/417.aspx
Juan T. Llibre - 04 Aug 2007 12:38 GMT
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.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
On 4 Ago, 04:50, "Juan T. Llibre" <nomailrepl...@nowhere.com> wrote:
> re:
> !> If I replace an ASP file, e.g. Default.ASP, with a new copy, by
[quoted text clipped - 32 lines]
>
> > -P

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
pamela fluente - 04 Aug 2007 20:33 GMT
> 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

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.