Showing posts with label iis. Show all posts
Showing posts with label iis. Show all posts

Saturday, March 31, 2012

The best solution of URL rewriting method

Hi,
I want rewrite url, but I don't know, whoch method is the best:
    ISAPI filters at the IIS Web server levelor HTTP modules
    or HTTP handlers
Which method is the best solution?
Thanks
You may want to read this >>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/urlrewriting.asp

Looks like URL rewriting using http modules seems to be a better idea...

Wednesday, March 28, 2012

The code of my page doesnt execute.

Hello and thx for the help,

1. I have installed iis v5.1 - runs ok (http://localhost... )
2. I have also installed VStudio.Net, no problem.
3. I have started my first project on C#, which consists on a webform, some controls, and a hyperlink buttons.

My problem is: when run the application, the browser (I've tried with ie, mozilla & opera ) shows the page. The html seems to be ok, but no action at all occures.
I have used break points to make sure no action at all runs after javascript calls submit() function.
In my oppinion, theres something I haven't done , probably a question of folder/file project config, permits... dunno.

I will appreciate any help, thx

Have you build the solution?

Grz, Kris.


Hi,
First of all... thx for answering.

Yes, I have also tried building de solution, but had no success.

In my oppinion, it is more a question of assigning the right permissions or so, because aspx code doesn't run even when I run "Debug" from Visual studio.

Running debug (F5), for example, shows the page correctly. If I place the cursor over the hlinkbuttons it shows the jscript function call to the right event handler "__doPostBack(hlCon,'')". But, when I click the button, nothing happens, the page refreshes but nothing happens.

For example, what I've done now is a Step by step debug (F11) and the browser opens, shos the template, but no action / interruption occurs.

(I write the shortkeys cause I'm working with the Spanish version of Visual studio, inn order to avoid a mistake with menu names)

I'm a little bit lost with this, and also a little bit desperated... :(

thx for your help in an advice, url, or whatever way.

Juanjo.

PS: There's only one more thing... I dunno if it will help. When I created the first Webform, I changed the name from Webform1 to index, in order to convert the page as default one. (My iis admits index.aspx as def. page).
uhmm...
does your page declaration match with the name of your code-behind?
does your Codebhind attribute match the code-behind file? doesthe "Inherits" match the name of your class of your code-behind?


Yes, it does...

the problem was I was specting the same behaviour from a linkbutton Click than from a buttons.

I'm sorry, to waste your time with this stupidity.

Thx to all for reading and helping me.

The code is not working

I download the framework and install the IIS server 5.1, But when I
copy the code that supposed to print me 'hello world' from my manual
it didn't work. It showed me the page, but ignored the '.net' script.
What could be the reason?
Does my server version support asp.net?
This is the code I copy:
<%@dotnet.itags.org.Page Language="C#"%>
<script runat="server">
void Page_Load(object sender, EventArgs e) {
myLabel.Text = "Hello World!";
}
</script>
<html>
<head>
<title>My first ASP.NET page</title>
</head>
<body>
<asp:Label runat="server" id="myLabel"></asp:Label>
</body>
</html>
thanksOn Jul 13, 12:28 pm, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
> I download the framework and install the IIS server 5.1, But when I
> copy the code that supposed to print me 'hello world' from my manual
> it didn't work. It showed me the page, but ignored the '.net' script.
> What could be the reason?
> Does my server version support asp.net?
> This is the code I copy:
> <%@dotnet.itags.org.Page Language="C#"%>
> <script runat="server">
> void Page_Load(object sender, EventArgs e) {
> myLabel.Text = "Hello World!";
> }
> </script>
> <html>
> <head>
> <title>My first ASP.NET page</title>
> </head>
> <body>
> <asp:Label runat="server" id="myLabel"></asp:Label>
> </body>
> </html>
> thanks
Execute C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\aspnet_regiis.aspx -i
That should register the ASP.NET with IIS.
http://support.microsoft.com/kb/306005
On Jul 13, 1:01 pm, Alexey Smirnov <alexey.smir...@dotnet.itags.org.gmail.com> wrote:
> On Jul 13, 12:28 pm, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
>
>
>
>
>
>
>
> Execute C:\WINDOWS\Microsoft.NET\Framework
> \v2.0.50727\aspnet_regiis.aspx -i
> That should register the ASP.NET with IIS.
> http://support.microsoft.com/kb/306005
I only have this two 'version' directories:
v1.1.4322
v1.0.3705
and none of them contains the file aspnet_regiis.aspx
On Jul 13, 8:57 am, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
> On Jul 13, 1:01 pm, Alexey Smirnov <alexey.smir...@dotnet.itags.org.gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
> I only have this two 'version' directories:
> v1.1.4322
> v1.0.3705
> and none of them contains the file aspnet_regiis.aspx- Hide quoted text -
> - Show quoted text -
I recommend you install .Net framework 3.0.
On Jul 13, 3:07 pm, Larry Bud <larrybud2...@dotnet.itags.org.yahoo.com> wrote:
> On Jul 13, 8:57 am, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> I recommend you install .Net framework 3.0.
Thanks I will try it. it supposed to make it work?
re:
!> I recommend you install .Net framework 3.0.
I hope you meant *.Net Framework 2.0*, and not 3.0,
since 3.0 has nothing which an ASP.NET developer needs.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Larry Bud" <larrybud2002@dotnet.itags.org.yahoo.com> wrote in message news:1184332075.248198.101630@dotnet.itags.org.m3g2000
hsh.googlegroups.com...
> On Jul 13, 8:57 am, Gandalf <goldn...@dotnet.itags.org.gmail.com> wrote:
> I recommend you install .Net framework 3.0.
>
On Jul 13, 1:44 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:
> re:
> !> I recommend you install .Net framework 3.0.
> I hope you meant *.Net Framework 2.0*, and not 3.0,
> since 3.0 has nothing which an ASP.NET developer needs.
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D
>
> "LarryBud" <larrybud2...@dotnet.itags.org.yahoo.com> wrote in messagenews:1184332075.24819=
8=2E101630@dotnet.itags.org.m3g2000hsh.googlegroups.com...
>
>
al
ipt.
>
>
>
>
>
>
>
>
>
>
t -
>
>
Yes, I mean 2.0

Tuesday, March 13, 2012

The IListSource does not contain any data sources.

Hello:

I have migrated a site from IIS5 to IIS6. The site is configured and the we
app is installed on the new IIS site. I can get to the web page but when I
try to login, this is what I get the following error below. I would
appreciate any insight, direction or help regarding this.

Thank-you!!

Walid

************************************************** ************************************************** ********************
Server Error in '/' Application.
------------------------

The IListSource does not contain any data sources.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Web.HttpException: The IListSource does not
contain any data sources.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The IListSource does not contain any data
sources.]
System.Web.UI.DataSourceHelper.GetResolvedDataSour ce(Object dataSource,
String dataMember) +376
System.Web.UI.WebControls.ListControl.OnDataBindin g(EventArgs e) +75
System.Web.UI.Control.DataBind() +26
T5DB.StartPage.Page_Load(Object sender, EventArgs e) +259
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +739
************************************************** **********
************************************************** **********Did you trace your code and see where it is failing
somehow your data binding is failing, you are not getting data or something.
Limited info given.

OZI

"Walid" <Walid@.discussions.microsoft.comwrote in message
news:9BCC27C8-8E9C-4100-9F57-6C0424B789F0@.microsoft.com...

Quote:

Originally Posted by

Hello:
>
I have migrated a site from IIS5 to IIS6. The site is configured and the
we
app is installed on the new IIS site. I can get to the web page but when
I
try to login, this is what I get the following error below. I would
appreciate any insight, direction or help regarding this.
>
Thank-you!!
>
Walid
>
************************************************** ************************************************** ********************
Server Error in '/' Application.
------------------------
>
The IListSource does not contain any data sources.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about
the error and where it originated in the code.
>
Exception Details: System.Web.HttpException: The IListSource does not
contain any data sources.
>
Source Error:
>
An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.
>
Stack Trace:
>
[HttpException (0x80004005): The IListSource does not contain any data
sources.]
System.Web.UI.DataSourceHelper.GetResolvedDataSour ce(Object dataSource,
String dataMember) +376
System.Web.UI.WebControls.ListControl.OnDataBindin g(EventArgs e) +75
System.Web.UI.Control.DataBind() +26
T5DB.StartPage.Page_Load(Object sender, EventArgs e) +259
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +739
************************************************** **********
************************************************** **********
>
>


Thank-you for replying!
I am very new to .NET and programming, very new :-) How can I trace my
code? What more information can I provide to get some more help? Your
assistance is much appreciated.

Walid

"OZI" wrote:

Quote:

Originally Posted by

Did you trace your code and see where it is failing
somehow your data binding is failing, you are not getting data or something.
Limited info given.
>
OZI
>
>
"Walid" <Walid@.discussions.microsoft.comwrote in message
news:9BCC27C8-8E9C-4100-9F57-6C0424B789F0@.microsoft.com...

Quote:

Originally Posted by

Hello:

I have migrated a site from IIS5 to IIS6. The site is configured and the
we
app is installed on the new IIS site. I can get to the web page but when
I
try to login, this is what I get the following error below. I would
appreciate any insight, direction or help regarding this.

Thank-you!!

Walid

************************************************** ************************************************** ********************
Server Error in '/' Application.
------------------------

The IListSource does not contain any data sources.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about
the error and where it originated in the code.

Exception Details: System.Web.HttpException: The IListSource does not
contain any data sources.

Source Error:

An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The IListSource does not contain any data
sources.]
System.Web.UI.DataSourceHelper.GetResolvedDataSour ce(Object dataSource,
String dataMember) +376
System.Web.UI.WebControls.ListControl.OnDataBindin g(EventArgs e) +75
System.Web.UI.Control.DataBind() +26
T5DB.StartPage.Page_Load(Object sender, EventArgs e) +259
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +739
************************************************** **********
************************************************** **********


>
>
>


Simply put,

set a BreakPoint ( need be in Debugging mode and not in Release Mode) in
your Page_Load event handler. Read about debugging and how to set a
breakpoint if you don't know how.
use F11 to step through the code line by line, to narrow down where the
error is occurring.
use F10 to step over etc...

I am assuming you are getting some data from a database to authenticate the
user etc..
check if you are getting any data back if you expecting data back.
You said that things break after you try to login, are you being
authenticated?

Without seeing any code it is very difficult to help you out.

OZI

"Walid" <Walid@.discussions.microsoft.comwrote in message
news:295842A1-E1B6-4C51-AF18-B9221924F8C1@.microsoft.com...

Quote:

Originally Posted by

Thank-you for replying!
I am very new to .NET and programming, very new :-) How can I trace my
code? What more information can I provide to get some more help? Your
assistance is much appreciated.
>
Walid
>
"OZI" wrote:
>

Quote:

Originally Posted by

>Did you trace your code and see where it is failing
>somehow your data binding is failing, you are not getting data or
>something.
>Limited info given.
>>
>OZI
>>
>>
>"Walid" <Walid@.discussions.microsoft.comwrote in message
>news:9BCC27C8-8E9C-4100-9F57-6C0424B789F0@.microsoft.com...

Quote:

Originally Posted by

Hello:
>
I have migrated a site from IIS5 to IIS6. The site is configured and
the
we
app is installed on the new IIS site. I can get to the web page but
when
I
try to login, this is what I get the following error below. I would
appreciate any insight, direction or help regarding this.
>
Thank-you!!
>
Walid
>
************************************************** ************************************************** ********************
Server Error in '/' Application.
------------------------
>
The IListSource does not contain any data sources.
Description: An unhandled exception occurred during the execution of
the
current web request. Please review the stack trace for more information
about
the error and where it originated in the code.
>
Exception Details: System.Web.HttpException: The IListSource does not
contain any data sources.
>
Source Error:
>
An unhandled exception was generated during the execution of the
current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.
>
Stack Trace:
>
[HttpException (0x80004005): The IListSource does not contain any data
sources.]
System.Web.UI.DataSourceHelper.GetResolvedDataSour ce(Object
dataSource,
String dataMember) +376
System.Web.UI.WebControls.ListControl.OnDataBindin g(EventArgs e) +75
System.Web.UI.Control.DataBind() +26
T5DB.StartPage.Page_Load(Object sender, EventArgs e) +259
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +739
************************************************** **********
************************************************** **********
>
>


>>
>>
>>