1

Topic: Difference between debugging and IIS

All greetings. Is asp.net web site (.net 4.6.2 (tried and on earlier versions), a classical site with default.aspx). It uses reference on certain with ++ library (on , made the developer) which is registered as COM and gives certain api as COM classes. If I  a site in local iis all works without problems when I start to use a site functional. But if I try to launch a site in  or in iis express I receive an error "class not registered" as soon as I try to create the first copy of object COM of a class from the library described above. MS Windows Server 2012 R2, VS 2015, studio I launch from under the administrator. I ask to help with problem determination since itself not a web the developer and this "kitchen" I know badly.

2

Re: Difference between debugging and IIS

Hello, Sarevok, you wrote: S> Is asp.net web site (.net 4.6.2 (tried and on earlier versions), a classical site with default.aspx). It uses reference on certain with ++ library (on , made the developer) which is registered as COM and gives certain api as COM classes. S> if I  a site in local iis all works without problems when I start to use a site functional. But if I try to launch a site in  or in iis express I receive an error "class not registered" as soon as I try to create the first copy of object COM of a class from the library described above. MS Windows Server 2012 R2, VS 2015, studio I launch from under the administrator. I suspect, what  - 32? And  on  in x64 In pool adjustments in IIS there is an option "Enable 32 bit aplications" which translates this pool in 32 a mode.

3

Re: Difference between debugging and IIS

Hello, fmiracle, you wrote: F> Hello, Sarevok, you wrote: S>> Is asp.net web site (.net 4.6.2 (tried and on earlier versions), a classical site with default.aspx). It uses reference on certain with ++ library (on , made the developer) which is registered as COM and gives certain api as COM classes. S>> if I  a site in local iis all works without problems when I start to use a site functional. But if I try to launch a site in  or in iis express I receive an error "class not registered" as soon as I try to create the first copy of object COM of a class from the library described above. MS Windows Server 2012 R2, VS 2015, studio I launch from under the administrator. F> I suspect, what  - 32? F> And  on  in x64 F> In pool adjustments in IIS there is an option "Enable 32 bit aplications" which translates this pool in 32 a mode.  it is collected independent from , i.e. approaches for 64 bits and for 32. The software with which is delivered library 64-bit. I do not think that in it business, since "If I  a site in local iis all works without problems". I.e.  works and it is registered, I for some reason from under studio cannot create a class copy.

4

Re: Difference between debugging and IIS

Hello, Sarevok, you wrote: S> Is asp.net web site (.net 4.6.2 (tried and on earlier versions), a classical site with default.aspx). It uses reference on certain with ++ library (on , made the developer) which is registered as COM and gives certain api as COM classes. S> if I  a site in local iis all works without problems when I start to use a site functional. But if I try to launch a site in  or in iis express I receive an error "class not registered" as soon as I try to create the first copy of object COM of a class from the library described above. MS Windows Server 2012 R2, VS 2015, studio I launch from under the administrator. 1) look in the register as the COM object is registered. Probably that it  only for the specific user under whom pool IIS is twisted. 2) check up NTFS the rights on dll' the COM-server.

5

Re: Difference between debugging and IIS

Hello, Sarevok, you wrote: S> Interop is collected independent from , i.e. approaches for 64 bits and for 32. The software with which is delivered library 64-bit. A question in how the COM class is registered (as 32 bit, as 64-bit or and and so). Besides, in the register it is necessary to look.

6

Re: Difference between debugging and IIS

Hello, Lexey, you wrote: L> Hello, Sarevok, you wrote: S>> Is asp.net web site (.net 4.6.2 (tried and on earlier versions), a classical site with default.aspx). It uses reference on certain with ++ library (on , made the developer) which is registered as COM and gives certain api as COM classes. S>> if I  a site in local iis all works without problems when I start to use a site functional. But if I try to launch a site in  or in iis express I receive an error "class not registered" as soon as I try to create the first copy of object COM of a class from the library described above. MS Windows Server 2012 R2, VS 2015, studio I launch from under the administrator. L> 1) look in the register as the COM object is registered. Probably that it  only for the specific user under whom pool IIS is twisted. L> 2) check up NTFS the rights on dll' the COM-server. 1) Look in the register as the COM object is registered. Probably that it  only for the specific user under whom pool IIS is twisted. You how  becomes could not tell? I do not see any convergence on users at  class COMAS.

7

Re: Difference between debugging and IIS

Hello, Sarevok, you wrote: L> 1) Look in the register as the COM object is registered. Probably that it  only for the specific user under whom pool IIS is twisted. S> you how  becomes could not tell? I do not see any convergence on users at  class COMAS. You do search on CLSID or ProgID in HKLM\Software\Classes. If is, a class  for all users. If is not, for any selected (for what, it is possible to learn search in HKEY_USERS).

8

Re: Difference between debugging and IIS

Hello, Lexey, you wrote: L> Hello, Sarevok, you wrote: L>> 1) Look in the register as the COM object is registered. Probably that it  only for the specific user under whom pool IIS is twisted. S>> you how  becomes could not tell? I do not see any convergence on users at  class COMAS. L> you do search on CLSID or ProgID in HKLM\Software\Classes. If is, a class  for all users. L> if is not, for any selected (for what, it is possible to learn search in HKEY_USERS). The class is registered. Which that starts to be explained. When I included a daw "use 64 bit version of iis express" at me earned a web a site in iis express in debugging. However I continue to guess, why the simple console application in debugging and does not work without (I remind that classes are registered and in iis local/express all works) and I for some reason cannot  in  to w3wp (writes on , what not   ).?

9

Re: Difference between debugging and IIS

Hello, Sarevok, you wrote: S> Which that starts to be explained. When I included a daw "use 64 bit version of iis express" at me earned a web a site in iis express in debugging. However I continue to guess, why the simple console application in debugging does not work and without (I remind that classes are registered and in iis local/express all works) Prefer 32-bit in project adjustments try to remove. S> and I for some reason cannot  in  to w3wp (writes on , what not   ).? Variants: not to that  w3wp you cling;  not from that version which is used.