locked
DLL does not work on IIS webserver RRS feed

  • Question

  • User454447048 posted

    I want to import a dll in asp.net, and I have a major problem

    First i want to say that this dll works fine in a windows application written in C#, and It works fine when I use the ASP.NET development server (Local machine).

    But when I run the this code in Local host ( I upload it to my webserver ) ,asp.net know its Functions, but dont return anything or return wrong output adn return true output for sometimes.

    Can it be something with the security rights the IIS has? or Web.config? or my way to Import?

    Wednesday, May 29, 2013 10:13 AM

Answers

  • User454447048 posted

    it's permission issue, it was fixed by adding configration settings into web.config file as following:

    <identity impersonate="true" userName="lcadmin" password="123" />

    I created a new user account in administrators group on the server, named it as lcadmin, and put it in this setting, then it works.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 31, 2013 2:14 AM

All replies

  • User197322208 posted

    but dont return anything or return wrong output adn return true output for sometimes.

    So it works - kind of. Please show a simple method that returns true when it want to return false.

    Wednesday, May 29, 2013 3:29 PM
  • User454447048 posted

    it's permission issue, it was fixed by adding configration settings into web.config file as following:

    <identity impersonate="true" userName="lcadmin" password="123" />

    I created a new user account in administrators group on the server, named it as lcadmin, and put it in this setting, then it works.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 31, 2013 2:14 AM