I am using VS2003 to create a C# dll that uses shell namespace extensions.
I need to debug my code but it is running in the explorer.exe process and
when I open my namespace extension from My Computer so its running, then try
to attach to the explorer.exe process with VS2003 I get the message....
"Unable to attach to the process."
Any suggestions are really welcome because I really need to see what is
happening inside my code.
Thanks,
--
Regards,
Phil Johnson (MCAD) 3 2824
Phil,
Why not set up your project so that it runs the explorer.exe process
when debugging? You can set this up on the projects page. This might work
for you.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Phil Johnson" <Ph*********@di scussions.micro soft.comwrote in message
news:5C******** *************** ***********@mic rosoft.com...
>I am using VS2003 to create a C# dll that uses shell namespace extensions.
I need to debug my code but it is running in the explorer.exe process and
when I open my namespace extension from My Computer so its running, then
try
to attach to the explorer.exe process with VS2003 I get the message....
"Unable to attach to the process."
Any suggestions are really welcome because I really need to see what is
happening inside my code.
Thanks,
--
Regards,
Phil Johnson (MCAD)
>I am using VS2003 to create a C# dll that uses shell namespace extensions.
I need to debug my code but it is running in the explorer.exe process and when I open my namespace extension from My Computer so its running, then try to attach to the explorer.exe process with VS2003 I get the message....
It's not recommended to create NSEs (or other components loaded by the
shell) in managed code. Native code is the only way to go.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
I found a solution to my attaching to process problem....
The explorer process will load the com interop layer in the latest version
of .net installed on the machine (in my case 2.0) even though my dll is then
running in version 1.1... so you can't attach the debugger process from VS
2003 onto the 2.0 CLR.
SO, here is how I got around it...
Create a file called explorer.exe.co nfig with settings to use .net 1.1,
Explorer will then run the com interop layer in version 1.1 which is the same
version as my dll and I can debug.
Hope this helps others who experience this problem!
Phil
--
Regards,
Phil Johnson (MCAD)
"Mattias Sjögren" wrote:
>
I am using VS2003 to create a C# dll that uses shell namespace extensions.
I need to debug my code but it is running in the explorer.exe process and
when I open my namespace extension from My Computer so its running, then try
to attach to the explorer.exe process with VS2003 I get the message....
It's not recommended to create NSEs (or other components loaded by the
shell) in managed code. Native code is the only way to go.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ravi |
last post by:
Q1.)In SQL Server 2000, is it always possible to use copies of the
data and transaction log files of a database from one server to
reattach to a new database on another server, or even to the same
server, without first detaching from the existing database?
Books Online says that detaching a database closes the data and log
files cleanly. I read some where that some times, it is possible to
attach without detaching, if the data and log...
|
by: Mark Anderson |
last post by:
Sorry if this is a rookie mistake... I've been through all the FAQs and the
books I have but I can't see the mistake so I guess it's something simple
<g> - I'm an occasional JS user.
I've got some code (in an external JS file) attached to a number of links
off a query result page. The code it checks if there are any ticked items on
the page and adds them to a lightbox (cart) before going the next called
result page. The idea is to stop...
|
by: wschlichtman |
last post by:
In my Windows application, I am attempting to access an SQL database called
PhotoAlbum.mdf. I keep receiving the following error:
Cannot open database "PhotoAlbum" requested by the login. The login failed.
Login failed for user 'William\Will'.
Here is my connection string:
"data source=.\\SQLEXPRESS;initial catalog=PhotoAlbum;" +
"integrated security=SSPI;persist security info=False;" +
|
by: Doug Swanson |
last post by:
I have my project(s) set to Debug mode...asp.net debugging is enabled, I've
re-registered asp_net. This particular solution has an asp.net and an ASP
application in it...I can set breakpoints in the ASP application and the
breakpoints are hit but the breakpoints in the asp.net application are never
hit. This used to work and I'm not sure what happened to cause it to
break....I've read all of the posts/documents that I can find but I...
|
by: Mark Kamoski |
last post by:
Hi--
All of sudden (?) the VS.NET v1 IDE is NOT automatically attaching
aspnet_wp.exe as a debugged process.
Why?
Here is the situation.
VS.NET (v1)
| |
by: ZMan |
last post by:
Scenario:
This is about debugging server side scripts that make calls to
middle-tier business DLLs. The server side scripts are legacy ASP 3.0
pages, and the DLLs are managed DLLs converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
Background:
For typical script debugging issues, you can read and follow the two
documents on...
|
by: Mark Olbert |
last post by:
I've written a custom MembershipProvider and a custom RoleProvider, and am trying to get them to work with the ASP.NET Configuration
tool. Which is a royal pain in the butt, because there doesn't appear to be any way to debug the Configuration tool.
In any event, when I create a new user I get the following error message:
An error was encountered. Please return to the previous page and try again.
The following message may help in...
|
by: subsanta |
last post by:
My computer has so many problems and ive looked around on the internet and ive managed to fix some of them.
I know that i have a few viruses on my computer, but i cant get rid of them, in one case i think i have one on my ipod "boot.exe" and i cant get rid of it. All of the antivirus programs ive tried either dont pick it up or cant scan my ipod.
Den i have "copy.exe" which i dont know how to fix either.
Task manager and regedit were...
|
by: yxq |
last post by:
Hello,
I want to kill the Explorer process, after Explorer process has been killed,
it will restart automatically immediately. How to disable it restart
automatically? for example, in Windows Task Manager, you can kill explorer
process, but it will not restart automatically.
My code:
/////////////////////////////////////////////
For Each ObjPro As Process In Process.GetProcessesByName("EXPLORER")
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |