Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6912139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:03:16+00:00 2026-05-27T09:03:16+00:00

I have a method that looks like this : Function ExecuteAndLogError(Of TResult)(ByVal code As

  • 0

I have a method that looks like this :

Function ExecuteAndLogError(Of TResult)(ByVal code As Func(Of TResult), _
                                        ByVal sql As String, _
                                        Optional ByVal parameters As SqlParameterCollection = Nothing) As TResult
End Function

I am getting this compiler error :

‘Func’ is ambiguous in the namespace ‘System’.

This is the line that has the problem

Func(Of TResult)

These are my references for the website

These are my references

This is what I’m importing

  • Imports Microsoft.VisualBasic
  • Imports System.Data.SqlClient
  • Imports System.Data
  • Imports System.Diagnostics
  • Imports System.Linq

Did I forget to import something or add a reference to something?

More Info

I recently upgrade my website from Visual Studio 2005 to Visual Studio 2008.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:03:17+00:00Added an answer on May 27, 2026 at 9:03 am

    Here is what I did to fix this problem.

    I went to the object explorer in Visual Studio and searched for Func. I had two references to everything in System because I had imported a library, Newtonsoft.Json. Because I had upgraded my website from 2005 to 2008 Newtonsoft was still referencing the 2.0 framework. So, I just deleted my reference to Newtonsoft and that fixed my problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a method that looks like this: public static String escape(String text) {
I have a method in codeigniter that looks like this, public function category() {
I have a method that looks like this function endcall_click(leadid) { document.location = '@Url.Action(index,dispo,new{id=leadid})/';
I have code that looks like this.... function Finder(id) { this.id = id; this.input
I have a C++ method signature that looks like this: static extern void ImageProcessing(
I have a method on an interface that looks like this and I want
I have a method in a url rewriting module that looks like this public
I have a method that looks like: T[] field; public Method(IList<T> argument) { this.field
I have a function that looks somewhat like this: function(domObj) { var currentObj =
I have some C# code that looks something like this System.Data.DataRow row; var table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.