473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Publishing ASP.NET Web Application Fails

I have an ASP.NET application that I have been deploying by using the publish
option on the project which compiles the project into a directory on my
machine. It has been working fine and then suddenly it is indicating
failure. I look in the output directory and all the files seem to be there.

When I use aspnet_compiler or simply compile the project in VS2005 there are
no errors. What is happening? How can I find out what is causing the
publish to fail?

As always, thanks for any input.

Eagle
May 18 '07 #1
6 1562
On May 19, 5:44 am, Eagle...@HighFlyingBirds.com
<EagleRedHighFlyingBirds...@discussions.microsoft. comwrote:
I have an ASP.NET application that I have been deploying by using the publish
option on the project which compiles the project into a directory on my
machine. It has been working fine and then suddenly it is indicating
failure. I look in the output directory and all the files seem to be there.

When I use aspnet_compiler or simply compile the project in VS2005 there are
no errors. What is happening? How can I find out what is causing the
publish to fail?

As always, thanks for any input.

Eagle
Hi...

Please try publish on different folder...
And make sure that you have all the security permissions you need.
If work fine in different folder come back to original folder and then
empty the folder
try again.

Thanks
Masudur

Note.. Can you please specify the publish option... like
updatable,fixednaming,strongname etc.

May 19 '07 #2
I tried publishing to a different folder and the publish still fails. Thanks.

Eagle

"Masudur" wrote:
On May 19, 5:44 am, Eagle...@HighFlyingBirds.com
<EagleRedHighFlyingBirds...@discussions.microsoft. comwrote:
I have an ASP.NET application that I have been deploying by using the publish
option on the project which compiles the project into a directory on my
machine. It has been working fine and then suddenly it is indicating
failure. I look in the output directory and all the files seem to be there.

When I use aspnet_compiler or simply compile the project in VS2005 there are
no errors. What is happening? How can I find out what is causing the
publish to fail?

As always, thanks for any input.

Eagle

Hi...

Please try publish on different folder...
And make sure that you have all the security permissions you need.
If work fine in different folder come back to original folder and then
empty the folder
try again.

Thanks
Masudur

Note.. Can you please specify the publish option... like
updatable,fixednaming,strongname etc.

May 19 '07 #3
In addition to publishing to a different folder I set up a virtual directory
in IIS on by development machine (XP Pro SP2) and published to that directory
with the same indication of publication failure. In turn, I was able to
execute the app in my browser with the URL, http://localhost/[Virtual
Dir.]/Default.aspx.

Thanks,
Eagle

"Masudur" wrote:
On May 19, 5:44 am, Eagle...@HighFlyingBirds.com
<EagleRedHighFlyingBirds...@discussions.microsoft. comwrote:
I have an ASP.NET application that I have been deploying by using the publish
option on the project which compiles the project into a directory on my
machine. It has been working fine and then suddenly it is indicating
failure. I look in the output directory and all the files seem to be there.

When I use aspnet_compiler or simply compile the project in VS2005 there are
no errors. What is happening? How can I find out what is causing the
publish to fail?

As always, thanks for any input.

Eagle

Hi...

Please try publish on different folder...
And make sure that you have all the security permissions you need.
If work fine in different folder come back to original folder and then
empty the folder
try again.

Thanks
Masudur

Note.. Can you please specify the publish option... like
updatable,fixednaming,strongname etc.

May 19 '07 #4
Have you tried, instead of "publishing" the app,
setting up a "Setup and Deployment" project for it ?

That will create an .msi installation file which you can use
to deploy your app with, to whichever server you want to.

Look for the "Web Setup Project" template.

On the VS 2005 menu: "File", "New Project", "Other Project Types", "Setup and Deployment".
All this, *after* having opened your project.

Select the "Web Setup Project" to create an ASP.NET installer.


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/
======================================
"Ea******@HighFlyingBirds.com" <Ea************************@discussions.microsoft. comwrote in
message news:A0**********************************@microsof t.com...
In addition to publishing to a different folder I set up a virtual directory
in IIS on by development machine (XP Pro SP2) and published to that directory
with the same indication of publication failure. In turn, I was able to
execute the app in my browser with the URL, http://localhost/[Virtual
Dir.]/Default.aspx.

Thanks,
Eagle

"Masudur" wrote:
>On May 19, 5:44 am, Eagle...@HighFlyingBirds.com
<EagleRedHighFlyingBirds...@discussions.microsoft .comwrote:
I have an ASP.NET application that I have been deploying by using the publish
option on the project which compiles the project into a directory on my
machine. It has been working fine and then suddenly it is indicating
failure. I look in the output directory and all the files seem to be there.

When I use aspnet_compiler or simply compile the project in VS2005 there are
no errors. What is happening? How can I find out what is causing the
publish to fail?

As always, thanks for any input.

Eagle

Hi...

Please try publish on different folder...
And make sure that you have all the security permissions you need.
If work fine in different folder come back to original folder and then
empty the folder
try again.

Thanks
Masudur

Note.. Can you please specify the publish option... like
updatable,fixednaming,strongname etc.


May 19 '07 #5
I would recommend two steps.
1. Reboot the client (dev) machine.
2. If that doesnt do it, go into iis and delete the virtual directory.

Publish as normal.

-Edward

May 23 '07 #6
I want to thank everyone who replied. I found the problem.

I had to do a restructuring of the images folder for the application. For
one of the pages in the application I had to setup a completely new set of
graphics and I created a subfolder for those graphic files to be able to
manage them more cleanly. I the process I moved some existing graphics to
the new location and I did not delete them from that folder in the project
configuration. The publish continued to look for them in the original
location but could not find them and the publish would fail. Deleting these
files from the original folder in the Solution Explorer resolved the problem.

I was able to find the problem in the output window following attempt to
publish.

Conceming the use of a deployment project instead of publishing, this is a
useful approach in some situations, but in this case it is more
straightforward to simply publish the application.

It is unclear to me what effect rebooting the developement machine would
have. I would appreciate some insight. Also, the project is not in IIS and
there is no virtual directory on the development machine and the server is
remote and not an issue. I am using the Cassini server for debugging.

Again, thanks for the input.

"Ea******@HighFlyingBirds.com" wrote:
I have an ASP.NET application that I have been deploying by using the publish
option on the project which compiles the project into a directory on my
machine. It has been working fine and then suddenly it is indicating
failure. I look in the output directory and all the files seem to be there.

When I use aspnet_compiler or simply compile the project in VS2005 there are
no errors. What is happening? How can I find out what is causing the
publish to fail?

As always, thanks for any input.

Eagle
May 28 '07 #7

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

Similar topics

2
by: Dustin Davis | last post by:
This is my first attempt at using ClickOnce. It seems it is publishing OK, but I can't run the install. If I use IE, I just see XML in the web browser. If I use Firefox, I download a setup file,...
5
by: Andy G | last post by:
I'm having a hell of a time publishing my first VS 2005 web site. All it tells me is publish failed. Is there any place that gives me a hint on why it failed? I'm typing in the website address...
1
by: brettmetcalfe | last post by:
Hi I have a problem publishing a web application. The web application has been developed using VS2005 and uses ASP.Net 2.0. The application works fine from inside VS2005. However when I build...
4
by: John | last post by:
Hi I am publishing a vb.net app to a remote ftp/web site. This seems to go successfully. Once I try to install the app by using the url http://www.mydomain.com/publish.htm and pressing the Run...
7
by: Agos | last post by:
I developed my first web site using Visual studio 2005. It works very well with Visual Studio. But after I published the web site in a file system folder in my PC using the instructions I found in...
2
by: Max2006 | last post by:
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...
3
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
I have a solution with multiple web apps. Some of the web apps have folders containing .pdf files, etc. When I publish any of these web apps, the .pdf files do not get copied; I have to remember to...
3
by: yojimbo4 | last post by:
Hi, i am using vb.net 2005, and i am using microsoft access as my database I have published the application using the built in publisher of vb.net and come up with the setup.exe, after...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, I have a publishing Click Once of my application. Now I want create new version of my application for modify some files, like app.config.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.