Hi every one!
I am using LINQ to call a function named "GetTabMenuTheme", I dragged it in the Database Model to generate the function like this:
[Function(Name="dbo.GetTabMenuTheme", IsComposable=true)]
public string GetTabMenuTheme([Parameter(DbType="NVarChar(MAX)")] string state)
{
return ((string)(this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), state).ReturnValue));
}
and use it like this:
from mi in db.ModuleInstances
select db.GetTabMenuTheme(mi.State)
and my connection is:
Data Source=MyServer;Initial Catalog=MyDB;uid=MyUser;pwd=MyPassword
There is no problem executing the code locally (I mean with connection: Data Source=.;Initial Catalog=MyDB;Integrated Security=True;), but when I deploy in web, this error is produced:
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.GetTabMenuTheme", or the name is ambiguous.