Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello all. I started a big project from a template, so it came with openauth by default. I chose to use Active Directory as my authentication scheme, so I had disabled openauth, removed the pages, and any references (including service references and references via nuget). Right now though, I cannot build for my publish because I get this error:

Copying file bin\DotNetOpenAuth.AspNet.dll to obj\Release\Package\PackageTmp\bin\DotNetOpenAuth.AspNet.dll failed. Could not find file 'bin\DotNetOpenAuth.AspNet.dll'.

Things I've tried:
-"Searching" for any references like oauth, openauth
-Re-installing and uninstalling via Nuget PM Console (still fighting a remaining self-dependency issue that won't let me get rid of the core because the core depends on it [WTFLOLGTFO?])
-Deleting the bin and obj folders, cleaning the solution, rebuilding and building the project.
-Giving Visual Studio what it wants. Didn't end well. Started asking for micro, integrated dependencies to OpenAuth such as mono.math.dll and mono.math.xml despite having nearly every possible reference to OpenAuth installed.

I have no idea where or why it's looking for the service reference which doesn't exist, and hasn't for quite some time.
Posted
Comments
ZurdoDev 29-Jan-14 15:04pm    
Did you look at the References folder in Solution Explorer under your project?
dfarr1 29-Jan-14 15:06pm    
Yes, all the dotnetauth/oauth references have been removed from that list.
ZurdoDev 29-Jan-14 15:20pm    
Looked in project properties? Make sure there are no post build events.
dfarr1 29-Jan-14 15:27pm    
That was clean as well. I might have found it - Visual Studio keeps it's own tabs on directory contents listing of the bin and obj folders where after looking at it from the VS side, the files that kept causing errors were all flagged with warnings as having potentially missing items. I deleted the folders from the actual directory and not through VS, so it's possible that VS kept trying to reference them because it didn't know I messed with those folders outside the application. It looks to be compiling now but I'll post back to verify whether that was it.
ZurdoDev 29-Jan-14 15:28pm    
Interesting. If that's it, post as solution so this no longer shows as unanswered.

1 solution

Visual Studio keeps it's own tabs on directory contents listing of the bin and obj folders where after looking at it from the VS side, the files that kept causing errors were all flagged with warnings as having potentially missing items. I deleted the folders from the actual directory and not through VS, so it's possible that VS kept trying to reference them because it didn't know I messed with those folders outside the application. It looks to be compiling now but I'll post back to verify whether that was it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900