Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F# the namespace or module 'XXXX' is not defined

Tags:

I'm trying to create a basic ASP.net f# application and when I'm trying to reference the Youtube .net API I'm getting a "The namespace or module 'Google' is not defined" in my code behind file.

I've used the default ASP web forms template in Visual Studio, removed all of the contents, then loaded in the examples from Expert F#, Chapter 14. The default examples run fine, the problem only occurs when loading the Google API. The API works fine when I load it through an f# console application.

The first few lines behind file looks like:

#light
namespace MyASPApp

open System
open System.Web
open System.Web.UI
open System.Web.UI.WebControls
open Google.YouTube

Can anyone think of a resolution to the problem, or anything I could check to understand why its not picking up the Google API?