<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'dll'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=dll&amp;orTags=0</link><description>Search results matching tag 'dll'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: DLLImport doesn't work with Web Service</title><link>http://forums.iis.net/p/1161507/1922138.aspx#1922138</link><pubDate>Mon, 26 Oct 2009 09:19:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922138</guid><dc:creator>Superkew</dc:creator><cs:applicationKey>troubleshooting--1</cs:applicationKey><description>I have come to a solution. In the end it was mostly a permissions issue.

The 4 dlls also use a file called system.dna which seems to act as a config file, but more advanced. When the dlls load correctly the system doesn&amp;#39;t access them at all, only the system.dna.

I know this sounds strange.... but it seems as though the dlls get loaded into it.

To solve this problem I first created a new application pool in IIS, and set it to the local sytem account. I set the website to run in the admin account of the machine and then presto!

My website needs to access network resources, so I created a user account with in the following groups:
Administrators, IIS_WPG, Users. Then I used that user for the app pool and the website. It all works now...

I noticed that the user needs permission on some files in the TEMP dir, in the .NET cache dir and then also in the IIS folder in system32.

I hope this helps anyone else who comes along this issue.</description></item><item><title>Re: import dll file does not work  on 2003 IIS 6.0</title><link>http://forums.iis.net/p/1161911/1921484.aspx#1921484</link><pubDate>Wed, 21 Oct 2009 03:43:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921484</guid><dc:creator>foan</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;[quote user=&amp;quot;lextm&amp;quot;] 
&lt;p&gt;So you have changed the pool identity from NetworkService to LocalSystem on IIS 6? Changing to NetworkService I think is not enough.&lt;/p&gt;
&lt;p&gt;This is not a thread limit, but a .NET security topic,&lt;/p&gt;
&lt;p&gt;http://msdn.microsoft.com/en-us/library/5ba4k1c5.aspx&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;dear lextm , i had change NetworkService to LocalSystem, &lt;/p&gt;
&lt;p&gt;Dll seems had be exec, but don&amp;#39;t do correct action , &lt;/p&gt;
&lt;p&gt;is any limit for socket ? i had close firewall too.&lt;/p&gt;
&lt;p&gt;but packet is not send for my expected.&lt;/p&gt;</description></item><item><title>COM+ DLL loses ASPTypeLibrary function when moved to server</title><link>http://forums.iis.net/p/1159298/1910546.aspx#1910546</link><pubDate>Thu, 16 Jul 2009 14:58:08 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910546</guid><dc:creator>dcwebman</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;We have multiple web servers running Windows Server 2003 with IIS 6. ASP pages call COM+ VB6 DLL&amp;#39;s which in turn call SQL database stored procedures. The DLL&amp;#39;s had to be changed because IIS had to be changed from Windows authentication to Anonymous. Since the DLL&amp;#39;s were expecting the Windows authentication they didn&amp;#39;t work so they had to be changed to use ASPTypeLibrary to get values from session variables. Works great and we put them on our test server and everything tested fine. No changes were necessary for the server.&lt;br /&gt;&lt;br /&gt;We then moved them to our staging server and suddenly ASPTypeLibrary doesn&amp;#39;t work on that server as nothing comes back from the session variables. The servers were built identically and we have checked every IIS setting we can think of, the services running seem to be the same, and every comparison we can think of is identical. Obviously the code hasn&amp;#39;t changed so there must be something server related we&amp;#39;re not finding that&amp;#39;s different between the two servers.&lt;/p&gt;&lt;p&gt;To check it out more we put the DLL&amp;#39;s on another server and they worked fine there too. And a dummy DLL was created to try on the production server and it failed there just like the staging server. So we have 2 servers where they work and 2 where they don&amp;#39;t.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;We have been trying for a couple days to resolve this since the latest code was supposed to be released to production already so any help would be greatly appreciated! Thanks!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS7 with unmanaged code ???</title><link>http://forums.iis.net/p/1159007/1909311.aspx#1909311</link><pubDate>Mon, 06 Jul 2009 16:09:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909311</guid><dc:creator>Jano42</dc:creator><cs:applicationKey>iis_7_-_troubleshooting-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve got an IIS v6 (Windows Server 2003) web site which uses some old DLL written with unmanaged code. (Aspx, C# using System.Runtime.InteropService to call unmanaged dll)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But I&amp;#39;ve bought a new Windows Server 2008 with IIS7 and call to unmanaged DLL is not working.&lt;/p&gt;&lt;p&gt;In fact my C# code call an unmanaged DLL but the code never ends. It&amp;#39;s entering in DLL code (all is working until the &amp;lt;return&amp;gt; instruction, but it does not return to C# !!).&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried to configure the application pool (classic mode), the web site properties... but to hard for me.At a time I got the error &amp;quot;IIS Worker Thread stop working&amp;quot;!&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;A sample:&lt;/p&gt;&lt;p&gt;ASPX&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot;&amp;nbsp; CodeFile=&amp;quot;Default.aspx.cs&amp;quot; Inherits=&amp;quot;_Default&amp;quot; %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Table runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:TableRow&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:TableCell&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&amp;quot;Button1&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Button&amp;quot; onclick=&amp;quot;Button1_Click&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:TableCell&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:TableRow&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:Table&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;CS&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Runtime.InteropServices;&lt;br /&gt;&lt;br /&gt;public partial class _Default : System.Web.UI.Page &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DllImport(&amp;quot;user32.dll&amp;quot;)]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static extern int MessageBoxA(int hWnd, string title, string msg, int type);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBoxA(0, &amp;quot;Hello world !!&amp;quot;, &amp;quot;Hello world !!&amp;quot;, 0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;With IIS6, when the button is clicked a message box is displayed. With IIS7 nothing is displayed !&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any idea ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for help ! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Moving a old 32-bit ISAPI DLL to 64-bit</title><link>http://forums.iis.net/p/1156550/1899150.aspx#1899150</link><pubDate>Thu, 02 Apr 2009 17:10:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1899150</guid><dc:creator>marcoshaw</dc:creator><cs:applicationKey>iis_7_-_troubleshooting-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;m going to be working with someone who has a 32-bit ISAPI DLL (apparently written in .NET 1.1, and not sure if it is coming from Server 2000 or 2003).&lt;/p&gt;
&lt;p&gt;They got a brand new Server 2008 64-bit system, and have tried using the same ISAPI DLL on the new platform.&lt;/p&gt;
&lt;p&gt;Unfortunately, the performance of their application (using the ISAPI DLL) has gone from a response time in the 20 ms range (on the old platform) to now being about 3 secs (on the new system), and that is a big issue for them.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t seen the source for the DLL yet (and not even sure they still have it), but&amp;nbsp;does anyone have any troubleshooting tips they can pass along?&lt;/p&gt;</description></item><item><title>Using Win32 DLL Under IIS6</title><link>http://forums.iis.net/p/1154218/1889471.aspx#1889471</link><pubDate>Fri, 09 Jan 2009 04:42:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889471</guid><dc:creator>AliMagic</dc:creator><cs:applicationKey>configuration__scripting--1</cs:applicationKey><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I Want Use Custom Win32 DLL That Use For Socket Programming.&lt;/p&gt;&lt;p&gt;How Can I Configure The IIS 6 ? &amp;quot; I Used ASP.net 2 Using C#&amp;quot;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Another Question is How Can I Allow a Webhost To Run Exe Files ?&lt;/p&gt;&lt;p&gt;Best Regards &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Consume .Net Webserive with ASP - Problem creating .net object.</title><link>http://forums.iis.net/p/1153533/1886632.aspx#1886632</link><pubDate>Wed, 03 Dec 2008 12:54:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1886632</guid><dc:creator>miketremp</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to consume a .net webserivce from a classic asp page. I followed this guide:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span class="477025713-01122008"&gt;&lt;font face="Arial" color="#0000ff" size="2"&gt;&lt;a title="http://www.codeproject.com/KB/dotnet/dotnetcomponentandasp.aspx" href="http://www.codeproject.com/KB/dotnet/dotnetcomponentandasp.aspx"&gt;http://www.codeproject.com/KB/dotnet/dotnetcomponentandasp.aspx&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have a .net class which is a proxy class generated from the webservice&amp;#39;s wdsl, I marked the assembly to be COM-visible and registered it on my IIS server with regasm. &lt;/p&gt;
&lt;p&gt;So far, so good - &amp;nbsp;I can create the object on the asp page like this:&lt;/p&gt;
&lt;p&gt;Dim Obj&lt;br /&gt;Set Obj = Server.CreateObject(&amp;quot;Namespace.testClass&amp;quot;)&lt;/p&gt;
&lt;p&gt;the testClass looks like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class testClass {&amp;nbsp;... }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now&amp;nbsp;this was just for testing, now I want to create an object, whose class looks like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class testClass2 : Microsoft.Web.Services3.WebServicesClientProtocol { ... }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And then I get an asp error (&amp;#39;ASP 0177 : 80131509&amp;#39;), obviously because Microsoft.Web.Services3.WebServicesClientProtocol (which is contained in Microsoft.Web.Services3.dll) cannot be found/referenced/whatever the correct term is.&lt;/p&gt;
&lt;p&gt;Microsoft.Web.Services3.dll is referenced correctly in the Visual Studio project and it is also in the GAC of the server. Now how do I make that library available to asp? &lt;/p&gt;
&lt;p&gt;I&amp;#39;d be grateful for any help. Thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>AspMail</title><link>http://forums.iis.net/p/1152382/1882019.aspx#1882019</link><pubDate>Tue, 14 Oct 2008 17:13:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882019</guid><dc:creator>karrijo</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;Is anybody running AspMail from ServerObjects.com (reg,net)?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I have a simple question? Does AspMail run on Windows Server 2003 and 2008?&lt;/p&gt;
&lt;p&gt;We are upgrading our server and have lots of applications that use AspMail for tracking and approval purposes. &lt;/p&gt;</description></item><item><title>Re: Debug VB 6 COM component calling from classic ASP in Windows 2003</title><link>http://forums.iis.net/p/1146326/1856507.aspx#1856507</link><pubDate>Thu, 20 Sep 2007 11:42:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1856507</guid><dc:creator>Nainoo</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;Hi, I’m very glad. I have actually managed to solve this issue. Basically, it was related to some sort of access permission as guessed earlier.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have resolved it by giving &lt;strong&gt;Internet Guest Account&lt;/strong&gt; (&lt;em&gt;MachineName\IUSR_MachineName&lt;/em&gt;) &lt;u&gt;Access Permissions&lt;/u&gt; and &lt;u&gt;Launch and Activation Permissions&lt;/u&gt; to this user by using MMC and going to Component Services -&amp;gt; Computers -&amp;gt; My Computer Properties -&amp;gt; COM Security tab.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Error creating object in global.asa On_ApplicationStart</title><link>http://forums.iis.net/p/1121828/1753520.aspx#1753520</link><pubDate>Wed, 13 Jun 2007 19:39:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1753520</guid><dc:creator>thecubanp</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;one problem wich might be caused by another problem not DIRECTLY related to IIS.&lt;/p&gt;
&lt;p&gt;I have a DLL (foxpro) that i already registered in my server using regsrv32. BUT when i go to Component Services i can&amp;#39;t find IIS In-Process .... where i used to add the registered in&amp;nbsp;windows2000 (I am currently working on 2003). That&amp;#39;s my first problem. Now, assuming that in this new version of windows 2003 is not necessary that IIS In-Process&amp;nbsp;registration, i register only my dll using regsrv32... &lt;/p&gt;
&lt;p&gt;When i run my application (Classic ASP)&amp;nbsp;i get the following error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;error &amp;#39;80004005&amp;#39; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font face="Arial" size="2"&gt;/LM/W3SVC/1/Root/falcon/global.asa&lt;/font&gt;&lt;font face="Arial" size="2"&gt;, line 4&lt;/font&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is the global.asa file&lt;/p&gt;
&lt;p&gt;&amp;lt;SCRIPT LANGUAGE=&amp;quot;VBScript&amp;quot; RUNAT=&amp;quot;Server&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;Sub Application_OnStart&lt;br /&gt;&lt;strong&gt;&amp;nbsp; Set Rater = CreateObject(&amp;quot;falcon.cmpratcnv&amp;quot;)&lt;/strong&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp; Set Application(&amp;quot;Rater&amp;quot;) = Rater&lt;br /&gt;End Sub&lt;/p&gt;
&lt;p&gt;Sub Session_OnStart()&lt;br /&gt;&amp;nbsp;Session(&amp;quot;Timeout&amp;quot;) = 60&lt;br /&gt;End Sub&lt;/p&gt;
&lt;p&gt;Sub Application_OnEnd&lt;br /&gt;&amp;nbsp; set rater=nothing&lt;br /&gt;End Sub&lt;br /&gt;&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you.&lt;/p&gt;</description></item></channel></rss>