Is the Bin folder right under the root of the site? And I have no idea what "xxx" means. I assure you that it works - I have several asp.net websites that are not applications. You have not posted any code so there is not much more anyone can tell you.
You don't need to "add reference" for a website for code you are putting in the Bin yourself. Again, since I have no visibility to what you are doing, I can't tell what is wrong.
Yes, the dlls are already in the bin folder, yet still same issue<br>
<br>
<br>
Is there some kind of vs logs in vs2015 that i can refer to , to see what is wrong with vs not detecting my dll?
Whats the use of providing code when it cant detect my dll
How about installing it into the global assembly cache?
(Note:Each computer where the common language runtime is installed has this machine-wide code cache. The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.)
Add the file to GCA
gacutil.exe /i MyFile.dll
Then you can get the version and
gacutil /l MyFile
For more details, please refer to the following articles:
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
6 Points
285 Posts
ASP.net web site unable to reference dll
Feb 14, 2018 07:28 AM|z080236|LINK
I could add reference to one of my custom made dlls in ConsoleApp, and Web application(Add reference)
But when I added reference to WebSite, and tried to import namespace, it complains the following:
The type of namespace xxxx could not be found. (are you missing a directive or assembly reference)?
Contributor
5921 Points
2448 Posts
Re: ASP.net web site unable to reference dll
Feb 15, 2018 02:53 AM|KathyW|LINK
In a website, put the dll in the Bin folder. Add a using statement in the code behind.
Member
6 Points
285 Posts
Re: ASP.net web site unable to reference dll
Feb 15, 2018 04:18 AM|z080236|LINK
using xxx doesnt detect the namespace
This only has problems in website
Web application and console app are fine
Contributor
5921 Points
2448 Posts
Re: ASP.net web site unable to reference dll
Feb 15, 2018 04:42 AM|KathyW|LINK
Is the Bin folder right under the root of the site? And I have no idea what "xxx" means. I assure you that it works - I have several asp.net websites that are not applications. You have not posted any code so there is not much more anyone can tell you.
Member
6 Points
285 Posts
Re: ASP.net web site unable to reference dll
Feb 15, 2018 03:59 PM|z080236|LINK
xxx is the namespace but somehow after i click project->add reference ->select these dll and add
It still cant detect
I didnt have this problems for web app and console app, only for web sites
Contributor
5921 Points
2448 Posts
Re: ASP.net web site unable to reference dll
Feb 15, 2018 07:13 PM|KathyW|LINK
You don't need to "add reference" for a website for code you are putting in the Bin yourself. Again, since I have no visibility to what you are doing, I can't tell what is wrong.
Member
6 Points
285 Posts
Re: ASP.net web site unable to reference dll
Feb 20, 2018 09:07 AM|z080236|LINK
Yes, the dlls are already in the bin folder, yet still same issue<br>
<br>
<br>
Is there some kind of vs logs in vs2015 that i can refer to , to see what is wrong with vs not detecting my dll?
Whats the use of providing code when it cant detect my dll
using namespace; already gives error
Contributor
2400 Points
730 Posts
Re: ASP.net web site unable to reference dll
Feb 24, 2018 07:23 AM|X.Daisy|LINK
Hi z080236,
How about installing it into the global assembly cache?
(Note:Each computer where the common language runtime is installed has this machine-wide code cache. The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.)
Add the file to GCA
gacutil.exe /i MyFile.dll
Then you can get the version and
gacutil /l MyFile
For more details, please refer to the following articles:
https://stackoverflow.com/a/23480805
https://docs.microsoft.com/en-us/dotnet/framework/app-domains/how-to-install-an-assembly-into-the-gac
Best Regards,
Daisy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.