Can't step through codes

  • Thread starter kasse nyen via .NET 247
  • Start date
K

kasse nyen via .NET 247

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" ?>
<configuration>
<!-- application specific settings -->
<appSettings>
<add key="ConnectionString"value="server=localhost;Trusted_Connection=true;database=Store"/> </appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="StoreAuth" loginUrl="login.aspx"protection="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="RemoteOnly"defaultRedirect="ErrorPage.aspx" />
<!-- disable session state for application -->
<sessionState mode="Off" />
</system.web>
<!-- set secure paths -->
<location path="Checkout.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderList.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderDetails.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

kn.
 
G

gani

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.WriteLine(c3.Method1());
Console.ReadLine();
}
}
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="ConnectionString"
value="server=localhost;Trusted_Connection=true;database=S
tore" /> said:
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="StoreAuth"
loginUrl="login.aspx" protection="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="RemoteOnly"
defaultRedirect="ErrorPage.aspx" />
 
M

MyNews

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

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="ConnectionString"
value="server=localhost;Trusted_Connection=true;database=Store" />
</appSettings>
<!-- forms based authentication -->
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="StoreAuth" loginUrl="login.aspx" protection="All"
path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.aspx" />
<!-- disable session state for application -->
<sessionState mode="Off" />
</system.web>
<!-- set secure paths -->
<location path="Checkout.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderList.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="OrderDetails.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>

kn.
 
G

gani

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.WriteLine(c3.Method1());
Console.ReadLine();
}
}
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

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

loginUrl="login.aspx" protection="All" path="/" />

defaultRedirect="ErrorPage.aspx" />
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top