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?
Member
1 Points
8 Posts
DLL does not work on IIS webserver
May 29, 2013 10:13 AM|Bowen Lee|LINK
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?
DLL asp.net iis asp.netdevelopmentserver
All-Star
120146 Points
27989 Posts
Moderator
MVP
Re: DLL does not work on IIS webserver
May 29, 2013 03:29 PM|ignatandrei|LINK
So it works - kind of. Please show a simple method that returns true when it want to return false.
DLL asp.net iis asp.netdevelopmentserver
Member
1 Points
8 Posts
Re: DLL does not work on IIS webserver
May 31, 2013 02:14 AM|Bowen Lee|LINK
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.
DLL asp.net iis asp.netdevelopmentserver