![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi... One of my colleagues is have a problem that's driving him crazy. We have a number of assemblies that expose some C# objects as COM. One particular one is throwing an 80131534 error on instantiation from an ASP page. The error message doesn't really say diddly about what it doesn't like, just that it can't make one of those objects. We checked the registry, and it looks like it's registered fine. He made a little vbs script instantiating one of the objects and ran it from cmd, and that worked fine, so it seems like the plumbing is okay in general. But we're at a loss why ASP is having trouble instantiating one of these. Does the old asp engine have a shadow cache somewhere that it could be wedged? Thanks Mark |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Mark, As Phil pointed out, the error is COR_E_TYPEINITIALIZATION, which means a .NET type failed to initialize. You can also try to debug the ASP code: #Mikhail Arkhipov (MSFT)'s WebLog : How to debug classic ASP pages in VS 2005 http://blogs.msdn.com/mikhailarkhipo...24/432308.aspx Regards, Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hi Mark, First, let's confirm some information: * Does this issue occur everytime you try to instantiate the .NET component from ASP or does it occur intermittently? * Which .NET version are you using to compile the .NET component? * I assume you're using IIS 6.0, do you have other websites configured to run in the same application pool as this ASP website? Regards, Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Hi Mark, Here's my understanding and summary of the issue so far: 1) You are running ASP.NET 2.0 on Windows XP 2) You registered .NET 2.0 assembly as COM-visible and it's working correctly if you invoke it using a simple script and execute it using an interactive user account 3) Your ASP script cannot access the COM server and it returns error E_COR_TYPEINITIALIZATION. Please try following tests and let me know the results: * Try to create a new and simple class library in .NET 2.0 and register as COM-visible and have a test in the ASP script; if this works, it proves the issue is related to your specific assemblies * Try to configure your IIS worker process to run under the user account that you were using to log in interactively, this might prove if it's related to the user account or permission. Regards, Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
#10
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |