0

cant add reference to asp.net c# web application

  1. im working on visual studio 2010 and .net ver 2
  2. im adding a normal dll such as ajaxcontroltoolkit or sqlserversmo and ...

when i add reference to my project get this prompt

could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component.

after many search i try the TLIMB.exe and STrongname but get this error my.dll is not a valid type of library

2
  • Exactly how did you add it? Commented Dec 29, 2012 at 8:40
  • i add my reference project>reference >add reference and browse my dll to add Commented Dec 29, 2012 at 8:43

1 Answer 1

1

It seems that the underlying COM component (ie: SQL Server SMO) wrapped in the NET assembly you're trying to add isn't registered. Try reinstalling it first.

Other simpler idea: are you running VS as admin?

Sign up to request clarification or add additional context in comments.

1 Comment

yes vs as admin ,i fix that with user built dll in same machine

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.