16,016,570 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by YorkshireCap (Top 16 by date)
YorkshireCap
22-Nov-20 16:15pm
View
This was the best solution. Running a repair of VS2008 from Control Panel>Programs & Features in Windows 10 failed. So I installed VS2019 community and that fixed it. The install probably sets up the complex permissions between classes, users and brokers etc.
Now my VS2008 files activate the IDE correctly again.
(& I may as well get familiar with VS2019 as well)
YorkshireCap
21-Nov-20 18:42pm
View
AH- I just checked my system event log and it shows this event every time I try to double-click the sln file:
Log Name: System
Source: Microsoft-Windows-DistributedCOM
Date: 20/11/2020 5:21:09 PM
Event ID: 10016
Task Category: None
Level: Warning
Keywords: Classic
User: PCName\me
Computer: PCName
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}
and APPID
{15C20B67-12E7-4BB6-92BB-7AFF07997402}
to the user PCName\ME SID (S-1-5-21-1570163575-2327016866-318336090-1001) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.
Event Xml:
<event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<system>
<provider name="Microsoft-Windows-DistributedCOM" guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" eventsourcename="DCOM">
<eventid qualifiers="0">10016
<version>0
<level>3
<task>0
<opcode>0
<keywords>0x8080000000000000
<timecreated systemtime="2020-11-20T23:21:09.9347628Z">
<eventrecordid>1410
<correlation activityid="{b1273329-5655-48b9-862e-74c6a993d7e9}">
<execution processid="600" threadid="11960">
<channel>System
<computer>PCName
<security userid="S-1-5-21-1570163575-2327016866-318336090-1001">
<eventdata>
application-specific
Local
Activation
{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}
{15C20B67-12E7-4BB6-92BB-7AFF07997402}
PCName
ME
S-1-5-21-1570163575-2327016866-318336090-1001
LocalHost (Using LRPC)
Unavailable
Unavailable
SO, it's a permissions problem, caused by Windows 10 presumably. I suppose Win10 has more security than win7 so it causes more problems for developers.
I tried a method on the web for adding Local permissions to the class ID and appid and the service component but that didn't work SO... I'll try VS2019 Community and try the licence in MS account, as you said. Thank you.
YorkshireCap
20-Nov-20 18:57pm
View
Ah- that's interesting. I usually never use my Microsoft account( I don't like being logged into anybody's servers, because they track you everywhere).
YorkshireCap
20-Nov-20 15:31pm
View
Thanks Jo_vb.net, I have tried this but it is already set to the Microsoft Visual Studio Version Selector, as it normally is. I wonder about the free community 2019. I tried a few free versions last year but they refused to work- kept asking for a licence key. I am wary about changing my VS setup which has worked fine for a few years now. I don't like to mess with things that work- it usually goes wrong.
This does at least function if I open VS first then select the file. Also, in my old Windows 7 system it was working just fine, so I could always revert back to that if anything else is a problem. Windows 7 was working just fine; I really don't know why MS changed.
This is why I didn't try upgrading to Windows 10 until now- there are always programs that don't work; drivers that are unavailable, hardware not supported anymore etc.
I've been through it before, when finally moving up to Win XP from W2000, then to Win 7 once the previous version were beginning to be not supported anymore.
I might give the free 2019 a try on a friends laptop to see if it works. I just wonder what the limitations are compared to my full VS2008.
YorkshireCap
20-Nov-20 15:20pm
View
Thanks Sandeep- I have just tried that, but alas, the file still will not double-click open. So I'll see if the VS2008 entry in the apps list allows a repair before I try reinstalling.
YorkshireCap
4-Nov-20 18:35pm
View
Aha! Yes, it now runs beautifully. Many thanks, Henry Z, for taking an interest and getting me on my way. I am learning the settings right now and should be able to add this to my simulator project.
By the way, can you share with me what the problem was? Was it a dependency or something else?
YorkshireCap
3-Nov-20 14:55pm
View
Hi Henry Z. Great- thank you. https://www.dropbox.com/request/x5HjENWmAfzl5i9RdyjT
YorkshireCap
1-Nov-20 17:42pm
View
Deleted
Deleted comment
YorkshireCap
1-Nov-20 17:37pm
View
Wow- Thank you so much for doing that.
RCVD- Thank You- Will try tomorrow.
Ok, its tomorrow and the DLL drags into the VS2008 toolbox easily -well done.
Unfortunately, when I try to run, even just with an instance of the control on the form and no changes, I get an exception:---------------------------
System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'AGauge, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
Source="Agauge test1"
StackTrace:
at Agauge_test1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at Agauge_test1.My.MyProject.MyForms.get_Form1()
at Agauge_test1.My.MyApplication.OnCreateMainForm() in C:\Users\Username\Documents\Visual Studio 2008\Projects\Agauge test1\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Agauge_test1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.FileNotFoundException
Message="Could not load file or assembly 'AGauge, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
Source="Agauge test1"
FileName="AGauge, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = PCname\\Username\r\nLOG: DisplayName = AGauge, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Users/Username/Documents/Visual Studio 2008/Projects/Agauge test1/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : Agauge test1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: No application configuration file found.\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nLOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).\r\nLOG: Attempting download of new URL file:///C:/Users/Username/Documents/Visual Studio 2008/Projects/Agauge test1/bin/Debug/AGauge.DLL.\r\nLOG: Attempting download of new URL file:///C:/Users/Username/Documents/Visual Studio 2008/Projects/Agauge test1/bin/Debug/AGauge/AGauge.DLL.\r\nLOG: Attempting download of new URL file:///C:/Users/Username/Documents/Visual Studio 2008/Projects/Agauge test1/bin/Debug/AGauge.EXE.\r\nLOG: Attempting download of new URL file:///C:/Users/Username/Documents/Visual Studio 2008/Projects/Agauge test1/bin/Debug/AGauge/AGauge.EXE.\r\n"
StackTrace:
at Agauge_test1.Form1.InitializeComponent()
at Agauge_test1.Form1..ctor()
InnerException:
I am going to look at the message later to see if I can learn anything from it. It almost looks like it could be looking for a dependency?
YorkshireCap
31-Oct-20 11:46am
View
I stand enlightened, thank you Henry Z. :)
It's good that I understand what's happening now- I just looked at the article and its date was 2012- so that fits in with needing VS2012; I just didn't realise it.
Sadly I can't use framework 4.5 in vs2008, so I'm out of luck. Can't afford to keep upgrading VS any more- well, not the full version, anyway.
I just thought about using the source code and seeing if I could compile it with my VS2008; haven't compiled a dll since VB6 but should be able to figure it out. Mind you, now that I think of it, the code used is probably related to the framework version, so maybe that will not work.
Otherwise, I just cannot use A.J. Bauers control. I'll have to keep looking.
Thank you again for finding the explanation of what is going on.
YorkshireCap
30-Oct-20 23:39pm
View
yes, https://www.codeproject.com/Articles/448562/An-Improved-Version-of-AGauge-A-fast-and-performin#_articleTop
YorkshireCap
30-Oct-20 17:57pm
View
Hmm, I just tried dragging the dll name from the solution explorer window to the toolbox and it appears there, but only as a text file object.
I also right-clicked on the dll in the solution explorer and selected "Open with... object explorer". The name and properties of the control are then listed, but still,I cannot get the proper control into the toolbox so that i can drag one onto a form.
YorkshireCap
30-Oct-20 16:24pm
View
Henry Z. I followed that idea and although it still will not add as a reference or into the toolbox, I tried something new: I dragged the dll into the solution explorer and when I was on top of the project name a plus sign appeared, so I dropped it and now the dll appears under the project files in the solution explorer. However, I still do not see it in the toolbox so I cannot use it.
Is there something I don't know here? Surely a .Net control is a .Net control, so even if this is built in C# it is now a compiled dll designed for .Net so I should be able to use it in the VB.net toolbox and drag the control onto my form?
YorkshireCap
30-Oct-20 16:04pm
View
ok thanks- I added that note/link about the control's own question page to my original post here and deleted the note above.
I am used to other forums, where you "reply" to posts, but here it seems you can only accept a solution or use"Permalink" (whatever that is).
Once a comment has been posted I see you can reply to the comments.
YorkshireCap
28-Oct-20 18:22pm
View
Thank you Henry Z. I have Windows 7 but it was certainly blocked as you suggested, so I unblocked the original zip file then extracted again and tried to add it. Drat- still won't drag in or have a reference added. The reference list still shows "the system cannot find the reference specified".
I also just tried to download the older, original Agauge control, but the web page can no longer be found.
Wow, I only wanted to try and replace my simulator's digit RPM display with a proper dial tachometer. The web page description sounded like it would be easy :)
YorkshireCap
26-Oct-20 18:54pm
View
Thanks Original Griff, that's a different method so I have tried that. Unfortunately it did not work...
I right-clicked on the project in solution explorer, selected "Add Reference...", selected the "Browse" tab, selected the Agauge dll and clicked "OK".
It didn't work so I used your link to download the AGauge_Bin.zip (DLL and Demo) once more, to my "C:\Program Files (x86)\Microsoft Visual Studio 9.0\AGauge_Control-CustomControl" folder.
Then I tried adding the reference again, but unfortunately that didn't work; nothing showed up in the solution explorer. Looking in the project references list, I see the reference title "Agauge", but the path says 'the system cannot find the reference specified'.
Has this tool been successfully added by anyone else? I don't understand why it will not add to my vs2008
Show More