I have two servers running Windows Server 2008 with IIS7. I'm moving my web application from one server to another. I've duplicated the same permissiong levels in the registry for access to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog and even created the necessary CustomLog entry.
However, when I run my web application on the new server I get the error "Requested registry access is not allowed" when I try to write to my CustomLog. I have NO idea why I'm getting this error. Like I said permission levels are identical to the server that can write to it's CustomLog.
For the heck of it, I wrote and deployed a Windows Forms app on the new server that read/writes to the same CustomLog ... the Windows Forms app works fine!! I'm pulling my hair out as to why my asp.net web app can't write to the CustomLog. I've given the following accounts full control:
Authenticated Users
SYSTEM
NETWORK SERVICE
Administrators (MyServerNameAdministrators)
Users (MyServerNameUsers)
IIS_IUSRS (MyServerNameIIS_IUSRS)
I've actually given more users that should need be, but it trying to get this to work, I'm assigning just about everyone. The application pool my web app uses is running NetworkService (same as my old server).
I'm really at my wits end on this one, I can't understany why one Windows 2008 Server with IIS7 works and the other identical server with same permissions doesn't??
I don't even know where to go to do further diagnostics?? Is there any place I can go to make sure the web app code (which is a direct copy of what lives on my working server) is running under the account I think it should be running? Grasping at straws because I don't see how the new server could be any different from my working server.
I have one textbox for searching purpose...In ASP.NET how to write textchanged event,that is when i enter the key....i know normally textchanged event occurs when i enter using (enter key word) i want keypress or keydown event........................
In my windows service application (c#), I am checking if an event log exists then write to that event log, otherwise create new event log and write to it. But it always writes to the generic "Application" event log. Do I need to change some settings?
yes client side must be java script but my qustion is not that.i am asking that can i use c# language to implement "actions" fired on "click side events" such as mouse over the reason for this question is that i remember some syntax of registering functions for particular events of formview, which are call when the event occurs (yes there ispostback involved" is something like the above possible for client side events using c# or even vb.net
protected void Page_Load(object sender, EventArgs e) { Label3.Text = "this is label three"; Label3.Attributes.Add("OnMouseOver", "testmouseover()"); } protected void testmouseover() { Label4.Text = "this is label 4 mouse is working!!"; }
I have an ASP.NET app that has a class that writes to the event log. Now it has been working fine when called from a WF Work Flow , as the WF runs under the app pool account (Network Service).
Now I want to use this event log class in an aspx page, which is where I am running into trouble becuase the aspx page is running under the IUSR account and I get an Access is Denied error, stating "Cannot open log for source 'XXX'. You may not have write access.".
Now my question is, how can I give the IUSR account permission to write to the event log, or is there another, better (not overly complicated), way?
I'm working with a third party product and my boss wants to be able to link directly to a specific screen in this product from our company intranet. When I drilled all of the way down to the screen in this product, I see that it is an ASP.Net application and the particular screen is reached via a link that triggers a javascript function. I can see the anchor tags for this link and a link to a different screen and I can see the javascript function. Both screens as well as the initial screen are all part of the same content form. It is pretty clear that this screen is modified based on which link is clicked but it isn't using query string values so it must be using button click events to modify what shows on the screen. My question is; with what I can see of the 2 links and the javascript function, is there a way to send a postback with that specific click event from a different site to that specific ASP.Net form so it would pull up the correct screen? Here are the javascript function and anchor tags:
function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } <a id="ctl00_popular1_pnlLeftPopular_dlsPopular_ctl00_lnkActivity" href="javascript:__doPostBack('ctl00$popular1$pnlLeftPopular$dlsPopular$ctl00$lnkActivity','')">IT Request for Change (RFC)</a> <a id="ctl00_popular1_pnlLeftPopular_dlsPopular_ctl01_lnkActivity" href="javascript:__doPostBack('ctl00$popular1$pnlLeftPopular$dlsPopular$ctl01$lnkActivity','')">VOSA</a>
Sys.Webforms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near ' i have kept button in updatepanel and i am getting this error
I have created a Web User Control and convert it into Web Custom Control and add it in Tool Box of Visual Studio. When i drag and drop this web custom control from tool box, i want to execute some sql for that web Control. How do i write a code in Web User Control so that it will execute on drag and drop of Web Custom Control prepared from this Web User Control?
in my asp.net website, i have textbox control inside datagrid control. I would like to add textchange event in javascript where i need to sum the values inside textboxes in datagrid and show that addition in lable outside grid. I would also like to do same addition in codebehind(*.cs) But codebehind only execute when browser not support javascript. It means when browser support javascript only client side javascript should execute not server side code
this is performance related question. i have gridview and i wrote gridview selected index changing event .In that event i am enable and disable one button out side the gridview..
it is working fine and fast in my local system ..the problem is ,if i upload my application in server ,it takes more time to perform action in gridview selected index changing.how to avoid that problem ?
I am working on a feature to throw a warning message if the user has unsaved values in a form. I can see that in the next post there is a explanation about how to do that [URL]now the problem is that i need to do the same but using a ascx control and i don't know where put the next code in my ascx control.
<body onunload="checkSave()">
NB: I'm working on dnn so that i don't have any change to add this code in the parent page of the control.
I am working on a web app that will heavily rely on configuration. The configuration is also will be written by another process or human. I am looking to get response on best practices in .net 3.5 on how to implement this case. I had used the configuration section of an early version of the Enterprise Library Applications Block. I really liked working with it but from what I hear it is discontinued in current versions. Hence the question... Need to be able to serialize collections, pick up file write event to reload new instance of config into memory.
Can we write property in property?IN the page load event we have page property and we can find another page property in that page property.Pls let me know how this is happening
So,my question is that why we basically use @ before the sql query.If I don't use @ before that then it again work fine (does not give any error), then what is need of using "@"?
i am calling a function which is inside Homescroll.ascx.cs from Homescroll.ascx so i wrote on Homescroll.ascx as <% Response.Write(scroll()); %> but all this is in update panel,and i am getting errors. so is their any other way to call function from homescroll.ascx to homescroll.ascx.cs,instead of response.write();
I am recently trying to set enough permissions to let web application write entries in System's "Event Log" .The following are the lines of code i added in web.config files:
The problem at the moment is that web.config generates the error "invalid syntax" if i include the line: <trust level="CustomMedium" originUrl=""/>. In case i remove the line , site compiles successfully. Did i go wrong any where with the above codes.
I want to write a page where user's can write a blog post and publish it to the blog. I've downloaded blog engine .NET and looked at the code and I like the way they do it, but it's completely an overkill of what I need. What I need is only a title, author, date, and the blog post it self. I don't even want users to post comments or anything like that. My approach is to save all those blog post information into an xml and then when a page loads it loops around those xml files to show the blog post.
how can I create stored procedure and write my select statement in it, I know how to create dataset then put type stored procedure and assign it to the sp ... what I want is writing my sp... how can I make it ?
check the following code, this is what I want to write put I don't know where or how !