Solved

Can't publish my C# NET 2.0 Web Application

Posted on 2008-10-31
3
630 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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