Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can't publish my C# NET 2.0 Web Application

Posted on 2008-10-31
3
Medium Priority
?
634 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 375 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

926 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