References not working?
3 posts
• Page 1 of 1
References not working?
I'm using the phalanger tools preview release, the most recent version.
I've added a C# library project to my solution and referenced it from the phalanger web project. I then added the assembly name to the web.config and set the library path to "bin".
Compiling the phalanger web project fails because it's unable to find the referenced assembly.
Compiler output:
Error 24 Configuration error: Library assembly 'CryptoHelper' could not be loaded. Could not load file or assembly 'CryptoHelper' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'CryptoHelper' or one of its dependencies. The system cannot find the file specified. C:\Program Files (x86)\MSBuild\Phalanger\4.0\Phalanger.targets 32 8 PhalangerSln
I've added a C# library project to my solution and referenced it from the phalanger web project. I then added the assembly name to the web.config and set the library path to "bin".
Compiling the phalanger web project fails because it's unable to find the referenced assembly.
Compiler output:
Error 24 Configuration error: Library assembly 'CryptoHelper' could not be loaded. Could not load file or assembly 'CryptoHelper' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'CryptoHelper' or one of its dependencies. The system cannot find the file specified. C:\Program Files (x86)\MSBuild\Phalanger\4.0\Phalanger.targets 32 8 PhalangerSln
- johnc
- Posts: 45
- Joined: March 24th, 2013, 9:17 pm
Re: References not working?
Hi,
This may happen since the DLL is not in /Bin directory yet (I guess).
The project reference should be sufficient, so you won't need to modify your web.config. Moreover any DLL copied into /Bin folder should be automatically referenced.
Please try to run/build project without referencing the DLL in your web.config and give me know how it works for you.
Thanks,
This may happen since the DLL is not in /Bin directory yet (I guess).
The project reference should be sufficient, so you won't need to modify your web.config. Moreover any DLL copied into /Bin folder should be automatically referenced.
Please try to run/build project without referencing the DLL in your web.config and give me know how it works for you.
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: References not working?
Alright, I gave that a try.
I was originally following config examples I found (ie. wp.net). Compiles fine with a reference.
However, attempting to call a method in the referenced C# assembly is crashing visual studio.
EDIT: I'm assuming my code is wrong somehow and Phalanger Tools are crashing for the same reason as my other thread.
I was originally following config examples I found (ie. wp.net). Compiles fine with a reference.
However, attempting to call a method in the referenced C# assembly is crashing visual studio.
EDIT: I'm assuming my code is wrong somehow and Phalanger Tools are crashing for the same reason as my other thread.
- johnc
- Posts: 45
- Joined: March 24th, 2013, 9:17 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests