C# - How To Build And Publish Website
Aug 13, 2010How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.net. Actually, ASP.NET Web site doesnot contain .csproj and .sln file.
View 2 RepliesHow to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.net. Actually, ASP.NET Web site doesnot contain .csproj and .sln file.
View 2 RepliesI want to be able to automatically publish to a local folder each time a web asp.net mvc 2 project is built.
I use Visual Studio 2008.
I want to write a class using c# and compile it and user this dll in many projects.
I know how to build a website in Visual Studio and publish it but Visual Studio mixes the classes and rename them to a few strang and unfamiliar names which doesn't mean anything.So my purpose is writting a class with some functions, compling them and use them in other projects.
Today I started playing with the web.config transforms in VS 2010. To begin with, I attempted the same hello world example that features in a lot of the blog posts on this topic - updating a connection string.
I created the minimal example shown below (and similar to the one found in this blog). The problem is that whenever I do a right-click -> "Publish", or a right-click -> "Build Deployment Package" on the .csproj file, I'm not getting the correct output. Rather than a transformed web.config, I'm getting no web.config, and instead the two transform files are included.
What am I doing wrong?
Web.config:
[code]....
I'm trying to develop my first web application using Web.Config transformations.Trying to run the app (building with the "Dev" build configuration)in the Asp.Net Debugging web server built into VS the site doesn't seem to work - the "Web.Dev.config" configuration doesn't appear to be seen by the application.
View 1 RepliesI'm relatively new to actually publishing sites on my own..Anyway, right now I am using VS2008 to build / compile my web application and then publish it to the server. Simple enough, until I want to change several of the code behinds, and don't want to spend 30 minutes re-publishing several thousand documents.
I have been reading that publishing via VS is not the best approach, so I guess I have two questions:
1. Using VS2008, is there a way to build the project and publish only certain parts of the project such as the pre-compiled code or better yet have VS only update the code that has been changed on the server? I suppose I could simply publish it to my local drive and pick apart the files from there / is there a better way?
2. In your opinion what is the best deployment strategy?
It may be obvious to everyone. I am learning this: what is difference between build solution and build website
View 2 RepliesI am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs but have run into a roadblock with regards to customizing the package depending on my build configuration.
I develop in a 32bit environment but need to create a release package for a 64bit environment, so in the 'Release' configuration I have a post build event that copies the 64bit version of a third-party dll into the bin directory overwriting the 32bit version. When I use the 'Publish' functionality, even though the correct 64bit dll is being copied to the bin directory, it doesn't get included in the package.
Is there a way to get the 'Publish' to include files that have been copied into the bin directory during a post build event?
What is the differenc between Copy Web Site and Publish Web Site? What are the advantages/disadvantages of each method?
View 6 RepliesI have placed all the pages in a folder named UI.Home page is placed in UI folder.Reports in report folder.When I publish the website in iis and run it then error message is "Can't find resources."
View 2 RepliesI want to publish my website
I tried with build --> publish Project Name
with
Publish Profile --> HMS
Publish Method --> File System
Target Location --> D:
Is there a way to publish asp.net web application using PSAKE, just like visual studio do?
View 2 RepliesI'm using Visual Studio (VS) Professional Edition 2010 and IIS 7. I'd like to publish a wpf application for download from a website. But for some reason, when I go to Build > Publish in VS, select a publishing location, select that users will install the application from a website, and then try to browse to a URL on my machine, VS gives me an error message saying:
To access local IIS Web sites, you must install the following IIS components:
IIS 6 Metabase and IIS 6 Configuration Compatibility ASP.NET
I'm not really sure why this is happening. I'm running IIS 7 on my computer, and it was my understanding that Metabase has been rendered obsolete in the latest version of IIS..
I'm try to publish a ASP.Net web site, i fallow the instruction from this fallowing link:[URL]and i'm still can not get the link to publish.Should i must go to a specific website of ASP.Net for publish it?
View 2 RepliesMy code works fine in Visual Studio 2008 but when I publish the website on same computer it doesn't work. Doesn't throw any exception. I'm using IIS 7.I'm trying to Dycrypt my a file using GnuPg.exe(GnuPg is already installed on my system and all the right Password and key.
Is it the persmission issue for user approaching from IIS? How should I fix this? System.Diagnostic.Process Code does not work after I publish my website
protected void Page_Load(object sender,
EventArgs e)
{
bool i = DecryptPGP(@"C:WebSite ryParListing_08102010.zip.pgp",
@"C:WebSite ry est.zip");
Response.Write(i.ToString());
}
[code...]
i have dsigned a website in my desktop in my company. i have installed sql server 2005 and visual studio 2008.everything is working fine if i host my website from my workstation.but my desktop is not accessible to all the departments in my company so i have to host my website on one of the company's sql servers.let us assume that "isaserver" is my company's sql server where i want to host my website.now, what i did that i created a virtual directory in isaserver's wwwroot folder and pasted my c:/inetpub/wwwroot contents into that.but when i tried to access the website, its not working.
View 4 RepliesI have done website designing and i published that website in vs2005 after that i transfer to iis webroot. when i open the report viewer page i got the below error,An error occurred during local report processing.
The definition of the report 'Main Report' is invalid. The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.the same reportviewer page opened when i was upload to webroot without publishing website..i added all report dll file, but i got the above error (published website)
im Using asp.net 3.5
and i want to publish it and i want to test My WebSite from Remote computer ,
but i want to test it on (localhost) not on Server !! how?
i have project that have used report microsoft . it can print in win server 2008 when it is source code but when i published project in serever 2008, there is no data in my page and it cant print.
View 2 Replieswhen i publish my ASP web site, with the publish web VS2010 tool´s,my web site only gives me the 404 error.., why?
View 4 RepliesI have asp.net website which when published using build > publish website option in VS2010 and even when checking omit debug information option in website publish window,published folder still contains pdb files is there a way to avoid this behavior?.
View 1 RepliesI have developed a website with some user control(.ascx) control.
i am loading these controls dynamically in .aspx page by using LoadControl() function as shown below
'Reports.aspx
Dim txtBox As ASP.controls_rpttextbox_ascx = Nothing 'line where error is generated
txtBox = LoadControl(objLoad, "~/Controls/RptTextBox.ascx")
I have registered this user control in my web.config file as shown below
<system.web>
I've created a website and now I'm trying to publish it on web server but I'm getting a lot of errors related to 'web.config' that website working fine in my VS2010 but I don't know what's the problem on the server I'm getting following error:-
[Code]....
If I remove whole line 6 then it show error in line 7and so on, I've use radcontrol tool in my web application but whatever I've used they are working fine on my system.
my web.config file is here [URL]
when we publish an asp.net website, there are 2 file types created under 'bin' folder, .dll & .compiled files. When we deploy to production do we need to copy the .compiled files or just copying .dll will do?
I know it's precompiled at this point but what's the .compiled file for ?
I've created an asp.net website with VS2008, how can I publish it in VS2008?
P.S: I've used Right Click -> publish but, I've used a Database in my project, but VS2008 doesn't publish it.
P.S: I'm using SQL Express 2008