Click here to Skip to main content
15,895,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I am using smart card reader for personal information tracking.I had included all the dll and Extensions for the card reader inside website bin folder and bulid the solution.
But when i am invoking the object for card reader it gives an error like,

C#
Could not find a part of the path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\hims\ba0ddc3b\bd494651\assembly\dl3\5e365102\0047b093_cf50d001\Extensions'


then i copied the same dll and extension folder to the above location.
now the object is created and data read successfully.
But the problem is that now i copied the files in temp folder so once i stopped the application it will loss every thing and will not work.

Also when i host it in server how can i map when its reading from temp folder.

can any one help me to create the correct structure for these dll to be read perfectly both developement system and when i host it on server.

When hosted the application will be in server and smart card reader device will be used by the client .

Please help me to map these things

thanks in advance
Posted

1 solution

You need to add a reference to the dlls using Project->Add Reference. That ensures the dlls are copied to the bin folder, or wherever else they are needed.

However I wouldn't bother going any further with this. The only reason it is working at all is because you are working on one machine and the server and client are the same physical box, and you're probably running under the account of the logged-in user. This is giving you the false impression that your code will still work when deployed to an actual server and the client and server are no longer the same physical machine.

Your asp.net code can't access hardware on the client, so when everything is on the same box the hardware is connected to the server so it works. When the server is a different machine from the client this will stop working.
 
Share this answer
 
Comments
NIDHIN.C 11-Jan-16 4:43am    
So for hosting the application in server any solution?
F-ES Sitecore 11-Jan-16 4:54am    
You need to use something that comes with an client-based component that lets it interact with your webserver.
NIDHIN.C 11-Jan-16 5:16am    
using webservice can i do something? you meant like that?
F-ES Sitecore 11-Jan-16 5:21am    
You need card reader that was designed to work over the internet and that comes with all the relevant components. You can't take something designed to work on a local machine and expect it to work over the internet.
NIDHIN.C 11-Jan-16 4:49am    
Any other structure inside the solution will help me for server to client communication for smart card reader?

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