Showing posts with label access. Show all posts
Showing posts with label access. Show all posts

Saturday, March 31, 2012

server side code access the text of <asp:label> changed by client-side javascript co

Is possible for server side code to access the text of <asp:label> changed
by client side javascript code?Yes, of course you can do it.

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
No, you will need to double the new value into a hidden text field, or some
other postable field, and then look for the change of the text through the
Request.Forms["txtHidden1"] property on postback to determine if the text
has changed.

bill

"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
If you mean accessing the text via the label's Text property, the answer is
no.

You can pass the changed text to the server in one of the common ways of
passing values from client to server, for example in a hidden field.

Eliyahu

"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?

server side code access the text of <asp:label> changed by client-side javascri

Is possible for server side code to access the text of <asp:label> changed
by client side javascript code?Yes, of course you can do it.
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>
No, you will need to double the new value into a hidden text field, or some
other postable field, and then look for the change of the text through the
Request.Forms["txtHidden1"] property on postback to determine if the text
has changed.
bill
"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>
If you mean accessing the text via the label's Text property, the answer is
no.
You can pass the changed text to the server in one of the common ways of
passing values from client to server, for example in a hidden field.
Eliyahu
"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>

Monday, March 26, 2012

Server Unavailable

Hi everybody,
I've got some big problems today. I turned on my web server this morning
and tried to access my site, and I got the following error in my browser:

Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.
Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur.

So I check the event log and there are 2 errors logged there:
aspnet_wp.exe could not be launched because the username and/or password
supplied in the processModel section of the config file are invalid

AND

aspnet_wp.exe could not be started. The error code for the failure is
80004005. This error can be caused when the worker process account has
insufficient rights to read the .NET Framework files. Please ensure that the
..NET Framework is correctly installed and that the ACLs on the installation
directory allow access to the configured account.

I looked at a couple dozen web sites trying to figure out what could be
wrong, but none of the solutions offered worked. I've tried reinstalling
ASP.net with and without first deleting the ASPNET user. I've changed the
username and password in the process model section of machine.config to
another local user. I've done pretty much everything anyone can tell me
thus far. The server is not a domain controller. The really weird thing is
that all of this was working fine when I left the office last night, and now
it doesn't work.
Anyone have any ideas? Please help.

Thanks, MattWe run into this problem quite a bit. For SOME reason (still not sure why), the following solution works every time:

1.) Go to Control Panel > Admin > Servives
2.) Select the ASPNET State Service
3.) Change the logon to the system account (click apply)
4.) Change the logon back to the ASPNET and clear the password (click apply)

Should be all set from there.

"Matt MacDonald" wrote:

> Hi everybody,
> I've got some big problems today. I turned on my web server this morning
> and tried to access my site, and I got the following error in my browser:
> Server Application Unavailable
> The web application you are attempting to access on this web server is
> currently unavailable. Please hit the "Refresh" button in your web browser
> to retry your request.
> Administrator Note: An error message detailing the cause of this specific
> request failure can be found in the application event log of the web server.
> Please review this log entry to discover what caused this error to occur.
> So I check the event log and there are 2 errors logged there:
> aspnet_wp.exe could not be launched because the username and/or password
> supplied in the processModel section of the config file are invalid
> AND
> aspnet_wp.exe could not be started. The error code for the failure is
> 80004005. This error can be caused when the worker process account has
> insufficient rights to read the .NET Framework files. Please ensure that the
> ..NET Framework is correctly installed and that the ACLs on the installation
> directory allow access to the configured account.
> I looked at a couple dozen web sites trying to figure out what could be
> wrong, but none of the solutions offered worked. I've tried reinstalling
> ASP.net with and without first deleting the ASPNET user. I've changed the
> username and password in the process model section of machine.config to
> another local user. I've done pretty much everything anyone can tell me
> thus far. The server is not a domain controller. The really weird thing is
> that all of this was working fine when I left the office last night, and now
> it doesn't work.
> Anyone have any ideas? Please help.
> Thanks, Matt
>

Server Unavailable

Hi everybody,
I've got some big problems today. I turned on my web server this morning
and tried to access my site, and I got the following error in my browser:
Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.
Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur.
So I check the event log and there are 2 errors logged there:
aspnet_wp.exe could not be launched because the username and/or password
supplied in the processModel section of the config file are invalid
AND
aspnet_wp.exe could not be started. The error code for the failure is
80004005. This error can be caused when the worker process account has
insufficient rights to read the .NET Framework files. Please ensure that the
.NET Framework is correctly installed and that the ACLs on the installation
directory allow access to the configured account.
I looked at a couple dozen web sites trying to figure out what could be
wrong, but none of the solutions offered worked. I've tried reinstalling
ASP.net with and without first deleting the ASPNET user. I've changed the
username and password in the process model section of machine.config to
another local user. I've done pretty much everything anyone can tell me
thus far. The server is not a domain controller. The really weird thing is
that all of this was working fine when I left the office last night, and now
it doesn't work.
Anyone have any ideas? Please help.
Thanks, MattWe run into this problem quite a bit. For SOME reason (still not sure why),
the following solution works every time:
1.) Go to Control Panel > Admin > Servives
2.) Select the ASPNET State Service
3.) Change the logon to the system account (click apply)
4.) Change the logon back to the ASPNET and clear the password (click apply)
Should be all set from there.
"Matt MacDonald" wrote:

> Hi everybody,
> I've got some big problems today. I turned on my web server this mornin
g
> and tried to access my site, and I got the following error in my browser:
> Server Application Unavailable
> The web application you are attempting to access on this web server is
> currently unavailable. Please hit the "Refresh" button in your web browse
r
> to retry your request.
> Administrator Note: An error message detailing the cause of this specific
> request failure can be found in the application event log of the web serve
r.
> Please review this log entry to discover what caused this error to occur.
> So I check the event log and there are 2 errors logged there:
> aspnet_wp.exe could not be launched because the username and/or password
> supplied in the processModel section of the config file are invalid
> AND
> aspnet_wp.exe could not be started. The error code for the failure is
> 80004005. This error can be caused when the worker process account has
> insufficient rights to read the .NET Framework files. Please ensure that t
he
> ..NET Framework is correctly installed and that the ACLs on the installati
on
> directory allow access to the configured account.
> I looked at a couple dozen web sites trying to figure out what could be
> wrong, but none of the solutions offered worked. I've tried reinstalling
> ASP.net with and without first deleting the ASPNET user. I've changed the
> username and password in the process model section of machine.config to
> another local user. I've done pretty much everything anyone can tell me
> thus far. The server is not a domain controller. The really weird thing
is
> that all of this was working fine when I left the office last night, and n
ow
> it doesn't work.
> Anyone have any ideas? Please help.
> Thanks, Matt
>
>

server unavailable error message

i get thius error msg when i run my aspx page
Server Application Unavailable
The web application you are attempting to access on this
web server is currently unavailable. Please hit
the "Refresh" button in your web browser to retry your
request.

Administrator Note: An error message detailing the cause
of this specific request failure can be found in the
application event log of the web server. Please review
this log entry to discover what caused this error to
occur.
and when i viwew evernt log
i see the following msg:

Event Type:Error
Event Source:ASP.NET 1.1.4322.0
Event Category:None
Event ID:1084
Date:10/27/2003
Time:9:19:58 AM
User:N/A
Computer:SHAHZADPC
Description:
aspnet_wp.exe could not be started. The error code for the
failure is 80004005. This error can be caused when the
worker process account has insufficient rights to read
the .NET Framework files. Please ensure that the .NET
Framework is correctly installed and that the ACLs on the
installation directory allow access to the configured
account.

wat shud i do
it was woeking well previously,suddenly this error has
started teasing mecheck out this faq
http://www.extremeexperts.com/Net/F...navailable.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"shahzad" <khuwajashahzad@.hotmail.com> wrote in message
news:048701c39c41$c0886f40$a101280a@.phx.gbl...
> i get thius error msg when i run my aspx page
> Server Application Unavailable
> The web application you are attempting to access on this
> web server is currently unavailable. Please hit
> the "Refresh" button in your web browser to retry your
> request.
> Administrator Note: An error message detailing the cause
> of this specific request failure can be found in the
> application event log of the web server. Please review
> this log entry to discover what caused this error to
> occur.
> and when i viwew evernt log
> i see the following msg:
> Event Type: Error
> Event Source: ASP.NET 1.1.4322.0
> Event Category: None
> Event ID: 1084
> Date: 10/27/2003
> Time: 9:19:58 AM
> User: N/A
> Computer: SHAHZADPC
> Description:
> aspnet_wp.exe could not be started. The error code for the
> failure is 80004005. This error can be caused when the
> worker process account has insufficient rights to read
> the .NET Framework files. Please ensure that the .NET
> Framework is correctly installed and that the ACLs on the
> installation directory allow access to the configured
> account.
> wat shud i do
> it was woeking well previously,suddenly this error has
> started teasing me
Did you recently apply an IE security update to XP?

http://www.asp.net/faq/ms03-32-Issue.aspx

"shahzad" <khuwajashahzad@.hotmail.com> wrote in message
news:048701c39c41$c0886f40$a101280a@.phx.gbl...
> i get thius error msg when i run my aspx page
> Server Application Unavailable
> The web application you are attempting to access on this
> web server is currently unavailable. Please hit
> the "Refresh" button in your web browser to retry your
> request.
> Administrator Note: An error message detailing the cause
> of this specific request failure can be found in the
> application event log of the web server. Please review
> this log entry to discover what caused this error to
> occur.
> and when i viwew evernt log
> i see the following msg:
> Event Type: Error
> Event Source: ASP.NET 1.1.4322.0
> Event Category: None
> Event ID: 1084
> Date: 10/27/2003
> Time: 9:19:58 AM
> User: N/A
> Computer: SHAHZADPC
> Description:
> aspnet_wp.exe could not be started. The error code for the
> failure is 80004005. This error can be caused when the
> worker process account has insufficient rights to read
> the .NET Framework files. Please ensure that the .NET
> Framework is correctly installed and that the ACLs on the
> installation directory allow access to the configured
> account.
> wat shud i do
> it was woeking well previously,suddenly this error has
> started teasing me
i have made the changes but im still geting the smae msg
i have win2K profesional wid VS.net 2003
plz temme how can i remove asp.net
i want to reinstall it
i have reinstalled the vs.net
but there is nothing different
i have tried ur articles as well

>--Original Message--
>Did you recently apply an IE security update to XP?
>http://www.asp.net/faq/ms03-32-Issue.aspx
>
>"shahzad" <khuwajashahzad@.hotmail.com> wrote in message
>news:048701c39c41$c0886f40$a101280a@.phx.gbl...
>> i get thius error msg when i run my aspx page
>> Server Application Unavailable
>> The web application you are attempting to access on this
>> web server is currently unavailable. Please hit
>> the "Refresh" button in your web browser to retry your
>> request.
>>
>> Administrator Note: An error message detailing the cause
>> of this specific request failure can be found in the
>> application event log of the web server. Please review
>> this log entry to discover what caused this error to
>> occur.
>> and when i viwew evernt log
>> i see the following msg:
>>
>> Event Type: Error
>> Event Source: ASP.NET 1.1.4322.0
>> Event Category: None
>> Event ID: 1084
>> Date: 10/27/2003
>> Time: 9:19:58 AM
>> User: N/A
>> Computer: SHAHZADPC
>> Description:
>> aspnet_wp.exe could not be started. The error code for
the
>> failure is 80004005. This error can be caused when the
>> worker process account has insufficient rights to read
>> the .NET Framework files. Please ensure that the .NET
>> Framework is correctly installed and that the ACLs on
the
>> installation directory allow access to the configured
>> account.
>>
>> wat shud i do
>> it was woeking well previously,suddenly this error has
>> started teasing me
>>
>>
>>
>
>.
i have fixed it by garace of ALLAH
ihave done the following steps
1)create accnt named aspdemo
2)added this users group
3)gave it "log on as batch job" right
4)add this accnt and passowrd in processmodel section of
machine.config file
5)restarted the PC
u always restart ur machine ater making changes in
machine.config in order for these changes to be efective

>--Original Message--
>i get thius error msg when i run my aspx page
>Server Application Unavailable
>The web application you are attempting to access on this
>web server is currently unavailable. Please hit
>the "Refresh" button in your web browser to retry your
>request.
>Administrator Note: An error message detailing the cause
>of this specific request failure can be found in the
>application event log of the web server. Please review
>this log entry to discover what caused this error to
>occur.
> and when i viwew evernt log
>i see the following msg:
>Event Type:Error
>Event Source:ASP.NET 1.1.4322.0
>Event Category:None
>Event ID:1084
>Date:10/27/2003
>Time:9:19:58 AM
>User:N/A
>Computer:SHAHZADPC
>Description:
>aspnet_wp.exe could not be started. The error code for
the
>failure is 80004005. This error can be caused when the
>worker process account has insufficient rights to read
>the .NET Framework files. Please ensure that the .NET
>Framework is correctly installed and that the ACLs on the
>installation directory allow access to the configured
>account.
>wat shud i do
>it was woeking well previously,suddenly this error has
>started teasing me
>
>.

Saturday, March 24, 2012

Server Unavailable message

I have taken over responsibilities for a .NET app that runs on IIS Server
locally and has a user that has a local Access database that launches the ap
p
from a URL. They are receiveing the following error:
Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.
Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur.What does the error logged to the
Application Event Log say ?
Juan T. Llibre
ASP.NET MVP
===========
"Steven Babb" <StevenBabb@.discussions.microsoft.com> wrote in message
news:1D03B110-B0C9-4A8F-AEC3-FCA9F5A24879@.microsoft.com...
>I have taken over responsibilities for a .NET app that runs on IIS Server
> locally and has a user that has a local Access database that launches the
> app
> from a URL. They are receiveing the following error:
> Server Application Unavailable
> The web application you are attempting to access on this web server is
> currently unavailable. Please hit the "Refresh" button in your web
> browser
> to retry your request.
> Administrator Note: An error message detailing the cause of this specific
> request failure can be found in the application event log of the web
> server.
> Please review this log entry to discover what caused this error to occur.
>

Server Unavailable message

I have taken over responsibilities for a .NET app that runs on IIS Server
locally and has a user that has a local Access database that launches the app
from a URL. They are receiveing the following error:

Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.

Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur.What does the error logged to the
Application Event Log say ?

Juan T. Llibre
ASP.NET MVP
===========
"Steven Babb" <StevenBabb@.discussions.microsoft.com> wrote in message
news:1D03B110-B0C9-4A8F-AEC3-FCA9F5A24879@.microsoft.com...
>I have taken over responsibilities for a .NET app that runs on IIS Server
> locally and has a user that has a local Access database that launches the
> app
> from a URL. They are receiveing the following error:
> Server Application Unavailable
> The web application you are attempting to access on this web server is
> currently unavailable. Please hit the "Refresh" button in your web
> browser
> to retry your request.
> Administrator Note: An error message detailing the cause of this specific
> request failure can be found in the application event log of the web
> server.
> Please review this log entry to discover what caused this error to occur.

Server, Session, Request and Response in Classes?

Hi there,

Perhaps a really strange question...

Is there a way that I can access the Server, Session Request and Response objects from the current page request from inside a class (not a web control) without explicitly passing them in from a web control?

My problem is that I have been developing my web application thinking that all static class members would be reset after each page request - but I've just realized that those members keep their values from request to request (and I assume across all users too?) This means I have some major restructuring to do, and the only way I can think of fixing this is to store my user-specific objects in the user session...and thus, I need access to the Session in some of my classes that accessed those static members. :S

Having a tough time wrapping my mind around the whole thing at the moment...I'm used to ASP 5.0. Maybe there's a better way to go about this altogether.

to access those items from a non-page class, you can use:

HttpContext.Current

this will give you access to

HttpContext.Current.Session
HttpContext.Current.Request
etc...


The class member properties/values wont be passed unless you are rebinding them, saving them in session/application or some other way passing them. It's more then likely a matter of how you are populating them that's causing you frustration.

Show the specific code you are using and what you think is the cause of the problem... we'll see what we can do to help out.


I think I know what you mean. Offloading stuff blindly into the user session is not a good idea. I have a lot of restructuring to do...

Speaking of which, there doesn't happen to be a convenient way to get the current instance of the System.Web.UI.Page object from within any class, is there? I couldn't find anything relevant to this in the HttpContext, and I don't know where else to look.

Thanks!!


you shoudnt need it in your class (the business layer should be UI independent).... if, for some reason you do though you'll have to pass in the instance of it.

Draggor:

there doesn't happen to be a convenient way to get the current instance of the System.Web.UI.Page object from within any class, is there?

You can get at the current page instance from HttpContext like this:

Dim currentPageAs Page =DirectCast(HttpContext.Current.Handler, Page)

Server.execute

Hi,
I face a problem
is it possible to access an asp/vbscript variable created in the parent by t
he child in the server.execute.
If so an example block.
TIA.
Raj.going to have to either pass it (form, querystring) or store it and read it
back in (application var, db, cookie, session, etc).
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Raj" <Raj@.discussions.microsoft.com> wrote in message
news:19B6E194-6F51-4EBC-8AD2-CA3330F22E89@.microsoft.com...
> Hi,
> I face a problem
> is it possible to access an asp/vbscript variable created in the parent by
the child in the server.execute.
> If so an example block.
> TIA.
> Raj.

Tuesday, March 13, 2012

Server.MapPath

I am trying to set up the "path" for were my Access Database is on my
Webhost provideer. When I set up my FTP account, it indicated that my
physical path was "E:\www.MyWebsite.com".

When I asked my webhost if I could use this as my physical address, they
indicated that I should create a directory under the root and place my
access database there and the use the "Server.MetPath(string)" to retrieve
the path.

My question is what value do I place in the "String" portion of the method.
I am guessing that I would put "www.MyWebsite.com/MyDataFolder". Is that
correct?

If that is correct, then how will I be able to modify my code to work on my
test machine and work on the production box without changes? I would guess
that I would use "localhost" or my IP address, but that would not be the
same for when I move the code to the production box. I guess I could place
the value in the web.config file, but is there a better way to do this?

Thanks in advance for your assistance!!!!!!!!!!!!Hi Jim,
You will need to use Server.MapPath not Server.MetPath
In your website say http://www.MyWebsite.com/MyDataFolder
,MyDataFolder is the virtual path.
To translate this virtual path into the actual physical path you need to use
Server.MapPath.
It will be like : Server.MapPath("MyDataFolder") which will give you
the physical path.
The output of this will be like E:\www.MyWebsite.com\MyDataFolder which is
the actual physical path.

Hope this helps.
Regards,
Marshal Antony
..NET Developer
http://www.dotnetmarshal.com

"Jim Heavey" <JimHeavey@.nospam.com> wrote in message
news:Xns9498E011611CBJimHeaveyhotmailcom@.207.46.24 8.16...
> I am trying to set up the "path" for were my Access Database is on my
> Webhost provideer. When I set up my FTP account, it indicated that my
> physical path was "E:\www.MyWebsite.com".
> When I asked my webhost if I could use this as my physical address, they
> indicated that I should create a directory under the root and place my
> access database there and the use the "Server.MetPath(string)" to retrieve
> the path.
> My question is what value do I place in the "String" portion of the
method.
> I am guessing that I would put "www.MyWebsite.com/MyDataFolder". Is that
> correct?
> If that is correct, then how will I be able to modify my code to work on
my
> test machine and work on the production box without changes? I would
guess
> that I would use "localhost" or my IP address, but that would not be the
> same for when I move the code to the production box. I guess I could
place
> the value in the web.config file, but is there a better way to do this?
> Thanks in advance for your assistance!!!!!!!!!!!!
You probably just want Server.MapPath("/MyDataFolder"). Since the string
doesn't contain the host name, there is no need to change it for your test
server.

"Jim Heavey" <JimHeavey@.nospam.com> wrote in message
news:Xns9498E011611CBJimHeaveyhotmailcom@.207.46.24 8.16...
> I am trying to set up the "path" for were my Access Database is on my
> Webhost provideer. When I set up my FTP account, it indicated that my
> physical path was "E:\www.MyWebsite.com".
> When I asked my webhost if I could use this as my physical address, they
> indicated that I should create a directory under the root and place my
> access database there and the use the "Server.MetPath(string)" to retrieve
> the path.
> My question is what value do I place in the "String" portion of the
method.
> I am guessing that I would put "www.MyWebsite.com/MyDataFolder". Is that
> correct?
> If that is correct, then how will I be able to modify my code to work on
my
> test machine and work on the production box without changes? I would
guess
> that I would use "localhost" or my IP address, but that would not be the
> same for when I move the code to the production box. I guess I could
place
> the value in the web.config file, but is there a better way to do this?
> Thanks in advance for your assistance!!!!!!!!!!!!

Server.MapPath

When I access data from the root folder it is ok like
Server.MapPath ("ABC.mdb")
Please anyone tell me that how can I access the same file from the Subfolder. I have another application running in the subfolder but I want to access database on the root.
Thanks in advanceIf you server supports it you could do ../ notation. each ../ constitutes a folder level

Server.Mappath("../ABC.mdb") - 1 subfolder level
Server.Mappath("../../ABC.mdb") - 2 subfolder levels

server.mappath

frm1.1 c#

in my project library(.cs) when i use server.mappath() it never works why?

i use

HttpContext.Current.Server.MapPath();

to access but it never reads the path of the file give why?

Are you sure your project library has access to the HttpContext? In other words, when you are debugging, is HttpContext.Current null?


What do you mean by it never works!! make sure you import the System.Web namespace using System.Web;

HC


thanks everybody for the reply

haissam i have used system.web namespace

i dont know why the server.mappath never gets the file path when in mylibrary project files


Are you working on a web application ?