Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Debugging Problems on Windows Vista

Reply
Thread Tools

Debugging Problems on Windows Vista

 
 
TheDude5B
Guest
Posts: n/a
 
      09-08-2007
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.

 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-08-2007
"TheDude5B" <> wrote in message
news: oups.com...

> 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...


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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      09-08-2007
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



"TheDude5B" wrote:

> 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.
>
>

 
Reply With Quote
 
TheDude5B
Guest
Posts: n/a
 
      09-09-2007

> > 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.

 
Reply With Quote
 
TheDude5B
Guest
Posts: n/a
 
      09-09-2007
Found the problem. It is down to the Vista User security settings. If
I run Vista "As Administrator" the problem goes away.

 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-09-2007
"TheDude5B" <> wrote in message
news: ups.com...

> 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...?


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

 
Reply With Quote
 
TheDude5B
Guest
Posts: n/a
 
      09-10-2007
On Sep 9, 10:21 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
> "TheDude5B" <timbja...@gmail.com> wrote in message
>
> news: ups.com...
>
> > 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...?
>
> --
> 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.

 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-10-2007
"TheDude5B" <> wrote in message
news: oups.com...

> 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...


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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista Free! I Need to share my results I found Windows Vista for Free! I love Google Digital Photography 7 05-06-2007 02:37 PM
Vista codec packages for Vista 32 & vista 64 Kue2 Windows 64bit 0 03-05-2007 05:48 PM
Windows Vista 64 or Windows Vista 32 for AMD 64 FX-57 =?Utf-8?B?YWRub24=?= Windows 64bit 4 02-07-2007 12:52 AM
Debugging C vs debugging C++ jacob navia C Programming 11 10-27-2006 07:19 PM
No Debugging of C# Server-Side Script, but Code-Behind Debugging Works Johann Blake ASP .Net 1 01-05-2004 03:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57