0

I am working on a asp.net website in which I am using sharpsvn assemblies for svn check-in/out related activities and have 64 bit Windows-7 Operating system. When I was trying to run the application it was giving me error message as "Could not load sharpsvn or one of its dependencies ". To handle this issue I have gone through tools-->Options-->Project and Solutions-->Web Projects--> and check the "Use the 64 bit version of IIS" and application start to work as expected.

Even the solution works fine after this setting when I am trying to publish my website by using publish option of visual studio explorer it is still giving me same error i.e.

"Could not load sharpsvn or one of its dependencies "

so how can I resolved this issue?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user1149555
  • 125
  • 7

1 Answers1

0

Ensure the references are set Copy Local -> True.

If they still dont appear consider adding them as Nuget packages.

lazarus
  • 371
  • 2
  • 10
  • Copy Local is true for all of this assemblies – user1149555 Feb 28 '17 at 11:01
  • Publishing itself is not getting successful so not only sharpsvn but all other assemblies of the solution is also not getting copied into published location – user1149555 Feb 28 '17 at 11:02
  • Are you saying that the whole Publishing process is failing? Or just that you aren not getting the dll's you expected and that causes a runtime error? – lazarus Feb 28 '17 at 12:09
  • The whole publishing process is failing with the error as "Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format. ASPNETCOMPILER " – user1149555 Feb 28 '17 at 12:34
  • Well, within your OP says you cannot *run* the code, now you are saying *publish*. I would re-visit *all* of the points in this post: http://stackoverflow.com/questions/15352528/could-not-load-file-or-assembly-sharpsvn-or-one-of-its-dependencies-an-attemp – lazarus Feb 28 '17 at 12:39
  • When I am running through my solution in asp.net it is working fine only when I am trying to publish it is giving me this error – user1149555 Feb 28 '17 at 12:54
  • Above was my comment 5 hour back – user1149555 Feb 28 '17 at 12:54
  • If anywhere I have written that cannot run the code? – user1149555 Feb 28 '17 at 12:55
  • "When I was trying to run the application it was giving me error message" "yes intially I tried this one only" - I dont know what you mean by that, please elaborate. – lazarus Feb 28 '17 at 12:59