Visual Studio - Restart The IIS Site When Recompiling Website?
May 21, 2010
What is the best way to add into the build/compile script of an Asp.net project to initiate a IIS to restart the website on DLL rebuild instead of the first request to the site.
The first way I though of was add a request to just hit one of the pages in the "Post-Build events". Just wondering best practices. This would be similar to "Start" which opens a page immediately on build. Update: The reason I would like to accomplish this is for just for efficiency. I would the to encapsulate the compile time and the restart time into one batch to save on time on step 4 below
VS: ctrl+shift+b Wait for visual que "Build succeeded". Broswer: F5. Wait for IIS reload. (as well as Hit kbd>F5 in unanswered questions in SO)Test page
I've realised that the custom controls that I add to the toolbox are lost on restart of Visual Studio 2010 RC 1.Was there a problem that occured during the installation or is it a know bug?I did not encounter this problem with the beta 2.
Recently i am working in VS2008 installed in windows xp SP2. In the toolbox i added a new tab and added some third party controls in the toolbox, by using "Choose Item" dialog.. I also added Ajax ToolKit to the tool box. It worked fine and i could drag n drop controls.
But then if i restart VS2008, all the tabs i created and controls in it goes off and disappears ncluding Ajax Toolkit. Each time i restart it, I have to have add those controls newly?
Is this a Bug?? or Is there any solution for this?
Using Visual Web Developer 2010 Express. I was used to creating a web app anytime and I would get a default page for starters and be happy. But today I find that when I pick either the ASP.NET Web Site or ASP.NET Web Application templates I get site.master and a bunch of site admin files that I don't want. Alternately when I select the empty versions of those templates, I get almost nothing at all. An almost empty web.config page and no Default.aspx page. There is nothing magical about having a default.aspx page in place, but it is an indicator of a change when I can only get a virtually completely empty website or a website with a bunch of bells and whistles I don't want.
Also, for some reason, when I create a new app or website as just noted, in the Solution Explorer I get aspx.designer.cs files showing as well as web.config files for both debug and release. Somehow some settings and templates must have changed, or am I missing something here? How can I get my settings/templates to go back to the way they were?
I downloaded a trial version of Visual Studio 2010, created a new c# Solution and then wanted to add an ASP.NET Web Site. I am Folllowing an example in a book: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008.In the book they write that a template for createing an c# ASP.NET Web Site would be found, but whereever I search for o template in VisualStudio I cant find that for c#, I could find it for VisualBasic but that is not wath I want!
I am getting the following error when I try to establish ftp remote connection using the 'copy web site' feature on visual studio 2005.
unable to open the web 'ftp://209.*.*.*/httpdocs'. The computer is disconnected from the network.
Why can't I connect to the remote site on visual studio 2005? I can do the same thing on Dreamweaver with no problem. I can ping the IP successfully. I can open the ftp URL on a web browser with no problem.
i have an asp.net website which contains a link to a legacy site written in classic asp which has vb 6 classes (dll) in the back ground also.here is what i am trying to achieve:-i want to browse to the asp.net website using IE7,then when the link is clicked then enters the classic asp site i want to start debugging the classic asp and step through it.(also to make things worse, once a the vb6 class is instanciated, and a call make to its method i want to debug the method in the vb 6 code)My system :- XP Pro, IIS 5, Visual Studio 2005 (asp.net project ), Visual interdev 6 (classic asp project) Visual Basic 6 (vb 6 classes compiled into dll)i have been trying everything with no joy, there is lots on the net but nothing seems to have worked.i have the back office components installed so asp debugging is possible, i have configured the asp website s debugging is turned on.if i add a breakpoint to the classic asp site and hit the start button in visual interdev i can step through it fine.My problem is that if i attach interdev to a process (iexplorer.exe or dll.host) then the breakpoints are not hit. if anyone can help me with this it would be great.ont top of that, if anyone can explain to me how to also debug the vb6 dll code in visual basic 6 when it is called from the classic asp site that would be great!
Just as the subject says, my VS'05 installation hangs when trying to create a new website. I even installed a fresh version of VS08 along side '05 and '08 is doing the same.
I'm having a site done in ASP.NET and part of the quote is deployment. It's only one page at the moment. Can I configure VWD to download my app to my PC in VWD?
It will also have a Telerik RadGrid that VWD doen't support, will I still get the page wih some kind of placeholer?
My client gave me this web solution, in it various projects, and the problematic project (for me) is the Web Site.
I've copied the code to test web server (2008) and installed VS 2008 so I could step through the code on the server due to some weirdness.
Anyhow, when I open the solution locally on my personal computer, it runs on Cassini [URL] because I'm not on a server OS. However, when I run the app on the web server, when I hit F5, it runs oh [URL].
When I'm running the code on the server, how do I point the web site to use Cassini?
I install team foundation server . after that I want to create web site . I click -->file -->new web site --I can't chose any project because display empty box
I am struggling to publish a site built (and working locally) using VWD 2010 Express to a production server.I realise that this is because I don't understand enough about the relationship between the website and SQL server and I certainly don't know enough about the way SQL server works in general. Can anybody recommend some learning resources - books, tutorials, vids etc, that explain the background and in particular address the issue of how to publish to a production server.
I have published my website using VS2010 and then selected FTP Site.Problem is that it does not show me update status. and takes too much time as compare to other FTP client. Is there any way or plugin for visual studio 2010 so i can build and directly publish that on FTP server.
I am taking over for a website in ASP.Net (VB.Net) where the live site is compiled code. So there's no code behind pages. So other than the ASP.Net pages, it's just DLL files in the bin folder.It's also at an ISP where I have no control over the server to remote in.
I have gotten from the client, what I believe to be the latest and greatest code. So there's code behind pages and also a vbproj file. It seems to be have done in an early version of Visual Studio.Thinking maybe 2003.I only have Microsoft Visual Web Developer 2010 (I've been using) and VS2005.So I made a very basic change just to test the waters and built the website, which made a brand new DLL for the site in bin. Also new pdb and xml document. It works fine on dev.I uploaded just this DLL to live. However on live, when I get to the part where I'm submitting a form.I get a very non descript error.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] wwwPittsburghKids.CMP_MembershipNew.cmdSave_Click(Object sender, EventArgs e) +6630 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +114 [code]....
I can't see the line number of the error + am I compiling the DLL wrong?I trying to figure out how to do this without breaking the live site. Is there a way to tell what version of .Net it's compiled in.
I've tried all kinds of searches on this site and with Bing and don't seem to get any hits that meet my condition. So pardon me if this is a rather basic question. I'm rather new at ASP.NET programming.I want to experiment with putting up to a live site. GoDaddy gives you free hosting if you get the URL from them. The catch is the hosting only supports IIS 7.0 with .Net 2.0/3.0/3.5. I've uploaded all kinds of plain websites with no problem. So in Visual Studio 2010 I selected the following options while creating a new project:
I am facing a problem reated to web services. A customer is running his website on an old server running .Net Framework version 1.1. We would like from this site to call a Web Service, how can I do that. I have Visual Studio 2010 intalled on my machine and when I use the option "Add Web Reference" the generated files/folders seem to not be compatible.
I want to load test an ASP.NET web service. I have Visual Studio 2008 Professional Edition and Visual Studio 2010. Can either one of these products facilitate load testing? I can't seem to find anything and all Google returns is higher end editions of Visual Studio.If not, what are some of the alternatives.