Forums

Welcome Guest Search | Active Topics | Members

imports not found Options
Michel
Posted: Monday, April 25, 2005 2:49:00 AM
Rank: Member
Groups: Member

Joined: 4/25/2005
Posts: 15
Points: 0
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
Fedor
Posted: Monday, April 25, 2005 4:32:00 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,207
Points: -292
Location: WA, US
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:



Fedor attached the following image(s):
GraphicsMilldotNET_GAC.png
GraphicsMilldotNET_WebMatrix1.png
GraphicsMilldotNET_WebMatrix2.png
GraphicsMilldotNET_WebMatrix3.png



Best regards,
Fedor Skvortsov
Michel
Posted: Monday, April 25, 2005 6:17:00 AM
Rank: Member
Groups: Member

Joined: 4/25/2005
Posts: 15
Points: 0
It doesn't woooork T_T. Well, it's not that it doesn't work but I have bugs I didn't have before :
Code:
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?

Fedor
Posted: Monday, April 25, 2005 7:03:00 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,207
Points: -292
Location: WA, US
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:

Code:
<%@ 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>


Best regards,
Fedor Skvortsov
Michel
Posted: Monday, April 25, 2005 8:29:00 AM
Rank: Member
Groups: Member

Joined: 4/25/2005
Posts: 15
Points: 0
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" ^_^!
Fedor
Posted: Monday, April 25, 2005 8:44:00 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,207
Points: -292
Location: WA, US
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.

Best regards,
Fedor Skvortsov
Michel
Posted: Tuesday, April 26, 2005 12:46:00 AM
Rank: Member
Groups: Member

Joined: 4/25/2005
Posts: 15
Points: 0
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
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.