Could not load file or assembly 'sapnco' or one of its dependencies. An attempt was made to load a program...












3















I have got this error while I am using SAP .NET Connector 3.0 x64. I couldn't find any solution at stackoverflow, so I d like to share here for others who stuck at same problem like me.










share|improve this question



























    3















    I have got this error while I am using SAP .NET Connector 3.0 x64. I couldn't find any solution at stackoverflow, so I d like to share here for others who stuck at same problem like me.










    share|improve this question

























      3












      3








      3


      1






      I have got this error while I am using SAP .NET Connector 3.0 x64. I couldn't find any solution at stackoverflow, so I d like to share here for others who stuck at same problem like me.










      share|improve this question














      I have got this error while I am using SAP .NET Connector 3.0 x64. I couldn't find any solution at stackoverflow, so I d like to share here for others who stuck at same problem like me.







      c# .net sap






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 17 '14 at 9:47









      MertMert

      2,38852553




      2,38852553
























          5 Answers
          5






          active

          oldest

          votes


















          3














          Run > Regedit



          HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio1X.0WebProjects   


          Change Use64BitIISExpress from 0 to 1 Restart Visual Studio and IISExpress.






          share|improve this answer































            1














            You Can try browsing/configured your service through IIS, and set appPool .Net 4.0. I hope this solve the sapnco dll issue.






            share|improve this answer































              1














              I had similar problem with x86



              I set the Platform Target from "any" to "x86", in Project/Properties and fixed the problem.






              share|improve this answer































                0














                I had similar problem with VS 2017 and AnyCPU project option.



                To fix the problem I disable Prefer 32-bit checkbox in project build properties.



                StartUp project properties tab






                share|improve this answer
























                • Having same issue but the "Prefer 32-bit" option is disabled so I can't check it.

                  – John81
                  Nov 14 '18 at 15:59



















                0














                In VS 2017 I was able to resolve this by setting the Bitness to "x64" for IIS Express in the server section under the project web properties. I imagine this is similar to making the Use64BitIISExpress Regedit change in one of the other answers.



                enter image description here






                share|improve this answer























                  Your Answer






                  StackExchange.ifUsing("editor", function () {
                  StackExchange.using("externalEditor", function () {
                  StackExchange.using("snippets", function () {
                  StackExchange.snippets.init();
                  });
                  });
                  }, "code-snippets");

                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "1"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f25887269%2fcould-not-load-file-or-assembly-sapnco-or-one-of-its-dependencies-an-attempt%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  5 Answers
                  5






                  active

                  oldest

                  votes








                  5 Answers
                  5






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  3














                  Run > Regedit



                  HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio1X.0WebProjects   


                  Change Use64BitIISExpress from 0 to 1 Restart Visual Studio and IISExpress.






                  share|improve this answer




























                    3














                    Run > Regedit



                    HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio1X.0WebProjects   


                    Change Use64BitIISExpress from 0 to 1 Restart Visual Studio and IISExpress.






                    share|improve this answer


























                      3












                      3








                      3







                      Run > Regedit



                      HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio1X.0WebProjects   


                      Change Use64BitIISExpress from 0 to 1 Restart Visual Studio and IISExpress.






                      share|improve this answer













                      Run > Regedit



                      HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio1X.0WebProjects   


                      Change Use64BitIISExpress from 0 to 1 Restart Visual Studio and IISExpress.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Sep 17 '14 at 9:47









                      MertMert

                      2,38852553




                      2,38852553

























                          1














                          You Can try browsing/configured your service through IIS, and set appPool .Net 4.0. I hope this solve the sapnco dll issue.






                          share|improve this answer




























                            1














                            You Can try browsing/configured your service through IIS, and set appPool .Net 4.0. I hope this solve the sapnco dll issue.






                            share|improve this answer


























                              1












                              1








                              1







                              You Can try browsing/configured your service through IIS, and set appPool .Net 4.0. I hope this solve the sapnco dll issue.






                              share|improve this answer













                              You Can try browsing/configured your service through IIS, and set appPool .Net 4.0. I hope this solve the sapnco dll issue.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Oct 26 '15 at 20:18









                              user5490895user5490895

                              111




                              111























                                  1














                                  I had similar problem with x86



                                  I set the Platform Target from "any" to "x86", in Project/Properties and fixed the problem.






                                  share|improve this answer




























                                    1














                                    I had similar problem with x86



                                    I set the Platform Target from "any" to "x86", in Project/Properties and fixed the problem.






                                    share|improve this answer


























                                      1












                                      1








                                      1







                                      I had similar problem with x86



                                      I set the Platform Target from "any" to "x86", in Project/Properties and fixed the problem.






                                      share|improve this answer













                                      I had similar problem with x86



                                      I set the Platform Target from "any" to "x86", in Project/Properties and fixed the problem.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered May 10 '16 at 17:55









                                      Artur ABCArtur ABC

                                      214




                                      214























                                          0














                                          I had similar problem with VS 2017 and AnyCPU project option.



                                          To fix the problem I disable Prefer 32-bit checkbox in project build properties.



                                          StartUp project properties tab






                                          share|improve this answer
























                                          • Having same issue but the "Prefer 32-bit" option is disabled so I can't check it.

                                            – John81
                                            Nov 14 '18 at 15:59
















                                          0














                                          I had similar problem with VS 2017 and AnyCPU project option.



                                          To fix the problem I disable Prefer 32-bit checkbox in project build properties.



                                          StartUp project properties tab






                                          share|improve this answer
























                                          • Having same issue but the "Prefer 32-bit" option is disabled so I can't check it.

                                            – John81
                                            Nov 14 '18 at 15:59














                                          0












                                          0








                                          0







                                          I had similar problem with VS 2017 and AnyCPU project option.



                                          To fix the problem I disable Prefer 32-bit checkbox in project build properties.



                                          StartUp project properties tab






                                          share|improve this answer













                                          I had similar problem with VS 2017 and AnyCPU project option.



                                          To fix the problem I disable Prefer 32-bit checkbox in project build properties.



                                          StartUp project properties tab







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Apr 13 '18 at 11:09









                                          VladVlad

                                          94021323




                                          94021323













                                          • Having same issue but the "Prefer 32-bit" option is disabled so I can't check it.

                                            – John81
                                            Nov 14 '18 at 15:59



















                                          • Having same issue but the "Prefer 32-bit" option is disabled so I can't check it.

                                            – John81
                                            Nov 14 '18 at 15:59

















                                          Having same issue but the "Prefer 32-bit" option is disabled so I can't check it.

                                          – John81
                                          Nov 14 '18 at 15:59





                                          Having same issue but the "Prefer 32-bit" option is disabled so I can't check it.

                                          – John81
                                          Nov 14 '18 at 15:59











                                          0














                                          In VS 2017 I was able to resolve this by setting the Bitness to "x64" for IIS Express in the server section under the project web properties. I imagine this is similar to making the Use64BitIISExpress Regedit change in one of the other answers.



                                          enter image description here






                                          share|improve this answer




























                                            0














                                            In VS 2017 I was able to resolve this by setting the Bitness to "x64" for IIS Express in the server section under the project web properties. I imagine this is similar to making the Use64BitIISExpress Regedit change in one of the other answers.



                                            enter image description here






                                            share|improve this answer


























                                              0












                                              0








                                              0







                                              In VS 2017 I was able to resolve this by setting the Bitness to "x64" for IIS Express in the server section under the project web properties. I imagine this is similar to making the Use64BitIISExpress Regedit change in one of the other answers.



                                              enter image description here






                                              share|improve this answer













                                              In VS 2017 I was able to resolve this by setting the Bitness to "x64" for IIS Express in the server section under the project web properties. I imagine this is similar to making the Use64BitIISExpress Regedit change in one of the other answers.



                                              enter image description here







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Nov 14 '18 at 16:16









                                              John81John81

                                              1,05431741




                                              1,05431741






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Stack Overflow!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f25887269%2fcould-not-load-file-or-assembly-sapnco-or-one-of-its-dependencies-an-attempt%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Florida Star v. B. J. F.

                                                  Error while running script in elastic search , gateway timeout

                                                  Adding quotations to stringified JSON object values