473,804 Members | 3,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't step through codes

Hi all,

I'm looking at some codes for an application in Visual Studio.NET using C#, the thing is, no matter how many break points Iput in (even tried adding codes to the Page_Load event andplacing a break point there), the program just run withoutstopping on pressing F5. Has this got something to do with theWeb.config file? I've copied the Web.config file below and wouldbe so grateful for any help with this.
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<!-- application specific settings -->
<appSettings>
<add key="Connection String"value="s erver=localhost ;Trusted_Connec tion=true;datab ase=Store"/> </appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authenticati on mode="Forms">
<forms name="StoreAuth " loginUrl="login .aspx"protectio n="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="RemoteOnl y"defaultRedire ct="ErrorPage.a spx" />
<!-- disable session state for application -->
<sessionState mode="Off" />
</system.web>
<!-- set secure paths -->
<location path="Checkout. aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderList .aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderDeta ils.aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

kn.
--------------------------------
From: kasse nyen

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>j8fo1tP/Y06szIjtsCDePQ= =</Id>
Nov 16 '05 #1
3 1330
Hans,

im really not sure if i get your problem right, but
this sample works for me:

using System;

public class MyClass
{
public static void Main()
{
Class3 c3 = new Class3();
Console.WriteLi ne(c3.Method1() );
Console.ReadLin e();
}
}
public class Class1
{
public virtual object Method1()
{
return "class1";
}
}
public class Class2 : Class1
{
public override object Method1()
{
return base.Method1();
}
}
public class Class3 : Class2
{
public override object Method1()
{
return base.Method1();
}
}

HTH,

--
gani
http://thedeveloperscorner.com.ph
-----Original Message-----
Hi all,

I'm looking at some codes for an application in Visual Studio .NET using C#, the thing is, no matter how many
break points I put in (even tried adding codes to the
Page_Load event and placing a break point there), the
program just run without stopping on pressing F5. Has
this got something to do with the Web.config file? I've
copied the Web.config file below and would be so grateful
for any help with this.

<?xml version="1.0" encoding="utf-8" ?>
<configuration >
<!-- application specific settings -->
<appSettings>
<add key="Connection String" value="server=l ocalhost;Truste d_Connection=tr ue;database=S
tore" /> </appSettings> <!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authenticati on mode="Forms">
<forms name="StoreAuth " loginUrl="login .aspx" protection="All " path="/" /> </authentication>
<!-- enable custom errors for the application -->
<customErrors mode="RemoteOnl y" defaultRedirect ="ErrorPage.asp x" /> <!-- disable session state for application -->
<sessionState mode="Off" />
</system.web>
<!-- set secure paths -->
<location path="Checkout. aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderList .aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderDeta ils.aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

kn.
--------------------------------
From: kasse nyen

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>j8fo1tP/Y06szIjtsCDePQ= =</Id>
.

Nov 16 '05 #2
Hi,

try attaching the ASP.NET worker process aspnet_wp.exe to the debugger from
the menu Debug->Processes->attach in design mode. hope tht would work.

regards
joyjit

"kasse nyen via .NET 247" <an*******@dotn et247.com> wrote in message
news:OX******** ******@TK2MSFTN GP10.phx.gbl...
Hi all,

I'm looking at some codes for an application in Visual Studio .NET using C#,
the thing is, no matter how many break points I put in (even tried adding
codes to the Page_Load event and placing a break point there), the program
just run without stopping on pressing F5. Has this got something to do with
the Web.config file? I've copied the Web.config file below and would be so
grateful for any help with this.
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<!-- application specific settings -->
<appSettings>
<add key="Connection String"
value="server=l ocalhost;Truste d_Connection=tr ue;database=Sto re" />
</appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authenticati on mode="Forms">
<forms name="StoreAuth " loginUrl="login .aspx" protection="All "
path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="RemoteOnl y" defaultRedirect ="ErrorPage.asp x" />
<!-- disable session state for application -->
<sessionState mode="Off" />
</system.web>
<!-- set secure paths -->
<location path="Checkout. aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderList .aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderDeta ils.aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

kn.
--------------------------------
From: kasse nyen

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>j8fo1tP/Y06szIjtsCDePQ= =</Id>
Nov 16 '05 #3
sorry, this post is intended to the other wrong.

-----Original Message-----
Hans,

im really not sure if i get your problem right, but
this sample works for me:

using System;

public class MyClass
{
public static void Main()
{
Class3 c3 = new Class3();
Console.WriteLi ne(c3.Method1() );
Console.ReadLin e();
}
}
public class Class1
{
public virtual object Method1()
{
return "class1";
}
}
public class Class2 : Class1
{
public override object Method1()
{
return base.Method1();
}
}
public class Class3 : Class2
{
public override object Method1()
{
return base.Method1();
}
}

HTH,

--
gani
http://thedeveloperscorner.com.ph
-----Original Message-----
Hi all,

I'm looking at some codes for an application in VisualStudio .NET using C#, the thing is, no matter how many
break points I put in (even tried adding codes to the
Page_Load event and placing a break point there), the
program just run without stopping on pressing F5. Has
this got something to do with the Web.config file? I've
copied the Web.config file below and would be so

gratefulfor any help with this.


<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<!-- application specific settings -->
<appSettings>
<add key="Connection String"value="server= localhost;Trust ed_Connection=t rue;database=

Store" /> </appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authenticati on mode="Forms">
<forms name="StoreAuth "

loginUrl="logi n.aspx" protection="All " path="/" />
</authentication>
<!-- enable custom errors for the application --

<customErrors mode="RemoteOnl y"

defaultRedirec t="ErrorPage.as px" />
<!-- disable session state for application -->
<sessionState mode="Off" />
</system.web>
<!-- set secure paths -->
<location path="Checkout. aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderList .aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderDeta ils.aspx">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

kn.
--------------------------------
From: kasse nyen

-----------------------
Posted by a user from .NET 247

(http://www.dotnet247.com/)

<Id>j8fo1tP/Y06szIjtsCDePQ= =</Id>
.

.

Nov 16 '05 #4

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

Similar topics

15
3250
by: lawrence | last post by:
Sorry for the dumb question but I'm new to Javascript. I wrote this script hoping to animate some div blocks on a page. You can see the page here: http://www.keymedia.biz/demo.htm Can anyone tell me why these DIVs don't drift to the left as they are supposed to? <script language="javascript">
6
3746
by: PerryC | last post by:
I have search googles and there are hundreds of tips about AllowByPassKey... however, none works for me... well, perhaps I am too new to such high level functionality that it just does not make sense to me. So, anyone please help. I have no idea what is "CreateProperty" that Access help was trying to tell me to do. Can anyone please write me a step by step on how to accomplish this? (i.e. disable Shift on Startup.) I've seen many...
4
1896
by: Paul H | last post by:
OK, I tried getting and old Newbury Data ND2500 working using the "Generic /Text only" driver in Win XP. It prints, but I could not find a way to set a custom page size that matches the paper I am using. So there was no way it would ever work. The customer is happy to buy another Dot Matrix printer because the ND2500 can be used elsewhere. So which printer should I get that can plug and play with Access? Paul
4
2678
by: CrimeMaster | last post by:
HI I have an Exe file when it runs ,there are just two controls on the window.One is a ListBox and another is a Multi line Rich Edit control.When i click on an item in the list some text is displayed in the Edit control.Exe have a Hunderds of items in the List controls,which display some text in edit control against an item selection. I want to read that data which is displayed in edit control against the selection of an item in list...
0
9577
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,...
0
10569
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, 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...
1
10315
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,...
0
10075
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
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();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
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...

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.