Solved

Can't publish my C# NET 2.0 Web Application

Posted on 2008-10-31
3
626 Views
Last Modified: 2013-11-26
I have built an C# NET 2.0 Web Application which works beautifully on my local IIS. Now, I am trying to deploy it to production server and I am finding things that don't make much sense to me:

1. I choose to publish my project, choose to move only files necessary to run, I select my location, and on the end, in my deployment folder, there is no web.config file, there are any assemblies so I have to chase them on my local IIS and place them into BIN folder. Even if I would manually add web.config and all the dll files, my app wouldn't work. It would tell me that *.aspx.cs files are missing. The only way I could make it work is to copy all files from my development to deployment server. Publish definitely didn't work for me.

2. I don't quite understand what Clean/Build/Rebuild Solution and Build/Rebuild/Clean myApplication do?
Where can I look up these information... or please explain if it can be explained briefly...

Thanks.
0
Comment
Question by:sacvb
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
techExtreme earned 125 total points
ID: 22851934
Hello,
For your first query, go thru this 3 page tutorial presenting different options of how to deploy asp.net website, including datastores if any. Tutorial:
http://www.stardeveloper.com/articles/display.html?article=2002110402&page=1

For your second query:
Build:
Build or Build Solution to compile only those project files and components that have changed since the last build.

ReBuild:
Rebuild Solution to "clean" the solution first, and then build all project files and components

Clean:
Clean Solution to delete any intermediate and output files, leaving only the project and component files, from which new instances of the intermediate and output files can then be built.

For Details and Source: http://msdn.microsoft.com/en-us/library/5tdasz7h(VS.80).aspx
0
 

Author Comment

by:sacvb
ID: 22853929
On my first question:
I red tutorial and I still don't understand why my web.config file is missing after I publish my project.
Also, nothing is said about other assemblies. Is it normal that I have to collect them (whatever I referenced) and place them in the BIN folder, or publishing process should do that for me?

Thanks
0
 
LVL 12

Expert Comment

by:techExtreme
ID: 22856230
Hello,
Thanks but I would have like it more if the grade was 'A', nevermind. As to your query, yes the publish process should do it for you.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now