CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 10/25/2007 9:45:56 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 14 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
15 Items, 1 Pages 1 |< << Go >> >|
kreid
Asp.Net User
Mind-bending problem with class library function10/25/2007 9:45:56 AM

0/0

 Hi,

 I have been having a problem with Visual Studio not recognizing an overload method in a class library I am referencing from my web project - the wierdest thing is that SOMETIMES both functions are recognized in intellisense.  However, when I build my web app I get the error:

"No overload for method sendEmail takes 4 arguments"

 
I have tried numerous solutions over a long period of time.  Please go and read my original post: http://forums.asp.net/t/1170138.aspx to see what I have attempted so far.

I thought posting the topic here might elicit a better response
 

Thanks,

k
 

Charles Asborns
Asp.Net User
Re: Mind-bending problem with class library function10/25/2007 12:37:41 PM

0/0

See what happens if you comment out the other overloads so only the 4 parameter one is left.  I know that probably means it well break elsewhere, but maybe you will force the compiler to see it.

Very strange error.  Do you have SP1? 


May all your posts be enlightening...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
david wendelken
Asp.Net User
Re: Mind-bending problem with class library function10/25/2007 12:58:34 PM

0/0

  1. I would verify both functions are public. :)
  2. Recompile the library.
  3. Delete the refererence to the library in my project.
  4. Reinstate the reference to the library in my project.
  5. Exit visual studio.
  6. Re-enter visual studio.
  7. Pray.
  8. Hoot and holler if you get lucky.

 


If this answered your question, be sure to mark it as the answer. That way, everybody after you will know it's the answer also!
kreid
Asp.Net User
Re: Mind-bending problem with class library function10/25/2007 3:42:10 PM

0/0

 Ok, so I tried David's suggestion first, no joy.

Then I tried the first suggestion - I removed the original SendEmail function, and compiled my class library with only the function that was causing the problem.  Still the same problem with the second function.  Here's where it gets strange - when I comment out all references to my "problem" function and leave only the "good" function calls, it builds successfully, even though I commented the "good" function out of my class library.  I had a feeling this would happen, it's almost as if Visual Studio is retaining a reference to the old dll somewhere and laughing in my face every time I try to update the reference. 

WHat I need is an expert who can identify the source of the problem.  I honestly believe my productivity would be doubled if it wasn't for the flakiness of visual studio ;-(

By the way - how do i tell if i have SP1 -> I have version 8.0.50727.42  ??

 

Thanks,

k
 

Charles Asborns
Asp.Net User
Re: Mind-bending problem with class library function10/25/2007 6:08:26 PM

0/0

It sounds like you have to do the Microsoft Mambo.  There's a .Net temp folder in there someplace, \v2.0.50727\Temporary ASP.NET Files, and I think that holds the evil persistent dlls.  I'd back it up and delete the contents and try recompiling.


May all your posts be enlightening...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
david wendelken
Asp.Net User
Re: Mind-bending problem with class library function10/25/2007 6:48:07 PM

0/0

Sometimes the project files get funky stuff in them.

Open your .csproj or .vbproj in notepad and see if you find any files listed in it that have the incorrect directory info. 


If this answered your question, be sure to mark it as the answer. That way, everybody after you will know it's the answer also!
Charles Asborns
Asp.Net User
Re: Mind-bending problem with class library function10/25/2007 6:54:40 PM

0/0

Dave - the contractors are still here.  I'll be back at work prb around 4ish, your contributorness :)


May all your posts be enlightening...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
kreid
Asp.Net User
Re: Mind-bending problem with class library function10/26/2007 7:57:16 AM

0/0

Tried that already, but I'll give it another try. 

 

Charles Asbornsen:

It sounds like you have to do the Microsoft Mambo.  There's a .Net temp folder in there someplace, \v2.0.50727\Temporary ASP.NET Files, and I think that holds the evil persistent dlls.  I'd back it up and delete the contents and try recompiling.

 
kreid
Asp.Net User
Re: Mind-bending problem with class library function10/26/2007 1:28:19 PM

0/0

So I have been doing some digging.  When I select "Go to definition" on Email.SendEmail, this was pointing to:

D:\Documents and Settings\Administrator\Local Settings\Temp\3564$MyClassLibrary.dll$2.0.50727\MyClassLibrary.Email.cs

This contained ONE function prototype - the four parameter function was not there - as i expected.  So, I thought I would just delete the Temp folder, problem solved.  Wrong.  When I built the project, it RE-CREATED the above folder and file with the same contents as before. Angry

I then decided to go digging in registry:

I found entries containing "MyClassLibrary" in

HKEY_CURRENT_USER/Software/Microsoft/Search Assistant/ACMru/5603

Also found entries containing "Email.SendEmail" in

.../Microsoft/VisualStudio/8.0/Find, but I doubt these relate to the main problem.

 

I need a solution to this problem fast; thanks in advance if you can help

Charles Asborns
Asp.Net User
Re: Mind-bending problem with class library function10/26/2007 1:55:21 PM

0/0

I'll send a private message to Allen Chen and see if he can help us out.


May all your posts be enlightening...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
kreid
Asp.Net User
Re: Mind-bending problem with class library function10/29/2007 9:06:14 AM

0/0

 Ok, great.  I think I need an expert's help.

kreid
Asp.Net User
Re: Mind-bending problem with class library function10/31/2007 10:47:45 AM

0/0

Is anyone out there?  I would appreciate it if someone would help with this issue.  I have tried everything i can think of.

When I update the dll, the new dll is copied into my web app's bin folder - I know this because the modified date is today's date.  When I compile the project, the modified date changes to august - ie: the old dll is being copied in to the bin folder.  What is doing this; how can I stop it?

 

Thanks,

kreid 

Charles Asborns
Asp.Net User
Re: Mind-bending problem with class library function10/31/2007 12:44:02 PM

0/0

Do you have the same project in two solutions?  We have that and it confuses the computer - make sure your reference is pointed at the right dll.

Also, try removing the reference from the project, and do a search on your computer for other copies of the dll and delete them.  Then compile the library by itself.  Then add the new dll to your references and compile your project.


May all your posts be enlightening...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
kreid
Asp.Net User
Re: Mind-bending problem with class library function10/31/2007 2:52:58 PM

0/0

Woohoo!

It's working, but let me explain what I did for anyone else who has the same problem:

I have ANOTHER class library (let's call it class library B) which is referencing my problem - they are referencing each other.  My Web App is referencing both. Yes, I know this is bad practice!!

I removed all the dlls, rebuilt class library B, then class library A, then the Web App.  Problem solved.  When you add a reference to a class library to another project, it sounds fancy, but all it is doing is copying the other projects dll.  So in my case Class Library A and B both had each other's and their own dlls in their bin folder.  My web app must have been referencing the dll for Class library A in Class Library B's bin folder
 

Charles Asborns
Asp.Net User
Re: Mind-bending problem with class library function10/31/2007 2:57:47 PM

0/0

Oh I am just too smart to be able to stand myself today Wink  I'm glad that worked out - I hate when we have those 3 or 4 page threads.


May all your posts be enlightening...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
15 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
C++ Cookbook: Solutions and Examples for C++ Programmers Authors: D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell, Pages: 573, Published: 2006
Notebooks of the Mind: Explorations of Thinking Authors: Vera John-Steiner, Pages: 264, Published: 1987

Web:
Mind-bending problem with class library function - ASP.NET Forums Re: Mind-bending problem with class library function. 10-25-2007, 8:37 AM ... Re : Mind-bending problem with class library function. 10-25-2007, 8:58 AM ...
PHP Template Integration, DHCP Introduction, Mind-bending OOP ... PHP Template Integration, DHCP Introduction, Mind-bending OOP, ... Well, no-- there's a whole class of advanced object-oriented techniques to make your code ...
Straightening Out Mind- Bending Measurements The library was. a cabinet with a few dozen old books. ... mind-bending phenomena of the quan-. tum world. With his collaborator of ...
develop:extending_pear_soap_wsdl [phpPatterns] }n"; } function getCode () { $this->class.="}n"; return $this->class; } }. ( credit to Deitrich and Shane - trying to generate PHP with PHP is mind bending) ...
Improve your IQ : over 500 mind-bending puzzles, Title Information Title, Improve your IQ : over 500 mind-bending puzzles. Class no, 153.9 ... Enfield Highway Library (ENF), Enfield Library Resources Unit, Enfield Mobile ...
CMOSS Aug 18, 2006 ... I was a bit confused, but after a bit of mind bending I could ... 2007 we need to create a new project which is based on a Class Library. ...
Learning to Love SOM In other words, if I update my JensTools C++ class library from version 1.0 .... of reusable and robust shared class libraries, and positively mind-bending ...
TaxingTennessee: Mind bending complexity Just a brief look at a few of these rulings gives an extremely troubling glimpse into the mind bending and convoluted complexity of the IRS code. ...
SourceForge.net: Files 06/10/2002: beazley Fixed function prototype problems with Tcl 8.4 06/09/2002: beazley ... This one is a little mind-bending, but here is an example that ...
Problem Text - Physics Forums Library View Full Version : Problem .... It appears to me that I am in the class of just such people. ... It's kind of mind-bending. :biggrin: ...




Search This Site:










page_load doesn't get called

editable <head> section

how do you assign url to a virtual directory?

what to study first?

membership.updateuser

programmatically adding a property to profile section

dlookup to asp

hooking up dnn to active directory for authentication?

how to change user's role on dnn 3.2.2

graphing with parameter and query

text alignment

method,class list not showing up in vs.net

dnn and css

the vs.net program needs too much memory.

firefox problem with the page when it loads very first time

how to authenticate a same site for internet(?) and intranet(windows) usage

runtime "cannot load file or assembly"

how can you allow/deny access to specific .aspx pages using active directory

help with featured ads - only one featured ad

check access auth. of page and access auth. of data....???

security implications for write access to web folders

saving and publishing a asp.net app using visual studio .net pro 2003

optimal combination of modules to manage a project (not multiple projects)

how easy is role based forms authentication

fileexists always returns false - except in asp.net dev environment

dnn 2.0 - .dnn file format

speed optimization in vs 2005

webparts

asp.net treenode value in client side

css not working upon debug

 
All Times Are GMT