473,406 Members | 2,707 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,406 software developers and data experts.

Related Problem [though with my debugging]: Walthrough tutorial generates exception

Hello,
I've been following the previous thread "Windows Service Starts and
Immediately Stops" and I have a similar problem.
I've been trying to get started on a windows service and have followed the
following rather well known tutorial [1] (I also make some references to it
in this writeup):

Walkthrough: Creating a Windows Service Application in the Component
Designer
http://msdn2.microsoft.com/en-us/lib...8a(VS.80).aspx

Anyways, I've gone through all the steps to create the service and then run
it via the "Manage" services console. I then get this error when clicking
"start" on the service [this error and some ways to debug it is reported on
many search results of web search engines I have used to debug this, however
the results to me have not yet been helpful]:
"An unhandled exception ('System.Security.Exception') occurred in"
[myprogramname]

I have done the following steps:
1. Tried setting "Runtime Security Policy" to "Full Trust" on the Local
Intranet on both .NET framework 1.1 and 2.0 in "Administrative
Tools->Microsoft .NET framework 1.1 configuration" and "...2.0
configuration". [didn't work]
2. Tried surrounding the "MyNewService" constructor block in "service1.cs"
with try , catches to echo out some debugging output to the
console.writeline. Unfortunately, when I do so the service runs but reports
no output was generated by the service. [I can provide exact code if you'd
like]
3. Tried making the service "serviceProcessInstaller1" have the account
property be set to LocalSystem not LocalService... didn't work.
4. As #3, tried doing "user" but couldn't authenticate with just my username
and password [weird. I'm doing the development as the computer administrator
too... ?]
5. Tried setting permissions within the program level via:
"[System.Security.Permissions.PermissionSet(System.S ecurity.Permissions.SecurityAction.Demand,
Name = "FullTrust")] "
And still, no cigar. Also: I recently reformatted my computer and have
installed all security updates and visual studio updates that I could find.

I really want to thank who reads this, as this has been greatly frustrating
me.
[1] Though there is a newer version of the article which is for .NET 3.5,
viewing the about box in Visual Studio I find the program reports I am using
visual studio 2005 [v.8.0.507...] and .NET framework v. 2.0.507... SP1
(should anyone be interested).
Jan 9 '08 #1
0 1134

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

Similar topics

1
by: Sathiamoorthy | last post by:
I received a runtime error when I was working in MyApp.exe MyApp.exe Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process ID=0x14...
5
by: Nathan Wiegman | last post by:
Using the XmlSerializer to deserialize a double.NaN value generates an exception in the framework which the framework then catches. This is super undesirable in our application, because our...
0
by: cronman | last post by:
I am creating a small Windows application using Visual C# 2005 Express Edition (August CTP) for a small non-profit agency. My current issue is with updating related information in an Access...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
1
by: moondaddy | last post by:
I tried to add the exception management block to my asp.net 1.1 application today and was getting some errors with it the application, so I removed it. When I re-loaded the app I got an error about...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
4
by: Jason Hunt | last post by:
I'm hoping someone can help me out with using the Visual Studio IDE for debugging. I'm working on a Windows Forms application (it's an MDI if it matters), and I'm trying to fix a bug in my...
41
by: jacob navia | last post by:
In the C tutorial for lcc-win32, I have a small chapter about a debugging implementation of malloc. Here is the code, and the explanations that go with it. I would appreciate your feedback...
1
by: toton | last post by:
Hi, Is there any tool for template debugging, during compilation process ? Just like gdb or visual studio debugger do it during program execution, a step by step debug for the program, I am...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.