Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ADDIN error

Hello I have a addin to a live server. I am getting an error:
Message = d:\Program Files (x86)\Pd\POS PP\website\Customer\AddIns\Attachments\DS_InvoiceAttachments.aspx(7): error CS0246: The type or namespace name 'Cust' could not be found (are you missing a using directive or an assembly reference?)
It is not a compile code. I just have access to this addin file. 
Any suggestions? 
Avatar of RIAS
RIAS
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

The .aspx file :
<%@ Page Language="C#"%>
<%@ Import namespace="System" %>
<%@ Import namespace="System.Reflection" %>
<%@ Import namespace="System.IO" %>
<%@ Import namespace="Microsoft.Win32" %>
<%@ Import namespace="Cust.SupplierDetailsAddIn"  %>
probably you should copy the dll for Cust.SupplierDetailsAddIn into the bin folder...
Avatar of RIAS

ASKER

Thanks!
I am not using visual studio, it is a live server.
But this is not compiled code.
then you should regıster the product correctly so references can be resolved...
did you manage to run it on staging server? what did you do there?
Avatar of RIAS

ASKER

All addins work fine except this. 
not sure what that addin means...
maybe it is not correctly installed...
Avatar of RIAS

ASKER

Its a software where I have access to its addins
how is it working on other servers?
what did you do to make it run?
and what is that add-on actually? any link to product page?
Avatar of RIAS

ASKER

Some aspx files .

maybe you forgot to copy those aspx files
or you copied to wrong place...
Avatar of RIAS

ASKER

how is it working on other servers? There are other customisations which work fine.

and what that add-on actually? any link to product page? Its an aspx file . Its an finance software.
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RIAS

ASKER

<%@ Page Language="C#"%>
<%@ Import namespace="System" %>
<%@ Import namespace="System.Reflection" %>
<%@ Import namespace="System.IO" %>
<%@ Import namespace="Microsoft.Win32" %>
<%@ Import namespace="Cust.SupplierDetailsAddIn"  %>

<script runat="server">

    [System.Web.Services.WebMethod]
    public static string GetSupplierReferences(string sessionId, string invoiceXml)
    {
        Dictionary<string, string> result = new Dictionary<string, string>();

        Services service = new Services();
        if (service.GetInvoiceSupplierDetails(sessionId, invoiceXml, ref result))
            return "<tr><td>" + result["SupplierCode"] + "</td><td>" + result["BankAccount"] + "</td><td>" + result["BankName"] + "</td><td>" + result["SwiftCode"] + "</td></tr>";
        else
            return "";
       
    }

</script>
<!DOCTYPE html>
<html>
<head>

Open in new window

Avatar of RIAS

ASKER

I have now added  Cust.SupplierDetailsAddIn and   restarted the app pool, but still same error.
Message = d:\Program Files (x86)\Pd\POS PP\website\Customer\AddIns\Attachments\DS_InvoiceAttachments.aspx(7): error CS0246: The type or namespace name 'Cust' could not be found (are you missing a using directive or an assembly reference?)
It is not a compile code.  
I have now added  Cust.SupplierDetailsAddIn 
not sure that means...
do you have that code in your web site?
which page has that namespace/class/code?
do you have that page in your web site?
did you check the files?
Avatar of RIAS

ASKER

I have now added  Cust.SupplierDetailsAddIn --Added to the web.config
not sure that means...
do you have that code in your web site? No
which page has that namespace/class/code? Not sure
do you have that page in your web site?No
did you check the files? Yes and Cust.SupplierDetailsAddIn  was found.
did you check the files? Yes and Cust.SupplierDetailsAddIn  was found.
is this an aspx page?
what is the path of that file?
is it in the same folder as your web site?

Avatar of RIAS

ASKER

is this an aspx page? Yes it is an aspx page.
what is the path of that file? We got the files separately and we were to just drop it onto the server
is it in the same folder as your web site? Yes


Apologies if it is not very relevant.

Avatar of RIAS

ASKER

Thanks a ton, it helped me to resolve the issue.