Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have build .dll file using visual studio 10 it works on pc where visual studio 10 is already installed but not works on pc where visual studio 10 is not installed. Give me solution.

What I have tried:

i checked folder for dll i put dll in windows folder but it not works.
Posted
Updated 28-Jul-20 2:33am

This is the same issue as .dll file works on my pc but not on other pc.[^].

So you need to rebuild your dll for the version of Windows that the customer has installed on their PC.
 
Share this answer
 
Quote:
i put dll in windows folder
That is not a good home for your own DLL files - clue is in the name - it's a folder for things to do with Windows.

I suspect that you are rebuilding the DLL on the "other" machine that has Visual Studio which is why it starts working.

You are not deploying your file correctly. It needs to be registered on the machine where you want it to work, not just copied into a random folder.

See reference material First look at deployment - Visual Studio | Microsoft Docs[^]

Also Deploy your Application or Component Using Windows Installer[^]
 
Share this answer
 

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

  Print Answers RSS


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