'CreditCard' does not contain a definition for 'GetCreditCardDetails'

In my Confirm.aspx page I am using a method from a dll. In VS 2005 sometimes when I compile my project(web site) in which the dll is a part of the solution it gives me following error,
Confirm.aspx.cs(220): error CS0117: 'CreditCard' does not contain a definition for 'GetCreditCardDetails'

I verified many times that the method exists. To solve the errror I have to remove the dll from the bin and give reference again. Yesterday I deployed the dll and didn't receive any error while compilation. But received error after accessing Confirm.aspx.

Can someone please help me, This is driving me nuts. Thanks in advance.

feed the creative machine
6/25/2007 4:36:07 PM
asp.net.getting-started 91979 articles. 3 followers. Follow

5 Replies

Similar Articles

[PageSpeed] 9

Do you have another reference "DLL" that may also use that class object and it hasn't been compiled in awhile and therefore contains an older reference to that DLL. If so, it could be over-laying your reference in your current project.

I usually have to compile my DLL project, then compile any other projects that may use it (to make them current) that I will be using in my current project, then compile my current project.

6/25/2007 4:44:55 PM

I have 2 dlls in my project. dll1 is referenced by dll2 and dll2 is referenced by all aspx files. This error occurs randonmly whenever I modify anything in dll2.

feed the creative machine
6/25/2007 4:53:01 PM

Does dll1 reference dll2?  If it does, it could be overlaying your dll2 reference in your aspx project. Make sure when you change dll2, you also recompile dll1 before you compile your aspx project. 

6/25/2007 5:37:37 PM

but when I change anything in dll2 do I need to recompile dll1 everytime?

feed the creative machine
6/25/2007 6:22:51 PM

If you are going to be using both of them in your aspx, I would say yes.

You have:

dll1 with dll2 reference


aspx project with  dll1 and dll2 references

....your project will only have one reference to dll2. Which version of dll2 should it have? If, like you said, you want your project to use the dll2 with the new changes in, then you are running into a compatability issue when dll1 tries to access dll2 from your project. So, yes, you will have to compile dll1 everytime you want to change dll2 and use both within the same project.

But, if you lay out your class object hiarchy properly, the need to re-compile multiple dlls should be minimized.



6/25/2007 7:11:47 PM

Similar Artilces:

Name: haznen Email: haznenatyahoodotcom Product: Gran Paradiso Alpha 8 Summary: '''''''''''''''''''' Comments: '''''''''''''''''''''''''''''''''''' Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061204 UGES/ GranParadiso/3.0a1 From URL: http://www.mozilla.org/projects/granparadiso/ Note to readers: Hendrix gives...

Name: mario Email: ramar17atfastwebnetdotit Product: Gran Paradiso Alpha 2 Summary: ''''' Comments: K: Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2) Gecko/20070206 GranParadiso/3.0a2 ...

'do' won't 'do' if '/'
Greetings to All from Au, Have a NetWare Perl 5.8.4 and wanted to tweak File\Spec\NW.pm to try and standardise on '/' separators. If I run a test script (t/uni/lower.t) with an unmodified NW.pm, it calls t/uni/case.pl, that, in case.pl, (when the path separators are '\'), the $file is '..\lib\unicore\To\Lower.pl' and the following code portion works, with $simple getting a returned table: sub casetest { my ($base, $spec, $func) = @_; my $file = File::Spec->catfile(File::Spec->catdir(File::Spec->updir, "lib", &qu...

Name: L Lachowsky Email: e2brutus_10atyahoodotcom Product: Firefox Summary: ''' Comments: why duddn this surprise me... I change default server from IE to Mozilla, and then i get error messages. well, shud I decide to not get on my computer with Mozilla..or shud I risk security breeches with IE....hmmm at least i can get on the internet with IE Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/2008120122 Firefox/3.0.5 From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this fee...

Cast from type ''''DBNull'''' to type ''''String'''' is not valid.
How do I avoid getting this error: Cast from type ''''DBNull'''' to type ''''String'''' is not valid. I am trying to get values from the database into a form for updating using a Datareader, SQL is set to allow nulls for certain fields as they are not required but the only way I can get the form to display is by adding a space in SQL. Is there another way around this? Check if it is equal to DBNull.Value first and if it is, don't do the cast.Stanley Tan theSpoke Blog Where in the code does it need to go? I am using the following and it's the profile that isn't always requi...

Hello. I'm using defferent 5.6.0's for Win32. I wonder wheter following behaviour is intentional or not: d:\>perl -e "print 'b'..'c'" bc d:\>perl -e "print 'b'..'a'" bcdefghijklmnopqrstuvwxyz I expected empty list in latter case, like in perl -e "print 'bb'..'a'" <!ENTITY Vadim REALLIFE "Vadim V.Konovalov, St.Petersburg, Russia"> &Vadim; On Wed, Sep 20, 2000 at 03:14:41PM +0400, Konovalov, Vadim wrote: > Hello. > > I'm using defferent 5.6.0'...

'IN' Clause or 'OR'
Hello, [1]: select * from TABLEA where COL1 IN('value1','value2''valu3'....) [2]:select * from TABLEA where COL1 = 'value1' OR COL1= 'value2' OR COL1='valu3'. TABLEA is a huge table and it has non-clustered index on COL1. Among the above 2 queries, which query will give me the better performance or fast response and WHY? What is the difference between 'IN' and 'OR' clauses as for as Sybase Optimization is concerned. Which is the better one to be used on huge tables. Thanks. Mac An IN list is treated ...

'double' does not contain a definition for 'Format'
I'm getting an error saying double does not contain a definition for "FORMAT" any ideas... <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Web.UI.HtmlControls" %> <%@ Import Namespace="System.Web.UI.HtmlControls" %> <script language="c#" runat="server"> void Calculate_Click(Object sender, EventArgs e) { int loanPrincipal = Convert.ToInt32(Request.Form["loanPrincipal"]); int loanTaxes = Convert.ToInt32(Request.Form["loanTaxes"]); int loanInsur...

'or' or 'union'
Hello I was just wondering, in general what is better to use, an 'or' clause in a select or a 'union' to join two selects together. Do both statements create work tables? Many thanks Alex I think OR will be better than union. because suppose u have 3 tables and using OR u can join table a and table b and table c so each table will have only one read. but using union you will join table a and table b and in another query of union u will use table (a or b) and table c so ur one read is more in union . Ramdas Alex Cheung wrote: > Hello > >...

'Roles' does not contain a definition for 'GetUsersInRole'
 Dear All, I do not know why it happend to my website suddenly!   I did not have any error now it keeps get errors and do not know any definition for Roles!!!! something like this:  if (Roles.IsUserInRole(theUser, "x")) there is blue underline under 'isUserInRole' ??!!!!   Thanks for your helps in advance, Regards, Salma Happy coding........ Hi sali1982, It's really strange that you suddenly get the problem. I think you first need to check whether you've enabled role in web.config. Also, you need to check whether ...

'object' does not contain a definition for 'Reaction'
Hi,,the following code shows the error, 'object' does not contain a definition for 'Reaction' if (objError.Reaction==0) { throw; } plz solve this issue Thanks   Post the code of objError. Looks like reaction is not defind there.ASP.NET Hosting (HostingFest)...

'type' does not contain a definition for 'length'
Could anybody help me with this, thanks so much //Copyright (C) 2000 Microsoft Corporation. All rights reserved. // Hello1.cs public class Hello1 { int OneToZero(int[] args) { int iCount = 0; for (int i=0; i < args.length ; i++) { if (args[i] == 1) { iCount++; args[i] = 0; } } return iCount; } public static void Main(string[] args) { int[] iArr = {1, 3, 4, 5, 1, 1, 7}; Hello1 test = new Hello1(); int iNumOnes; System.Console.WriteLine("Values of the array: [ "); ...

'_Master' does not contain a definition for 'Context'
 its first time happening to me. i have only one file in my asp.net website. the Master pagethis is the code behind class of this master pagenamespace Asif.Website{    public partial class _Master : System.Web.UI.MasterPage    {                    }}  when i publish this website it reports an error '_Master' does not contain a definition for 'Context' When i remove the "Namespace" and class is without namespace it works fin...

'SiteMap' does not contain a definition for 'CurrentNode'?
Not sure what happens but I can't access all SiteMap's properties. I'm using Ajax-enabled site and applied a Master Page.  What I'm trying to do is change current node title at run time and I saw some posts: SiteMapNode currentNode = SiteMap.CurrentNode.Clone(true);SiteMapNode tempNode = currentNode; tempNode.Title = "xx";tempNode.Description = "xx"; Thanks in advance, Frank   The following is the error message: Description: An error occurred during the compilation of a resource required to service this request. Please review the followin...

Web resources about - 'CreditCard' does not contain a definition for 'GetCreditCardDetails' - asp.net.getting-started

Resources last updated: 12/14/2015 10:45:22 PM