|
running as local service is generally descouraged since it grants full access priviledges if IIS is compromised. Why, does everything work if you're running as local service?
Also, I didn't see any access denied errors in your FileMon output there, have you looked at RegMon? Maybe the process is trying to access the registry and being denied access.
|
|
|
|
|
I checked and everything's running as a Network Service. i was told the other settings have been tried but none work, and inputting a username and password caused IIS to say the site was unavailable.
here's the only access denied entries i found in regmon after i tried to execute sox.exe from our web app.
26.33727455 aspnet_wp.exe:2256 OpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer ACCESS DENIED Access: 0x1 DEVELOPMENT2\IUSR_DEVELOPMENT2
...there were a bunch in here, a few not founds and no more entries...
26.33812141 aspnet_wp.exe:2256 OpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ ACCESS DENIED Access: 0x20019 DEVELOPMENT2\IUSR_DEVELOPMENT2
26.33816528 aspnet_wp.exe:2256 OpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ ACCESS DENIED Access: 0x20019 DEVELOPMENT2\IUSR_DEVELOPMENT2
and no access denied errors in filemon. and again these are on my local machine with win xp and iis 5.1..i'm going to try to run these on the production server, but i'm not sure how that will turn out.
|
|
|
|
|
If you try to use a specific user account you will need to grant the proper access to that account. Namely, access to asp.net temp directory in the framework directory (c:\windows\microsoft.net\framework\vx.xxx\Temporary ASP.NET Files). Also your application directories and any other resources used by the application, including registry keys. Granting access to the asp.net temp directory and assigning the account to the IIS_WPG should cover the basic stuff and then you'll just need to make sure your application settings are correct. Here's an article on IIS_WPG[^] Otherwise, your site won't work as you have already discovered.
Have you tried using Local System to see if that corrects the problem? If it does you could compare the errors you're getting with success entries to see where the difference is and track down the issue that way.
|
|
|
|
|
|
Thanks for the info, we have another solution we're going to try to see if it helps, if we stop and start that IIS Admin service i assume it'll stop and start all of the websites correct?
We currently use Process.Start, i think we're going to try declaring a Process object and a ProcessInfo(not sure of the exact name) object and settings createnowindow = true and shellexecute= false, it works for us other places, mainly in applications where we dont want the screen to flicker when it uses the same application. if you can think of a reason this wouldnt help please let me know. I do appreciate all your help so far.
|
|
|
|
|
Yes, restarting IISAdmin restarts all web sites as well as their corresponding application pools.
It should certainly help, let us know if your solution works for the benefit of others who experience the same issues.
|
|
|
|
|
I always try to, my boss is currently writing a util class to run this app so we only have to change it in one place (the orig dev on this site wasnt very forward thinking). I'll let you know how we manage to fixit. I get to go play with VS2008 now.
|
|
|
|
|
I tried the Interact with Desktop checkbox, and restarted the services, but i'm still getting the same problem..we havnt had time to try the other method of starting the process, any other ideas...i'm giving the IUSR account and some others access to the directory that contains the program but i dont know if that will help with 2003, it did with 2000
|
|
|
|
|
We were running the App pool with Network Service set, we needed to create another app pool (someone changed the user under the "Configurable" selection so we didnt have the corect Password for the IWAM_<servername> account), in the new app pool we set the identity to configurable which was prepopulated with the IWAM_<servername> account, and gave the IIS_WPG group write access to the directory the files are created in, and everything worked...We also have the Interact with desktop option on for the IIS Admin service, we're going to try turning that off tonite. Hope this helps someone, feel free to contact me if you have any questions, Thanks for your help Mark.
|
|
|
|
|
I have a gridview inside which I have added a linkbutton the gridview will be binded from codebehind from two different tables(one at a time i.e if search parameter is category it will be binded from categorytable and if search parametre is item it will be binded from item table). Now what I want to do is to add OnCommand="mycommand" from codebeinh and CommandArgument from codebehind to the event oncommand. How can I do this. Please help me.Any help will be highly appreciated
<table>
<tr>
<td>
<asp:GridView ID="gridviewsearchresult" runat="server" OnRowDataBound="gridviewsearchresult_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="linbutton" runat="server" ></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton></td>
</tr>
</table>
Codebehind:
protected void gridviewsearchresult_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//Am I correct cant work here
LinkButton lnk1 = (LinkButton)e.Row.FindControl("linbutton");
lnk1.Click +=new System.Web.UI.WebControls.CommandEventHandler(OnLinkClick);
}
}
|
|
|
|
|
why to make this process that much complex....?
you better do as following:-
1.
try to get the command argument field with common name from both tables...
(using alias in select query).
e.g.
select catid, catname, cast(catid as varchar(10)) + ':CAT' as commandID from tblcategory
where searchtext=@searchtext
select itemid, itemname, cast(itemid as varchar(10)) + ':ITEM' as commandID from tblitems
where searchtext=@searchtext
2.
assign the function name & command argument at design time.
e.g
<asp:LinkButton ID="linbutton"
runat="server" commandname='cn'
commandargument='commandID' ></asp:LinkButton>
3.
in the code-behind, check for commandargument,
split it and check for CAT or ITEM and then do the needfull.
cheers !
Ashish Sehajpal
|
|
|
|
|
Well thank you very much i will give it a try
|
|
|
|
|
Thank you once again that was a wonderful this is my first asp.net so didnt have much idea on query
|
|
|
|
|
hi
i am making a web application in which i am using cms (content management system), i want to display body text in a textbox
which is store in html format in data base,when retriving it its as a string not in html format
and i want to display this data in html format
and on other hand user can update and store data in html format
but i don't want to use rtf
so plz if any one know plz tell me
thanks........
krishna veer singh
|
|
|
|
|
There are some other controls also available which you can use for this purpose. One example can be this[^].
Apurva Kaushal
|
|
|
|
|
but hoe can i deployee that fck editor in our site
give me any idia plz
krishna veer singh
|
|
|
|
|
What you need to do is to download that from the site I have mentioned and then include it in your project. You can get all the steps required in the document from the same place.
Apurva Kaushal
|
|
|
|
|
i can implement fck in our project
but i want to save this data in html format
if any one know plz helm me
krishna veer singh
|
|
|
|
|
If you use that editor in your project. Then you can provide the functionality of modifying the html content and surely you can save that html content into the database. That will exactly work as normal textbox control despite it will also give you the independence to use html content in addition to the normal content with some more functionality.
Apurva Kaushal
|
|
|
|
|
on page i have requiredfield validatorss and buttons, how could i set up, if i click button1 let validators check textboxes, if i click button2, Validators do no action?
it is a form, like
i add some data to grid , at the bottom of the page, there is a SAVE button, i click the save button , Validators show error messages
|
|
|
|
|
greekius@hotmail.com wrote: on page i have requiredfield validatorss and buttons, how could i set up, if i click button1 let validators check textboxes, if i click button2, Validators do no action?
Make the causevalidation property of the button 2 to false.
Apurva Kaushal
|
|
|
|
|
thank you:S
|
|
|
|
|
Always welcome..
Apurva Kaushal
|
|
|
|
|
hi friends i m using empty grid with one row has two dropdown and six textbox
In the grid first column i have two imagebutton ADD and Delete
now when i click on add new row is added
but i want that on click on delete one row is deleted
i m using update panel.
how do i do it.
|
|
|
|
|