Partager via


VSWebSite.EnsureServerRunning Method

Starts the ASP.NET Development Server, if necessary, and returns the URL for the Web site.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
Function EnsureServerRunning As String
string EnsureServerRunning()
String^ EnsureServerRunning()
abstract EnsureServerRunning : unit -> string
function EnsureServerRunning() : String

Return Value

Type: System.String
The URL for the Web site.

Remarks

In a development environment, a Web site project can run under the ASP.NET Development Server or under IIS (either locally or remotely). The EnsureServerRunning method returns the URL for the site. If the site is running from the ASP.NET Development Server, the server is started, if necessary, and the port number is returned as part of the URL in the format http://localhost:port/.

.NET Framework Security

See Also

Reference

VSWebSite Interface

VsWebSite Namespace

EnvDTE

Other Resources

Referencing Automation Assemblies and the DTE2 Object