473,888 Members | 1,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Website Publishing does not include the *.ashx files

Hi,

After I right-click on my web application project file and choose
"Publish ." and do the publishing, the result publishable files does not
include the *.ashx files. Is it by design? How can I add *.ashx files to
the publish target?

Thanks,

Max


Oct 1 '07 #1
2 6384
Hi Max,

Please note that .ashx files type are not compiled by the ASP.NET Compiler
when you publish your website. They are moved to the output directories as is
and not compiled. If you wish to have the handler code compiled, place the
code into source code files in the App_Code directory.

Could you also check if the option "Allow this precompiled site to be
updatable" is checked or not when publishing your website. If you choose the
option to allow the precompiled site to be updated, any code-behind classes
for your .aspx, .asmx, and .ashx files are compiled into assemblies. However,
the .aspx, .asmx, and .ashx files themselves are copied as-is to the target
folder so that you can make changes to their layout after deploying the site.

Regards,
Manish


"Max2006" wrote:
Hi,

After I right-click on my web application project file and choose
"Publish ." and do the publishing, the result publishable files does not
include the *.ashx files. Is it by design? How can I add *.ashx files to
the publish target?

Thanks,

Max


Oct 1 '07 #2
Hi Manish,

Thanks for the tips. I think Max is using the "web Application Project"
which should allow codebehind to reside with aspx/ashx template and will be
precompiled into a main assembly in "bin" folder.

Hi Max,

You're using the "Web Application Project" right? If so, I've try
performing some test on my side as below:

**use an ASP.NET 2.0 web application project which contains some aspx
pages and ashx simple handler

**publish it to a local disk folder through "right click project node and
select "publish" menu item ....". Also, I choose "only files needed to run
this application" when publishing it.

After that I saw the ashx handler file be correctly copied to the target
publish folder. Is this the behavior you expect? I think ashx files should
be certainly considered as necessary stuffs for publishing. You can also
try a simpler project to verify this.

Please feel free to post here if you have any other findings or anything
we've missed here.

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.
--------------------
>From: =?Utf-8?B?TWFuaXNo?= <Ma****@discuss ions.microsoft. com>
References: <ej************ **@TK2MSFTNGP02 .phx.gbl>
Subject: RE: Website Publishing does not include the *.ashx files
Date: Mon, 1 Oct 2007 12:56:03 -0700

Hi Max,

Please note that .ashx files type are not compiled by the ASP.NET Compiler
when you publish your website. They are moved to the output directories as
is
>and not compiled. If you wish to have the handler code compiled, place the
code into source code files in the App_Code directory.

Could you also check if the option "Allow this precompiled site to be
updatable" is checked or not when publishing your website. If you choose
the
>option to allow the precompiled site to be updated, any code-behind
classes
>for your .aspx, .asmx, and .ashx files are compiled into assemblies.
However,
>the .aspx, .asmx, and .ashx files themselves are copied as-is to the
target
>folder so that you can make changes to their layout after deploying the
site.
>
Regards,
Manish


"Max2006" wrote:
>Hi,

After I right-click on my web application project file and choose
"Publish ." and do the publishing, the result publishable files does
not
>include the *.ashx files. Is it by design? How can I add *.ashx files
to
>the publish target?

Thanks,

Max


Oct 2 '07 #3

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

Similar topics

5
7090
by: Roshawn Dawson | last post by:
Hi, Has anybody created an entire asp.net app using only ashx files? I know that they are simply handlers used by the asp.net worker process. I hear that they are in some respects better than using aspx files because they don't have to be compiled and don't need any page processing. As an experiment, I'm creating an affiliate site that will use ashx files mainly. During testing I haven't noticed anything different other than it seems...
2
1995
by: Patrick | last post by:
Hello I'm asking myself what the best practice is, when publishing a asp.net 2.0 website. So when I precompile the website, to put it online, i get a lot of DLLs and ascx/aspx files. So i put them online, and all works, so far, so good. But the question is now, when I make a simple change in a .cs-File, then I publish again the website, to get all precompiled dlls, so I have to upload again all DLLs, ok, that's ok, but I also have to...
12
5925
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/ folder in the same directory as the source code. However, in Visual Studio .NET 2005 when I selected 'Publish Web Site' and selected a target location to place it in, it placed the following files in it: All *.aspx files All *.html files
4
1812
by: Joey | last post by:
asp.net 2/C#/VS2005 I have a web app that uses a third party control. The control requires a license file that is located in the root folder of the website. Each time I publish the website, VS2005 does not recognize the file as one that should be published, like an aspx or cs file, etc...so it does not copy it to the web server folder. So each time after publishing I have to manually copy the license file by using Windows Explorer. I...
2
2436
by: schneider | last post by:
Hi all, I want to publish my asp.net 2.0 website using the "publish website" feature of visual studio 2005. everything works fine so far, but the IDE only compiles and copies the aspx, ascx, resources etc. files to the destination directory. It does actually not copy .txt, .htm or graphics files. MSDN says these files should be copied during the publishing task, but they are definitely not copied. Neither does it offer any...
5
1880
by: rmgalante | last post by:
I've been using the VS2005 Publish utility on one of my projects for about six months. I have a large site with hundreds of files, thousands if you include the code behind files. So I thought I'd use the publish utility and pre-compile my site, but make it updateable. I thought I would be increasing the access time for each page. Here is what I've found. 1. If I publish a pre-compiled, updateable version of the site, it takes 50...
0
1208
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I have not tried this before. I have been building an ASP.Net 2.0 app for some weeks now and up till now I have not had any problems publishing. I was given a Word doc to include in the app. I converted the doc to html and copied it to the project's directory. I also copied the page's _files directory with all the associated graphics files. I included the html, the directory and all the files into the project. I set the Build Action...
5
3017
by: daveh551 | last post by:
What, from a high level point of view, is the difference (in Visual Studio 2005) between Website (accessed with Open Website or Create Website from the StartPage) that is an ASP.NET Website, and a Project that is created with the "ASP.NET Application" template? I see some obvious differences: the Project creates the working folder under the Visual Studio 2005\Projects directory, while the Website creates it in the Inetpub\wwwroot...
0
1180
by: =?Utf-8?B?T21lbg==?= | last post by:
I also have this issue. If, like VS2005, i would have expected the Web Application to compile all the code into a single DLL file. This does seem to happen and the DLL is there in the Bin folder but i get the same parser error when attempting to open the website after deploying to a web server. I wonder if it is also just a cooincidence that it is a master page code file that is being searched for. My master page file is in a sub...
0
9961
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9800
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
11182
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...
0
10778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10886
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
10439
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...
1
7990
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
5824
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...
1
4642
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.