473,804 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating a Web-Site

AG
Using VS2005 Pro.
I just deployed a ASP.NET 2.0 website (not web application) with the option
to make it updatable.

VS deployed all aspx, ascx files, but not all image or html files.
It also deployed dll's and .compiled files into the bin folder of the site.

This all looked fine and the site worked except for the missing image, html
and some other third party control support files that I then had to manually
upload.

Is there a way to specify which files should be uploaded when deploying a
website?

How does one update it without re-deploying the entire site again?
I had thought that 'updatable' meant that I would not need to deploy the
entire project again, but when I changed a couple of lines of code, I could
not find a method to update the site other than re-deploying the entire
site. What am I missing?

Is there a way to convert a website project to a web applicatin project?

TIA
--

AG
Email: discuss at adhdata dot com


May 4 '07 #1
9 1661
Hi AG,

For the "deploy" you mentioned, do you mean you use the "Publish Web Site"
to precompile the ASP.NET 2.0 web application?

The "updatable" means after you precompile and deploy the ASP.NET
application, you can still modify the aspx or ascx template and the ASP.NET
runtime will still perform dynamic compilation against these file(not
completely precompiled). If you choose "nonupdatab le", then aspx and ascx
file will contains no html or aspx template(just an empty placeholder).

In addition, if you want to update partial items(or manually specify the
items to update) in the web application before or after deployment, you can
use the "Copy Web Site" feature in VS 2005 IDE, it just act as a FTP client
that can help you synchronize items between your web application and the
target server:

#How to: Copy Web Site Files with the Copy Web Site Tool
http://msdn2.microsoft.com/en-us/lib...c0(VS.80).aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.


May 4 '07 #2
AG
Thanks for the reply Steven.

Yes, by deploy, I mean publish.
I understand what you are saying about updataing the aspx files, but what
about the code?
How do I update the published site if I make code changes? Where do I find
the 'precompiled' code files?

And what about the files that VS did not 'publish'? I had to manually copy
them. Then I found out that if I published the site again, VS deleted all
the files that I had manually copied.

Copy website is of little use because one can't sort on anything. For
instance, if I want to copy only the latest files, I can't sort on date to
pick them. Synchronize is not usefull because it would include code and
other files that are not needed on the published site.

--

AG
Email: discuss at adhdata dot com

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:fs******** *****@TK2MSFTNG HUB02.phx.gbl.. .
Hi AG,

For the "deploy" you mentioned, do you mean you use the "Publish Web Site"
to precompile the ASP.NET 2.0 web application?

The "updatable" means after you precompile and deploy the ASP.NET
application, you can still modify the aspx or ascx template and the
ASP.NET
runtime will still perform dynamic compilation against these file(not
completely precompiled). If you choose "nonupdatab le", then aspx and ascx
file will contains no html or aspx template(just an empty placeholder).

In addition, if you want to update partial items(or manually specify the
items to update) in the web application before or after deployment, you
can
use the "Copy Web Site" feature in VS 2005 IDE, it just act as a FTP
client
that can help you synchronize items between your web application and the
target server:

#How to: Copy Web Site Files with the Copy Web Site Tool
http://msdn2.microsoft.com/en-us/lib...c0(VS.80).aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no
rights.


May 4 '07 #3
Thanks for your reply AG,

For the ASP.NET 2.0 site, if you publish it(perform precompile), no
codebehind file is required (since those code/classes are compiled into
assemblies), and those codefile are not required to deployment on the
target server directory.

Also, for normal static content files such as image, html, based on my
test, as long as they're in the web site project's folder(or sub folder),
they'll be copied to the target directory when performing
precompilation( publish). Have you also tested publishing it to a normal
file folder?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 8 '07 #4
AG
Thanks for the reply Steven.

I published to a web server via http. Publishing to the file system is not
possible, since I am publishing to a shared commercial web server.
Build Publish Web Site (allow this precompiled site to be updatable):
All files/folders are NOT copied, even though they are in the project folder
or sub-folder. Some html, xml and some entire folders are NOT copied.

I understand that the code behind is not necessary on the web server as the
code is compiled into assemblies (dll's).
Is there a way to generate those dll's without publishing again.

For example, I might need to change one simple line of code somewhere. I
should not need to publish the entire site again - all aspx, dll's, images,
etc. are replaced on the web server AND the files/folders that I manually
added because the first 'publish' did not copy them - are deleted. Then I
need to copy the missing files/folders again.

Is there a way to generate the dll's, so that I can just publish them,
instead of the entire site. Or do I need to change to a Web Application
Project instead of a Web Site Project?

As a temporary solution, I am publishing to another local machine and then
copying the 'new' site files to the web server via ftp.
That way the files that VS wants to delete are not deleted from the web
server.

It just seems that there should be a better way.

--

AG
Email: discuss at adhdata dot com

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:5W******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Thanks for your reply AG,

For the ASP.NET 2.0 site, if you publish it(perform precompile), no
codebehind file is required (since those code/classes are compiled into
assemblies), and those codefile are not required to deployment on the
target server directory.

Also, for normal static content files such as image, html, based on my
test, as long as they're in the web site project's folder(or sub folder),
they'll be copied to the target directory when performing
precompilation( publish). Have you also tested publishing it to a normal
file folder?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

May 9 '07 #5
Thanks for your reply AG,

For http based publish, I have also tested it on my side, it seems both
file system or http web based(target directory) can work well, all the
files in the application folder( static files and asp.net specific files )
can be be copied to the target location. I mentioned the "File system"
publish means suggest you try using file system to publish the website to
see whether all the content can be copied correctly, you can also try
publishing to a local (intranet) IIS server, this can help verify whether
the problem is specific to your publish web hoster.

In addition, for updating precompiled assemblies, so far there is no direct
means that can only updated the assemblies(when publishing site). Publish
site will always copy all the contents(necess ary), there is no smaller
granularity to control which items to copy(which not). The ASP.NET 2.0/VS
2005 precompilation currently only provide some options to let us control
how to precompile the ASP.NET application(suc h as precompile the
application into a single assembly or multiple assemblies or naming the
assemblies ....), you can refer to the "Web Deployment Projejct" for more
information.

I think the following approach you used now is the reasonable one. You can
first publish the web site to a local location file system) and upload it
to target host site through FTP approach.

=============== ========
As a temporary solution, I am publishing to another local machine and then
copying the 'new' site files to the web server via ftp.
That way the files that VS wants to delete are not deleted from the web
server.
============

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 9 '07 #6
AG
So, basically, for a Web Site project, it is all or nothing?

Despite what it is 'supposed' to do, it does NOT copy all files.
I am using FCK HTML editor (http://www.fckeditor.net/) in my project. It
has many support files and folders of various types.
VS DOES NOT copy all the files/folders, just some.

What if I switch to a Web Application?
If I just change some code in the app, can I then 'build' the project to
generate the dll and then just copy that to the web server like with VS 2003
..NET 1.1?

--

AG
Email: discuss at adhdata dot com

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:tl******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Thanks for your reply AG,

For http based publish, I have also tested it on my side, it seems both
file system or http web based(target directory) can work well, all the
files in the application folder( static files and asp.net specific files )
can be be copied to the target location. I mentioned the "File system"
publish means suggest you try using file system to publish the website to
see whether all the content can be copied correctly, you can also try
publishing to a local (intranet) IIS server, this can help verify whether
the problem is specific to your publish web hoster.

In addition, for updating precompiled assemblies, so far there is no
direct
means that can only updated the assemblies(when publishing site). Publish
site will always copy all the contents(necess ary), there is no smaller
granularity to control which items to copy(which not). The ASP.NET 2.0/VS
2005 precompilation currently only provide some options to let us control
how to precompile the ASP.NET application(suc h as precompile the
application into a single assembly or multiple assemblies or naming the
assemblies ....), you can refer to the "Web Deployment Projejct" for more
information.

I think the following approach you used now is the reasonable one. You can
first publish the web site to a local location file system) and upload it
to target host site through FTP approach.

=============== ========
As a temporary solution, I am publishing to another local machine and then
copying the 'new' site files to the web server via ftp.
That way the files that VS wants to delete are not deleted from the web
server.
============

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

May 9 '07 #7
Hi AG,

Yes, for web site application project, it should treat each item in the
application folder as a member of the project and will publish them(at
least those image, xml , html ... static files will be copied during
publishing).

For the following questions:

What if I switch to a Web Application?
=============== ==========
If you use "Web Application Project", just like vs 2003 web project, you
can choose to include or exclude a item in the project. Thus, you can
control whether you'll include a item for build or deploy the application
project.

If I just change some code in the app, can I then 'build' the project to
generate the dll and then just copy that to the web server like with VS
2003
NET 1.1?
=============== =========
For ASP.NET 2.0/VS 2005 web site project, you can still only update the
assemblies, however, you need to do the precompilation and redeploy those
precompiled assemblies and the "compiled" files (in bin dir).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 10 '07 #8
AG
Thank you!

--

AG
Email: discuss at adhdata dot com

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:sc******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi AG,

Yes, for web site application project, it should treat each item in the
application folder as a member of the project and will publish them(at
least those image, xml , html ... static files will be copied during
publishing).

For the following questions:

What if I switch to a Web Application?
=============== ==========
If you use "Web Application Project", just like vs 2003 web project, you
can choose to include or exclude a item in the project. Thus, you can
control whether you'll include a item for build or deploy the application
project.

If I just change some code in the app, can I then 'build' the project to
generate the dll and then just copy that to the web server like with VS
2003
NET 1.1?
=============== =========
For ASP.NET 2.0/VS 2005 web site project, you can still only update the
assemblies, however, you need to do the precompilation and redeploy those
precompiled assemblies and the "compiled" files (in bin dir).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

May 10 '07 #9
Hi AG,

If you have any further question later, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 11 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2146
by: Matt | last post by:
Hi, I was wondering if anyone can tell me why dynamically updating the web.config file causes ASP.NET worker process to recycle and detroy all session states including variables. Is this a known bug or is it by design. Do we know why microsoft do not supply a method to write values to the web.config file. Thank you to anyone who can give me any clues to this problem. Regards,
8
3020
by: TC | last post by:
Hello, I am making an asynchronous call to a webservice and trying to update the web page with the results. The page is not updating. Does anybody know why??? Below is my code:
1
1847
by: Doug Lim | last post by:
I have an ASP.NET application that I've developed using Visual Studio ..NET 2003 and I'm making use of Crystal Reports for .NET that's included to return reports back to the visitor's web browser in PDF format. Up to this point, I've had no problems with the application in both the development environment (local workstation with Windows 2K) and deployed in production (on a Windows 2003 Server) both with .NET Framework 1.1.
9
5837
by: Jervin Justin | last post by:
Hi, I've been having this problem for some time with Web Forms: I have a web app that sends data to a service when the user presses a button. Based on the data, the server will send several replies. Since there is no way for a service to post to a client, I am using a thread on the client that polls the server for updates. (Feel free to recommend changes to that as well)
14
2967
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will utilise the disco file to update the Corresponding proxy file and reflect the changes made to the web service. However, the results of doing this with out params is that the results seem
0
3892
by: Johnny | last post by:
I have a PocketPC mobile application that gets its data from the Sql Server database via a web service. The web service returns a dataset that I need to load into the SqlCe database on the mobile device. I have a method to perform this task but it doesn't load the data into the SqlCe database. The data is downloaded into the dataset from the web service just fine but I can't get the data into the SqlCe database. Any suggestions would be...
5
1536
by: Joey | last post by:
Hi, I am using NFOP to generate PDF files from my web pages. The problem is that when i change the web.config, the page that is using NFOP hangs. I don't know if this is directly related to NFOP, however i would like to know if i can make a workaround to solve this. Maybe by unloading the NFOP assembly and reloading it? Can anyone help in this, please?
0
2573
by: Gauls | last post by:
Hi, I have webservice application that uses some assemblies whoes version number keeps changing and are stored in some folder on the same machine as my webservice. Every Time the assembly version changes i need to change the binding redirect and code base in the web.config file. EX : <dependentAssembly> <assemblyIdentity name="ABCD" publicKeyToken="Sometoken" culture="neutral" />
3
1883
by: Trez | last post by:
Hey guys, Am new at using ASP.Net. am having some problems updating my SQL DB. whenever i try i get this Error. Can someone help me? Incorrect syntax near 'nvarchar'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax...
0
4284
by: steve | last post by:
I have been fighting with trying to update a GridView for a while. I don't want to use the "built-in" way to do it because I am using business layer methods for updating and deleteing and I don't want to have my parameter names in those methods have to be "original_Parametername" or even if I change the OldValuesParameterFormatString to get rid of the "original" I would still have just "Parametername". I think most people user parameters...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10359
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9177
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.