C# Webhook InitializeReceiveGenericJsonWebHooks
up vote
0
down vote
favorite
I receive the error:
'HttpConfiguration' does not contain a definition for 'InitializeReceiveGenericJsonWebHooks' and no accessible extension method 'InitializeReceiveGenericJsonWebHooks' accepting a first argument of type 'HttpConfiguration' could be found (are you missing a using directive or an assembly reference?)
I have the HttpConfiguration DLL and I have also installed the ASPNet Webhooks Reciever package.
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
// Initialize Generic JSON WebHook receiver
config.InitializeReceiveGenericJsonWebHooks();
}
}
c# webhooks
add a comment |
up vote
0
down vote
favorite
I receive the error:
'HttpConfiguration' does not contain a definition for 'InitializeReceiveGenericJsonWebHooks' and no accessible extension method 'InitializeReceiveGenericJsonWebHooks' accepting a first argument of type 'HttpConfiguration' could be found (are you missing a using directive or an assembly reference?)
I have the HttpConfiguration DLL and I have also installed the ASPNet Webhooks Reciever package.
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
// Initialize Generic JSON WebHook receiver
config.InitializeReceiveGenericJsonWebHooks();
}
}
c# webhooks
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I receive the error:
'HttpConfiguration' does not contain a definition for 'InitializeReceiveGenericJsonWebHooks' and no accessible extension method 'InitializeReceiveGenericJsonWebHooks' accepting a first argument of type 'HttpConfiguration' could be found (are you missing a using directive or an assembly reference?)
I have the HttpConfiguration DLL and I have also installed the ASPNet Webhooks Reciever package.
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
// Initialize Generic JSON WebHook receiver
config.InitializeReceiveGenericJsonWebHooks();
}
}
c# webhooks
I receive the error:
'HttpConfiguration' does not contain a definition for 'InitializeReceiveGenericJsonWebHooks' and no accessible extension method 'InitializeReceiveGenericJsonWebHooks' accepting a first argument of type 'HttpConfiguration' could be found (are you missing a using directive or an assembly reference?)
I have the HttpConfiguration DLL and I have also installed the ASPNet Webhooks Reciever package.
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
// Initialize Generic JSON WebHook receiver
config.InitializeReceiveGenericJsonWebHooks();
}
}
c# webhooks
c# webhooks
asked Nov 10 at 21:21
levis84
206313
206313
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
I guess you missed the "Microsoft.AspNet.WebHooks.Receivers.Generic" nuget package. After installing it, your compiler error should disappear.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
I guess you missed the "Microsoft.AspNet.WebHooks.Receivers.Generic" nuget package. After installing it, your compiler error should disappear.
add a comment |
up vote
1
down vote
accepted
I guess you missed the "Microsoft.AspNet.WebHooks.Receivers.Generic" nuget package. After installing it, your compiler error should disappear.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
I guess you missed the "Microsoft.AspNet.WebHooks.Receivers.Generic" nuget package. After installing it, your compiler error should disappear.
I guess you missed the "Microsoft.AspNet.WebHooks.Receivers.Generic" nuget package. After installing it, your compiler error should disappear.
answered Nov 10 at 21:42
koolkoda
18415
18415
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243524%2fc-sharp-webhook-initializereceivegenericjsonwebhooks%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown