Solved

Can't publish my C# NET 2.0 Web Application

Posted on 2008-10-31
3
628 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
start a process from a service 3 23
SQL Help 27 46
VB.Net/LINQ: ".Contains" condition not finding existing result in MSSQL 16 36
Sending receiving text messages in vb.net 15 38
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

822 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