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 9041917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:21:21+00:00 2026-06-16T10:21:21+00:00

I created a couple of extended methods in a VB.NET module. I put them

  • 0

I created a couple of extended methods in a VB.NET module. I put them inside a Class, built it and got the DLL.
From another program I made a reference to that DLL and imported it using Imports as well.
The extended methods appear in IntelliSense and it works but a warning appears in the Error console saying,

Could not resolve this reference. Could not locate the assembly “nK0deExtendedMethods”. Check to make sure the assembly exists on disk.

Does anyone know why this error occurs even though I have referenced the DLL??

This is the Class where I’ve put my module with the extended method.

Imports System.Runtime.CompilerServices
Imports System.Drawing

Namespace nK0deExtendedMethods

    Public Module ExtMethods

        <Extension()>
        Public Function Merge(ByVal img1 As Image, ByVal img2 As Image) As Image

            Dim bmp As New Bitmap(Math.Max(img1.Width, img2.Width), img1.Height + img2.Height)
            Dim g As Graphics = Graphics.FromImage(bmp)

            g.DrawImage(img1, 0, 0, img1.Width, img1.Height)
            g.DrawImage(img2, 0, img1.Height, img2.Width, img2.Width)
            g.Dispose()

            Return bmp

        End Function

    'Public Class NewImageMethods

    'End Class

End Namespace

And I’m having another doubt. In the Imports statement, I have to mention the DLL’s name along with the Namespace name. Like this,

Imports ExtendedMethods.nK0deExtendedMethods

Normally you only have to import the Namespace’s name, right? why that is happening?

Thanks a lot everyone.

  • 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-06-16T10:21:22+00:00Added an answer on June 16, 2026 at 10:21 am

    I just created a new Class, removed the Namespace and build it. That worked fine.

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

Sidebar

Related Questions

Created .NET WCF service, tested it - works. Generated schemas from Data and service
I have created a couple of activities and stored them as XAML. Opening them
I recently created a couple inline table-valued UDF's and then referenced them in a
I've already created a couple iPhone and iPad apps, but I've written them either
I've created a couple of custom validation methods for jQuery Validate. One is used
I have a couple of Web Application/Web Projects created with ASP .NET 4.0 that
I created a couple of custom attributes that I attach to my methods in
I have created a couple of web services of type .asmx (.NET) getting data
I have created a couple of WPF apps but when right clicking them in
I have created a couple of simple functions in VB.NET that simply return a

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.