RIAS
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?
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?
probably you should copy the dll for Cust.SupplierDetailsAddIn into the bin folder...
ASKER
Thanks!
I am not using visual studio, it is a live server.
But this is not compiled code.
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?
did you manage to run it on staging server? what did you do there?
ASKER
All addins work fine except this.
not sure what that addin means...
maybe it is not correctly installed...
maybe it is not correctly installed...
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?
what did you do to make it run?
and what is that add-on actually? any link to product page?
ASKER
Some aspx files .
maybe you forgot to copy those aspx files
or you copied to wrong place...
or you copied to wrong place...
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.
and what that add-on actually? any link to product page? Its an aspx file . Its an finance software.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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>
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.
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.SupplierDetailsAddInnot 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?
ASKER
not sure that means...I have now added Cust.SupplierDetailsAddIn --Added to the web.config
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?
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.
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.
ASKER
Thanks a ton, it helped me to resolve the issue.
ASKER
<%@ Page Language="C#"%>
<%@ Import namespace="System" %>
<%@ Import namespace="System.Reflection" %>
<%@ Import namespace="System.IO" %>
<%@ Import namespace="Microsoft.Win32" %>
<%@ Import namespace="Cust.SupplierDetailsAddIn" %>