|
Often when a new user is having problems writing to the event log I add them to the admin group run the app once and then remove them. There is something about the event log that after you have written to it once it works after that. Your user that you are running the app pool will need to do this and will need rights to write to the registry. I think if you add this service user to admin run the app, you won't get the error any more. Then stop the app pool take the user out of the admin group and try it again. It should work.
Hope that helps.
Ben
|
|
|
|
|
Thanks Ben, that worked a treat.
The first time I tried it, it didn't work... Then I realised we're running the application in a cluster, so I had to give the service account admin access on all the servers / nodes before it worked.
For other people out there experiencing the same problem, it looks like the UIPAB is trying to create it's own event log in the regsitry - which it normally doesn't have access to do. Giving it temporary admin access allowed it to create the new log, after which you can remove admin access and the new log will still be there for it to use as normal.
|
|
|
|
|
Glad that worked for you. There is a manual way to do it, but it is much easier to just give the user admin access and then remove it again after it is working.
Ben
|
|
|
|
|
I am learning ASP .NET and am going though an ASP .NET book. I am wondering if you could hopefully help me out. I have a very simple page with text boxes, prompting for a name, age, social security #, and number of children. I have a required field validator but only for the name text box. The name text box is the control to validate. However, for my submit buttons code, my else statement will not run and in the book it does so I'm flabbergasted.
If Page.IsValid then
results.text = "Input is valid..."
Else
results.text = "Input is not valid..."
End If
The first statement will run fine if something is in the text box. Thank you for your help.
|
|
|
|
|
sounds like your aspx page differs from the example. Is your validator doing client side validation ? If so, this server code will never fail.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It's set to runat="server" per the html markup. I have read this section of this tutorial 2 times and it does not differ. I have found I am not the only person to encounter this.
|
|
|
|
|
OK, then the book is wrong. Basically, runat="server" is mandatory, I was talking about other fields. The default behaviour for a validator is for you to give it text messages to display and it will do so, without posting back. You check Page.IsValid to protect against people attacking your page, not for run of the mill operation
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Let me start by saying that past basic dreamweaver I haven’t done much. What I need help with is this… I have a feedback page http://www.talligewi62.org/burning_issues.htm where I need to add a Captcha Image using ASP.NET 2.0. I have looked through this site and I guess that I just not getting something because everything I’ve tried failed. Any help you could provide me would be great.
Thanks for what ever you can do for me;
Nick
|
|
|
|
|
I thought there was at least one article on this ?
The tricky part is the image processing code to obsfucate the text in the bitmap you end up sending to the client. The rest seems straightforward to me. What have you tried ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want to create a MessageBox, that I want to
use on many of my web pages.
The MessageBox is a System.Web.UI.UserControl and is an .ascx file.
It contains a table with som labels in it.
Now on my UserEdit.aspx site I've added an asp:PlaceHolder with ID="plhMessage".
At the code behind I want to add a messagebox, something like:
<br />
plhMessage.Visible = true;<br />
MyMessageBox mb = new MyMessageBox();<br />
mb.Type = global::My.Web.Controls.MyMessageBox.EnumMessageType.Ok;<br />
mb.MessageText = "Data was saved.";<br />
plhMessage.Controls.Add(mb);<br />
Now at the command plhMessage.Controls.Add(mb); it goes
in to the protected void Page_Load(object sender, EventArgs e) of
the MyMessageBox control. But when I look at any of the Label properies it is NULL.
The result is of course that there is no message to view.
What am I doing wrong?
Or is there a better way of doing this in VisualStudio 2005?
(maybe somthing like an asp:Content, asp:ContentPlaceHolder witch I'm using on my masterpage)
I've easely done this with controls of type "WebControl", but then I've had to
create all the items with codelines, and I want the flexability an System.Web.UI.UserControl
gives with reference to design layout.
Thank you.
Thomas
|
|
|
|
|
You can always use javascript it is a little easier.
(.net 2.0)
private void ShowDialog(string p_msg)
{
Type cstype = this.GetType();
StringBuilder tmpSB = new StringBuilder();
tmpSB.Append("<script type=text/javascript>");
tmpSB.Append("alert('" + p_msg + "')");
tmpSB.Append("</script>");
ClientScript.RegisterClientScriptBlock(cstype, "Save", tmpSB.ToString());
}
Ben
|
|
|
|
|
You can't use MessageBox in ASP.NET applications. You'll have to resort to javascript alert or confirm or create your own popup.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
I am developing Asp.net 2.0 website. All the linkbuttons in my website does not defaultly change the color after visiting. Even I tried to use this common CSS property
a:visited
{
color: #800080;
}
a:link
{
color: #0000FF;
}
a:active
{
color: #0000FF;
}
It is not working. Please help me.
Thanks
Mohamed
|
|
|
|
|
Put the pseudo classes for links in this order:
:link<br />
:visited<br />
:hover<br />
:active
---
single minded; short sighted; long gone;
|
|
|
|
|
Howdy All:
I have a ASP.NET 2.0 "content" page derived from a custom "Base Page" class based on the System.Web.UI.Page class.
The "Content" page has a placeholder control that I want to get a reference to in the "Base Page" class.
I have tried FindControl() but it doesn't seem to find it.
Any ideas?
Thanks for any help.
- The Trooper
|
|
|
|
|
Why can't you just expose the control ? Are you castng the page to the correct type ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Friends, i am in a problem in my project i want to convert runtime xmldocument( document is not stored in physical path it will generted from the code) i want to convert that into memory stream.
please anybody help me.
regarda
alex
|
|
|
|
|
Hello!
this is ravi, i am trying to edit the form view control but i am unable to do that. i don't want to use sqldatasource control.I want to handle the events in code behind file.
|
|
|
|
|
I have a custom control inheriting from a GridView. That gridview already has items in its smart tasks list. I want to add a few to that list. I created a class inheriting from System.Web.UI.Design.ControlDesigner and a helping DesignerActionList class. I set the designer attribute on my control's class as such [Designer(typeof(MBGridViewDesigner))] which does get my item on to the list, but it wipes out all the existing items. If there a way for me to simply add my new items to the existing list?
|
|
|
|
|
|
|
In Javascript u can Get URL of Current Location as
window.location();
assign to var winLoc;
U Can Get WinLoc as www.test.net/Add.aspx?fsrno=3
Now Find the Find THe IndexOf "=" in Above String because this is unique
and Split string as subString after position "="
THen U can Get QueryString
Hard To Say
|
|
|
|
|
Hi,
I am needing help with URL rewriting. I have not found a good article on the Internet. If any one knows of a good article please let me know. If any one can help with advice please let me know.
/2007/09/23/microsoft-passes-the-openajax-interopfest-test.aspx
This example URL was taken from a blog. This is what I am after.
Regards
|
|
|
|
|
hi i need search engine in my site..
so how can i use google search engine in my site
thxxx
Ajay Rathi
software engineer
NOIDA(UP),INDIA
|
|
|
|
|