【发布时间】:2014-07-01 16:24:48
【问题描述】:
我已将一个 Web Api 项目添加到我的 Web 表单解决方案中。现在我正在尝试从我的 Web 表单项目中引导 Web Api。
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
GlobalConfiguration.Configure(AddressOf WebApi.WebApiConfig.Register)
End Sub
但是,我收到以下错误:
'Configure' is not a member of 'System.Web.Http.GlobalConfiguration'.
如何引导 Web API?
【问题讨论】:
标签: asp.net vb.net web-services webforms