Solved

Can't publish my C# NET 2.0 Web Application

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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