473,239 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

COM Interop registration failed. Access is denied???

Hello

Thanks for reviewing my question. I am writing a shared Office AddIn that uses a couple of user controls on a form and from time to time I receive this error "COM Interop registration failed. Access is denied." The only way I have found around this is exit VS.NET and restart it. When debugging, I have VS.NET launch Excel in order to load my shared AddIn. Any clues what is causing this? Is Excel not shutdown

Many Thank
Peter
Nov 15 '05 #1
2 4597
Peter,
I had the exact same problem. Everything I read on the internet did not
help. My problem ended up being Sophos Anti-Virus. I turned it off and
everything was good in Mayberry again. HTH

--
Jason Newell
Software Engineer
The Charles Machine Works, Inc.
"Peter" <an*******@discussions.microsoft.com> wrote in message
news:81**********************************@microsof t.com...
Hello,

Thanks for reviewing my question. I am writing a shared Office AddIn that uses a couple of user controls on a form and from time to time I receive
this error "COM Interop registration failed. Access is denied." The only
way I have found around this is exit VS.NET and restart it. When debugging,
I have VS.NET launch Excel in order to load my shared AddIn. Any clues what
is causing this? Is Excel not shutdown.
Many Thanks
Peter

Nov 15 '05 #2
The Access Is Denied message is when the Interop Assembly is in use (or
could be if marked read-only but since it works when you get out it can't be
this). When do you receive this message? What are you doing when it happens?
It sounds like you are using VS.NET to create the RCW/Interop assembly for
Excel. If so, Excel can't be running when you try to create the IA as the
DLL will be in use. I'm not sure but I need to know more about what you are
doing to help you.

--
-----
Sam Gentile
Microsoft MVP - C#/.NET
..NET Blog http://samgentile.com/blog/

Please do NOT contact me directly but respond to
the newsgroup instead.
---------
"Peter" <an*******@discussions.microsoft.com> wrote in message
news:81**********************************@microsof t.com...
Hello,

Thanks for reviewing my question. I am writing a shared Office AddIn that
uses a couple of user controls on a form and from time to time I receive
this error "COM Interop registration failed. Access is denied." The only
way I have found around this is exit VS.NET and restart it. When
debugging, I have VS.NET launch Excel in order to load my shared AddIn.
Any clues what is causing this? Is Excel not shutdown.

Many Thanks
Peter

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Johan Henningsson | last post by:
Hello, when I try to compile .net projects that is using interop then they fail. I get this error: "COM Interop registration failed. Could not load the assembly to be registered." What can...
0
by: Janus Kamp Hansen | last post by:
I have had this error: 'COM Interop registration failed. Type library exporter can not load required library MSCOREE.TLB.' I have found a solution, by using the Regmon tool...
5
by: Eric St-Onge | last post by:
Hi all, I have a C# DLL containing only interfaces that I want to have a TLB (type library) generated for. For that I use the "Register for COM Interop" compiler option but it gives me the...
0
by: Mark | last post by:
I have created a library that exposes classes to COM clients using the attribute . My library references 2 other libraries, lib1 and lib2, both of which are created by other developers on my...
4
by: Robert | last post by:
I have created a .dll in C# which has a reference to Excel. When I add a strong name to the .dll in the AssemblyInfo.cs and try to rebuild, I get the following error: Assembly generation failed...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
2
by: Alex D. | last post by:
Hi .I cant seem to find a way to authorize asp.net user to create an Excel application using this: Microsoft.Office.Interop.Excel.ApplicationClass excel = new...
0
by: zoneal | last post by:
I am having two problems concerning COM Interop Registration: While building a project (COM DLL) that has reference to other DLL project (not COM). I getting this error: COM Interop...
2
by: sanjay1983 | last post by:
Hi Everyone, I am stuck to access file properties using 'Interop.dsofile.dll'. I dont want registration of this assembly in system registry. I am using reflection to achive this, but at the time...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.