Showing posts with label pages. Show all posts
Showing posts with label pages. Show all posts

Saturday, March 31, 2012

SEO URL Rewrite (vb.net)

Hi,

We have a list of several dynamic pages that are called like "page.aspx?id=12" etc. We want to change this so its like "page12.aspx". I've read that this can be done in global.asax by application_begin but we can't seem to get it working.

Help appreciated.

Thanks,Check outhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/urlrewriting.asp for a good description of how to do this.

I've look into it pretty heavy too and found this method much much more flexible

http://weblogs.asp.net/scottgu/archive/2006/01/18/435870.aspx

Thursday, March 22, 2012

Serious issue: parts of my page render as not logged in, parts as logged in. Help!

I'm having a very difficult time with some of our new pages. We've
moved to a web farm, and it seems in spurts it will come where parts
of my page think the user is logged in, and parts think the user is
not logged in. It seems to happen to an entire control. (None of the
controls have OutputCache set)

For example, our login control on top will appear showing the user is
logged inw hen they have been redirected to RegNewUser, but RegNewUser
will display instead of redirecting as if the user were actually
logged in.

The MachineKey option in the web.config is set to a generated SHA1, so
the viewstate moves between the web servers just fine.

This seems to come in spurts where it will happen to a lot of users at
once, then it will stop coming. This is a serious problem on a
production website, I just don't know where to turn or how to debug --
everything looks fine!

I am also getting Forms Authentication failed events in my log:

Event code: 4005
Event message: Forms authentication failed for the request. Reason:
The ticket supplied has expired.
Event time: 4/11/2007 12:42:27 PM
Event time (UTC): 4/11/2007 7:42:27 PM
Event ID: 0a0a593d17984b41aa13b93254491326
Event sequence: 1161
Event occurrence: 13
Event detail code: 50202

Application information:
Application domain: /LM/W3SVC/1/Root-2-128207889508981002
Trust level: Full
Application Virtual Path: /
Application Path: E:\htdocs\mysite-pri\
Machine name: WEB1

Process information:
Process ID: 400
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Request information:
Request URL: http://www.mysite.com:8080/default.aspx
Request path: /default.aspx
User host address: 10.10.1.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Name to authenticate:

Custom event details:Make sure the cookie path is the same on all machines. Make sure that the Web
Site number (e.g., /LM/W3SVC/1/Root-2-128207889508981002 - the "/1/" after
W3SVC) is the same.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"pcloches@.gmail.com" wrote:

Quote:

Originally Posted by

I'm having a very difficult time with some of our new pages. We've
moved to a web farm, and it seems in spurts it will come where parts
of my page think the user is logged in, and parts think the user is
not logged in. It seems to happen to an entire control. (None of the
controls have OutputCache set)
>
For example, our login control on top will appear showing the user is
logged inw hen they have been redirected to RegNewUser, but RegNewUser
will display instead of redirecting as if the user were actually
logged in.
>
The MachineKey option in the web.config is set to a generated SHA1, so
the viewstate moves between the web servers just fine.
>
This seems to come in spurts where it will happen to a lot of users at
once, then it will stop coming. This is a serious problem on a
production website, I just don't know where to turn or how to debug --
everything looks fine!
>
I am also getting Forms Authentication failed events in my log:
>
Event code: 4005
Event message: Forms authentication failed for the request. Reason:
The ticket supplied has expired.
Event time: 4/11/2007 12:42:27 PM
Event time (UTC): 4/11/2007 7:42:27 PM
Event ID: 0a0a593d17984b41aa13b93254491326
Event sequence: 1161
Event occurrence: 13
Event detail code: 50202
>
Application information:
Application domain: /LM/W3SVC/1/Root-2-128207889508981002
Trust level: Full
Application Virtual Path: /
Application Path: E:\htdocs\mysite-pri\
Machine name: WEB1
>
Process information:
Process ID: 400
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
>
Request information:
Request URL: http://www.mysite.com:8080/default.aspx
Request path: /default.aspx
User host address: 10.10.1.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
>
Name to authenticate:
>
Custom event details:
>
>

Tuesday, March 13, 2012

Server Application Error - I have searched a zillion posts...

I am trying to create my first Web application in VS2005 and am pulling
my hair out!!!!
I cannot seem to get aspx pages to work from a locally installed copy
of IIS.
I am getting a ServerApplication Error and after reading a zillion
posts, I have tried the following:
I am running Win XP Pro SP2 with all current patches installed.
I turned off "friendly messages".
I uninstalled / reinstalled IIS
I deleted the ASPNET account "net user ASPNET /delete"
I re-registered asp.net "aspnet_regiis /i"
I open a browser and enter "http://localhost/iishelp"
The browser changes the address bar to:
"http://localhost/iishelp/iis/misc/default.asp"
so it appears that IIS is getting invoked.
I still get the message...
I have tried the same thing with 127.0.0.1 instead of localhost with
the same results.
I tried turning off my firewall, same result.
When I look in the system log I see no specific messages
The specific text from the error page is:
Server Application Error
The server has encountered an error while loading an application during
the processing of your request.
Please refer to the event log for more detail information. Please
contact the server administrator for
assistance.
I tried creating a WebPage using VS2005 that simply has a single label
"Hello World", and when I run it
from within VS or enter the url "http://localhost/WebSite/default.aspx"
directly into a browser, I get the
same message.
I created a simple html page and displayed it with
"http://localhost/WebSite/htmlpage.htm" and it works
fine.
Any ideas?Well it does say "Please refer to the event log for more detail information.
Please
contact the server administrator for
assistance."
did you do that? did you look into NT event log. What does it say?
George.
"TimR" <tim.reynolds@.zmaxsolutions.com> wrote in message
news:1168370008.916804.302620@.77g2000hsv.googlegroups.com...
>I am trying to create my first Web application in VS2005 and am pulling
> my hair out!!!!
> I cannot seem to get aspx pages to work from a locally installed copy
> of IIS.
> I am getting a ServerApplication Error and after reading a zillion
> posts, I have tried the following:
> I am running Win XP Pro SP2 with all current patches installed.
> I turned off "friendly messages".
> I uninstalled / reinstalled IIS
> I deleted the ASPNET account "net user ASPNET /delete"
> I re-registered asp.net "aspnet_regiis /i"
> I open a browser and enter "http://localhost/iishelp"
> The browser changes the address bar to:
> "http://localhost/iishelp/iis/misc/default.asp"
> so it appears that IIS is getting invoked.
> I still get the message...
> I have tried the same thing with 127.0.0.1 instead of localhost with
> the same results.
> I tried turning off my firewall, same result.
> When I look in the system log I see no specific messages
> The specific text from the error page is:
> Server Application Error
> The server has encountered an error while loading an application during
> the processing of your request.
> Please refer to the event log for more detail information. Please
> contact the server administrator for
> assistance.
> I tried creating a WebPage using VS2005 that simply has a single label
> "Hello World", and when I run it
> from within VS or enter the url "http://localhost/WebSite/default.aspx"
> directly into a browser, I get the
> same message.
> I created a simple html page and displayed it with
> "http://localhost/WebSite/htmlpage.htm" and it works
> fine.
> Any ideas?
>

Server Application Error - I have searched a zillion posts...

I am trying to create my first Web application in VS2005 and am pulling
my hair out!!!!

I cannot seem to get aspx pages to work from a locally installed copy
of IIS.

I am getting a ServerApplication Error and after reading a zillion
posts, I have tried the following:

I am running Win XP Pro SP2 with all current patches installed.
I turned off "friendly messages".
I uninstalled / reinstalled IIS
I deleted the ASPNET account "net user ASPNET /delete"
I re-registered asp.net "aspnet_regiis /i"
I open a browser and enter "http://localhost/iishelp"
The browser changes the address bar to:
"http://localhost/iishelp/iis/misc/default.asp"
so it appears that IIS is getting invoked.

I still get the message...

I have tried the same thing with 127.0.0.1 instead of localhost with
the same results.
I tried turning off my firewall, same result.

When I look in the system log I see no specific messages

The specific text from the error page is:
Server Application Error
The server has encountered an error while loading an application during
the processing of your request.
Please refer to the event log for more detail information. Please
contact the server administrator for
assistance.

I tried creating a WebPage using VS2005 that simply has a single label
"Hello World", and when I run it
from within VS or enter the url "http://localhost/WebSite/default.aspx"
directly into a browser, I get the
same message.

I created a simple html page and displayed it with
"http://localhost/WebSite/htmlpage.htm" and it works
fine.

Any ideas?Well it does say "Please refer to the event log for more detail information.
Please
contact the server administrator for
assistance."

did you do that? did you look into NT event log. What does it say?

George.

"TimR" <tim.reynolds@.zmaxsolutions.comwrote in message
news:1168370008.916804.302620@.77g2000hsv.googlegro ups.com...

Quote:

Originally Posted by

>I am trying to create my first Web application in VS2005 and am pulling
my hair out!!!!
>
I cannot seem to get aspx pages to work from a locally installed copy
of IIS.
>
I am getting a ServerApplication Error and after reading a zillion
posts, I have tried the following:
>
I am running Win XP Pro SP2 with all current patches installed.
I turned off "friendly messages".
I uninstalled / reinstalled IIS
I deleted the ASPNET account "net user ASPNET /delete"
I re-registered asp.net "aspnet_regiis /i"
I open a browser and enter "http://localhost/iishelp"
The browser changes the address bar to:
"http://localhost/iishelp/iis/misc/default.asp"
so it appears that IIS is getting invoked.
>
I still get the message...
>
I have tried the same thing with 127.0.0.1 instead of localhost with
the same results.
I tried turning off my firewall, same result.
>
When I look in the system log I see no specific messages
>
The specific text from the error page is:
Server Application Error
The server has encountered an error while loading an application during
the processing of your request.
Please refer to the event log for more detail information. Please
contact the server administrator for
assistance.
>
I tried creating a WebPage using VS2005 that simply has a single label
"Hello World", and when I run it
from within VS or enter the url "http://localhost/WebSite/default.aspx"
directly into a browser, I get the
same message.
>
I created a simple html page and displayed it with
"http://localhost/WebSite/htmlpage.htm" and it works
fine.
>
Any ideas?
>


vs2005 doesnt use IIS by default, it uses its own development server
BTW, not sure if this has anything to do with your problem, but try
running the web app from VS in debug mode (F5).

if you actually need to use iis:
do you know much about IIS?
if you dont, my guess is that you havent set permissions on the folder
that contains the web site.

create a simple html page, put it in a folder, turn that folder into a
virtual directory using iis. right click the folder, click security,
and make sure that IUSR_[computername] IWAM_[computername] and aspnet
user accounts have at least read access for the folder.
then try and access your simple html page. if it runs then its not IIS,
its your setup. try checking the permissions on your web apps folder

TimR wrote:

Quote:

Originally Posted by

I am trying to create my first Web application in VS2005 and am pulling
my hair out!!!!
>
I cannot seem to get aspx pages to work from a locally installed copy
of IIS.
>
I am getting a ServerApplication Error and after reading a zillion
posts, I have tried the following:
>
I am running Win XP Pro SP2 with all current patches installed.
I turned off "friendly messages".
I uninstalled / reinstalled IIS
I deleted the ASPNET account "net user ASPNET /delete"
I re-registered asp.net "aspnet_regiis /i"
I open a browser and enter "http://localhost/iishelp"
The browser changes the address bar to:
"http://localhost/iishelp/iis/misc/default.asp"
so it appears that IIS is getting invoked.
>
I still get the message...
>
I have tried the same thing with 127.0.0.1 instead of localhost with
the same results.
I tried turning off my firewall, same result.
>
When I look in the system log I see no specific messages
>
The specific text from the error page is:
Server Application Error
The server has encountered an error while loading an application during
the processing of your request.
Please refer to the event log for more detail information. Please
contact the server administrator for
assistance.
>
I tried creating a WebPage using VS2005 that simply has a single label
"Hello World", and when I run it
from within VS or enter the url "http://localhost/WebSite/default.aspx"
directly into a browser, I get the
same message.
>
I created a simple html page and displayed it with
"http://localhost/WebSite/htmlpage.htm" and it works
fine.
>
Any ideas?

Server Application Unavailable

Hi all,
I'm getting a "Server Application Unavailable" error message when I runa query against my database which is in MS Access. Other pages arerunning fine. Also, the query runs for some particular combinations butfor other I get this error. I'm not sure why. And all this stratedhappening suddenly. Previously, it was running without problems and Ididn't even change the code. So why now?
the web server I'm using is Windows 2000 Server. The version of ASP.NET I have is 1.1.
I viewed the event log which describes a different error every time Irefresh the page. The errors are none of those that I found aftersearching on the net and msdn.
It seems I'm getting two error messages per refresh but they all seem to be different.
I have copied the event log below:
1)
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 0
Date: 5/12/2005
Time: 9:39:21 AM
User: N/A
Computer: (omitted)
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot befound. The local computer may not have the necessary registryinformation or message DLL files to display messages from a remotecomputer. The following information is part of the event: .NET Runtimeversion 1.1.4322.573- Setup Error: Failed to load resources fromresource file
Please check your Setup.

2)
Event Type: Error
Event Source: ASP.NET 1.1.4322.0
Event Category: None
Event ID: 1008
Date: 5/12/2005
Time: 9:39:55 AM
User: N/A
Computer:
Description:
aspnet_wp.exe (PID: 3256) was recycled because it failed to respond to ping message.

3)
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 0
Date: 5/12/2005
Time: 9:51:46 AM
User: N/A
Computer:
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot befound. The local computer may not have the necessary registryinformation or message DLL files to display messages from a remotecomputer. The following information is part of the event: .NET Runtimeversion 1.1.4322.573- aspnet_wp.exe - Common Language Runtime DebuggingServices: Application has generated an exception that could not behandled.
Process id=0x1320 (4896), Thread id=0xbd0 (3024).
Click OK to terminate the application.
Click CANCEL to debug the application..

4)
Event Type: Error
Event Source: ASP.NET 1.1.4322.0
Event Category: None
Event ID: 1000
Date: 5/12/2005
Time: 9:51:46 AM
User: N/A
Computer:
Description:
aspnet_wp.exe (PID: 4896) stopped unexpectedly.
I would really appreciate any help on this. Please help me.
Thanks in advance.
Usually, this happens when you have an infinite loop in your code. This seems to be confirmed by the problem only appearing for some parameters.