I created a COM interop class library that I want to call from classic ASP. The class library is actually a wrapper for a .NET assembly log4net, it has a Guid and ClassInterfaceType.None. I generate a strong name for it using sn -k and I make it a signed
assembly before building it
I put it on a server running windows server 2003. It is placed in a directory where the Internet Guest Account, IUSR_machinename has full control.
In IIS the execute permissions is set to scripts only. The ASP .NET version is 1.1.4322.
I call regasm on it in the c:\windows\microsoft.net\framework\v1.1.4322\regasm
The types are registered correctly, now I created a test web page that does
Set Obj = Server.CreateObject("ClassLibrary1.Class1")
When I hit that web page I get the error
Server object error 'ASP 0177 : 80070002'
Server.CreateObject Failed
so I regasm it using /codebase flag and try again
regasm mylib.dll /codebase
This time when I hit the page I get the error
Server object error 'ASP 0177 : 8000ffff'
Server.CreateObject Failed
I have been able to get it to run before, but after some time it just starts to fail. Any have any ideas?
Did you ever resolve this? I am having the sample problem, it worked when I first developed it, then I built the dll again and now it gives the error, its almost as if the registry is messed up?
I have managed to get it working. Although some steps I did may be omitted to get it to work, here is what I did.
1. I did a regasm /unregister on the dll but it seemed that entries still existed in the registry. So I used regedit and I removed all the entries to the GUID and progID in the registry.
2. I rebuilt the dll using a different progID, strong name key file, and GUID.
3. I copied it onto the machine and did regasm /codebase on it.
4. I added the assembly and the assembly it was dependant upon, the log4net assembly, to the global assembly cache. I did it using the Microsoft .NET Framework Configuration in Administrative Tools. You can also do it using gacutil -i command.
5. I rebooted the computer.
I think the key steps for me to get it working was adding it to the global assembly cache then rebooting the computer. All the errors seemed to have gone away after the reboot. After I rebuilt the dll under a different progID I never went back to the old
dll.
Hi, I found another workaround for this problem because uninstalling KB937143 seems not to be a good idea since it is a security patch:
"Give the IUSR (or whoever your site is running as) read access to HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones - this key might change depending on who your app pool is running as (default is Network Service [aka
S-1-5-20])"
Taken from : http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=294241
Hi, I did above mentioned changes and it worked for 20 days on production, this problem is intermittent, sometimes comes and crashes IIS and sometimes it comes with few users then disappears automatically. I
tried to see http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=294241Where
one guy saying that there is now a hotfix available (KB945701). Further I Google on web and foundhttp://support.microsoft.com/kb/945701
where I’m unable to get hotfix download for windows server 2003 E.E. On this site the link is incorrect and following me to an advance search page where there is no way to get this hotfix for windows server 2003, only xp and vista downloads are available from
the top link on this page. I would like if someone faced this issue and has any idea how to get this hotfix? One another problem is that the hotfix updates urlmon.dll with latest version. On this same page its written that
The hotfix that is described in this article is included in security update 950759 (MS08-031). When I saw this security update it has urlmon older version after apply 950759. This
is creating inconsistency. Please have a look on this too.http://support.microsoft.com/kb/945701
File name
File version
File size
Date
Time
Platform
Urlmon.dll
7.0.6000.20733
1,162,752
06-Dec-2007
19:32
x86
The version of urlmon.dll on my server is :C:\Windows\system32\urlmon.dll
7.0.6000.16762
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
minhau
2 Posts
Help! Server object error 'ASP 0177 : 8000ffff'
Aug 22, 2007 07:51 PM|LINK
I created a COM interop class library that I want to call from classic ASP. The class library is actually a wrapper for a .NET assembly log4net, it has a Guid and ClassInterfaceType.None. I generate a strong name for it using sn -k and I make it a signed assembly before building it
I put it on a server running windows server 2003. It is placed in a directory where the Internet Guest Account, IUSR_machinename has full control.
In IIS the execute permissions is set to scripts only. The ASP .NET version is 1.1.4322.
I call regasm on it in the c:\windows\microsoft.net\framework\v1.1.4322\regasm
The types are registered correctly, now I created a test web page that does
Set Obj = Server.CreateObject("ClassLibrary1.Class1")
When I hit that web page I get the error
Server object error 'ASP 0177 : 80070002'
Server.CreateObject Failed
so I regasm it using /codebase flag and try again
regasm mylib.dll /codebase
This time when I hit the page I get the error
Server object error 'ASP 0177 : 8000ffff'
Server.CreateObject Failed
I have been able to get it to run before, but after some time it just starts to fail. Any have any ideas?
jeff@zina.co...
3379 Posts
MVP
Moderator
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Aug 23, 2007 01:21 PM|LINK
A quick search of the forums came up with:
http://forums.iis.net/t/1031422.aspx
Jeff
garrylindsay
1 Post
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Aug 30, 2007 04:39 PM|LINK
Did you ever resolve this? I am having the sample problem, it worked when I first developed it, then I built the dll again and now it gives the error, its almost as if the registry is messed up?
Cheers
Garry
minhau
2 Posts
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Aug 30, 2007 04:59 PM|LINK
I have managed to get it working. Although some steps I did may be omitted to get it to work, here is what I did.
1. I did a regasm /unregister on the dll but it seemed that entries still existed in the registry. So I used regedit and I removed all the entries to the GUID and progID in the registry.
2. I rebuilt the dll using a different progID, strong name key file, and GUID.
3. I copied it onto the machine and did regasm /codebase on it.
4. I added the assembly and the assembly it was dependant upon, the log4net assembly, to the global assembly cache. I did it using the Microsoft .NET Framework Configuration in Administrative Tools. You can also do it using gacutil -i command.
5. I rebooted the computer.
I think the key steps for me to get it working was adding it to the global assembly cache then rebooting the computer. All the errors seemed to have gone away after the reboot. After I rebuilt the dll under a different progID I never went back to the old dll.
juanitosan
2 Posts
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Sep 25, 2007 02:15 PM|LINK
Hi guys, I finally solved the problem. It is an issue more or less documented by Microsoft in the following links:
http://www.microsoft.com/technet/security/bulletin/ms07-045.mspx
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=294241
http://support.microsoft.com/kb/937143
The problem is an automatic update from IE7, specifically 937143. Just uninstall this update and voila!.
Good luck.
spiderroll
1 Post
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Jan 26, 2008 07:54 PM|LINK
Thanks, Minhau.
Your post sent me to the right direction. For me, it worked for me after I did only steps 1, 2, and 3.
juanitosan
2 Posts
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Feb 28, 2008 02:06 PM|LINK
Hi, I found another workaround for this problem because uninstalling KB937143 seems not to be a good idea since it is a security patch:
"Give the IUSR (or whoever your site is running as) read access to HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones - this key might change depending on who your app pool is running as (default is Network Service [aka S-1-5-20])"
Taken from : http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=294241
It works fine.
shamshad.ali...
4 Posts
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Feb 10, 2009 09:25 AM|LINK
File name
Whether it is correct or not. Please verify.
lprete
164 Posts
Microsoft
Moderator
Re: Help! Server object error 'ASP 0177 : 8000ffff'
Feb 16, 2009 12:49 PM|LINK
KB950759 replaces KB945701.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.