Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Debugging Problems on Windows Vista

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TheDude5B - 08 Sep 2007 15:45 GMT
Hi,

I have just installed Visual Studio 2005 on my windows Vista machine,
and everything seems to work well after installing the service pack
and then the vista upgrades.

However, when I try to debug an application, the debugger starts,
launches the project in explorer, but then stops debugging. It pops up
with an error saying:

-----
the following module was built either with optimizations enabled or
without debug information:

C:\Users\myname\AppData\Local\Temp\Temporary ASP.NET Files\root
\assembly....\projectname

To debug this module, change its project build configuration to Debug
Mode.
To suppress this message, disable the "Warn if no user code on launch"
debugger option.
-----

The project build succeeds but I am just not able to debug. Is this a
windows Vista problem?

Please help.
Mark Rae [MVP] - 08 Sep 2007 15:55 GMT
> The project build succeeds but I am just not able to debug. Is this a
> windows Vista problem?

No, it just means that you're trying to debug in Release mode... Switch the
probject into Debug mode, hit Rebuild and then F5...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

TheDude5B - 09 Sep 2007 21:21 GMT
> > The project build succeeds but I am just not able to debug. Is this a
> > windows Vista problem?
>
> No, it just means that you're trying to debug in Release mode... Switch the
> probject into Debug mode, hit Rebuild and then F5...

What do you mean by this? Do you mean set the <compilation
debug="true"> in the web.config file or something else?
I have <compilation debug="true"> in the web.config, but the error
still appears. I have had a look around to see if there are any other
settings which i can change, but still the same problem.
TheDude5B - 09 Sep 2007 22:13 GMT
Found the problem. It is down to the Vista User security settings. If
I run Vista "As Administrator" the problem goes away.
Mark Rae [MVP] - 09 Sep 2007 22:21 GMT
> Found the problem. It is down to the Vista User security settings. If
> I run Vista "As Administrator" the problem goes away.

Ah yes...

Presumably, though, you mean that you need to run VS.NET 2005 as
administrator...?

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

TheDude5B - 10 Sep 2007 09:07 GMT
> > Found the problem. It is down to the Vista User security settings. If
> > I run Vista "As Administrator" the problem goes away.
[quoted text clipped - 7 lines]
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

yes exactly. Have not got used to this feature of Vista yet so keep
coming across problems like this when trying to run different
programs. First thing I will try in the future is to run everything as
administrator. :)
Mark Rae [MVP] - 10 Sep 2007 09:22 GMT
> yes exactly. Have not got used to this feature of Vista yet so keep
> coming across problems like this when trying to run different
> programs.

1) Right-click on the item on the Start menu which launches Visual
Studio.NET 2005

2) Select Properties

3) Click Advanced

4) Check Run as administrator

5) Click OK

6) Click OK

7) Launch Visual Studio.NET 2005

> First thing I will try in the future is to run everything as
> administrator. :)

I strongly advise you *NOT* to do that! Visual Studio.NET 2005 is very much
an exception - hardly any applications need to be run as administrator...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Peter Bromberg [C# MVP] - 09 Sep 2007 00:58 GMT
Aside from what Mark mentions, I have run into this several times. As the
error dialog indicates, you can override this in Options. However, I
remembere always being able to jump right over this and continue debugging
successfully.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi,
>
[quoted text clipped - 23 lines]
>
> Please help.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.