This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

imports not found

Hello,

I am using WebMatrix in localhost to run my program and it displays an error message :

"L'espace de noms ou le type 'GraphicsMill' pour les Imports 'Aurigma.GraphicsMill' est introuvable."

in french, which means that the import "Aurigma.GraphicsMill" is not found.
I was wondering if the problem was not the WebMatrix software.

Thank you,

Michel
Hello Michel,

In order to use Graphics Mill for .NET in WebMatrix you need to put Aurigma.GraphicsMill.dll and Aurigma.GraphicsMill.WebControls.dll assemblies to the GAC (Global Assembly Cache). For it just drag this files from

C:\Program Files\Aurigma\Graphics Mill 3.0 for .NET\Binaries

to

c:\Windows\assembly



Then you need to remove Aurigma Graphics Mill Web Controls from WebMatrix toolbox and add them again:



As you see, now Aurigma web controls are displayed in initial list of controls. Then just drag BitmapViewer control on page:



And resize it to appropriate size:


It doesn't woooork T_T. Well, it's not that it doesn't work but I have bugs I didn't have before :
Dim bitmap As New Aurigma.GraphicsMill.Bitmap("...")

It displays an error on the Aurigma.GraphicsMill.Bitmap object. And if I put "Bitmap" only, there are conflicts with the System.Drawing library.

But if I create a "bin" folder with the .dll files, and add "<%@ assembly Name="Aurigma.GraphicsMill" %>" into the code, it works.

Is it a different way to solve this problem or am I lucky?

It displays an error on the Aurigma.GraphicsMill.Bitmap object. And if I put "Bitmap" only, there are conflicts with the System.Drawing library.

What error do you receive?

If you have Aurigma.GraphicsMill.dll in your /bin folder, then there is no need to in @assembly directive. You should just use @import directive for resolving naming conflict:

<%@ Page language="VB" %>
<%@ Import Namespace="Aurigma.GraphicsMill" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
	Dim b As New Bitmap()
	b.Load("c:\mountain.jpg")
End Sub
</script>
<html>
    <head>
    </head>
    <body>
        <form runat="server">
            <!-- Insert content here -->
        </form>
    </body>
</html>
For this line,

Dim bitmap As New Aurigma.GraphicsMill.Bitmap("c:\InetPub\wwwroot\Graphics\WebMatrix\data\avatar.jpg")

The error I have is "BC30002: Type 'Aurigma.GraphicsMill.Bitmap' non défini." ('Aurigma.GraphicsMill.Bitmap' not defined).

Thank you for the "assembly" ^_^!
Sorry, does it work now?

The problem can be only in Aurigma.GraphicsMill.dll load failing, so please check whether it is in /bin folder.
If I put the files in the 'bin' directory, it works but I don't find the icon in the tool box of WebMatrix. I don't use it so it's not very important.

Thank you for answering me quickly,

Michel