The other night, just did a format/re-install on my PC, and re-installed WinXP pro, IIS with FP Server Extensions, then installed VS2003.NET. But, I cant create ASP.NET apps on my local machine, I keep getting HTTP1.0/500 errors, any idea how to resovle this? I've tried uninstalling/re-installing VS.net, tried running aspnet_regiiis -i, tried playing around with permissions and no-go. This is starting to get really fusturating. any ideas?
Evan Schultz
Posts
-
HTTP error 500 when creating a new ASP.NET Project -
The remote server returned an error: (401) Unauthorized.I'm working on a web application for a local intranet, and I've run into a bit of a snag. Initially, I didnt think and had left anon access enabled on the web I was developing on, then as I hit a point where I needed to keep track of the current logged in user, I disabled anon access so I could use the ttpContext.Current.User.Identity.Name.ToString(); However, I am now getting the error
[WebException: The remote server returned an error: (401) Unauthorized.] System.Net.HttpWebRequest.CheckFinalStatus() System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) System.Net.HttpWebRequest.GetResponse() System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +94 System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +55 System.Xml.XmlTextReader.CreateScanner() +384 System.Xml.XmlTextReader.Init() +23 System.Xml.XmlTextReader.Read() +530 WorkOrders.WOGrid.LoadConfig(String key) in \\enterprisedev1\wwwroot$\workorders\wogrid.ascx.cs:387 WorkOrders.WOGrid.SetupColumns() in \\enterprisedev1\wwwroot$\workorders\wogrid.ascx.cs:422 WorkOrders.WOGrid.OnInit(EventArgs e) in \\enterprisedev1\wwwroot$\workorders\wogrid.ascx.cs:471 System.Web.UI.Control.InitRecursive(Control namingContainer) +241 System.Web.UI.Control.InitRecursive(Control namingContainer) +179 System.Web.UI.Control.InitRecursive(Control namingContainer) +179 System.Web.UI.Page.ProcessRequestMain() +197
any idea how to resolve this? Thanks - Evan -
Clumsy programmersI find that clumsyness is a result of me being lazy and not physically active. When my activity-level increases and doing more physicaly active things, my trips and falls decrease. But, if I'm going though a lazy period when I'm work->school->home->sleep and not doinng much, I'll start falling overmyself like its the next hottest fad. But, when I keep up with the gym, go out dancing, etc, my cordination quicly improves and my klutz tendancies fall to the wayside. Mind you, my spelling and grammer are horrible and I have a tendancy to always misspalce things. Or, I know where everything is, until I clean, then in which case I cant find anything. I have an easier time remebering "that report is under the binder next to my bed under the pile of dirty laundry" then "the report is in the filing cab...." where it should be is always the last place I look
-
It just surfs the web (more FireFox)Shog9 wrote: No. The day i would rather sit and hammer out a short note in MS-Word than in Notepad, we're on the right track. The day i'd rather sit and pour out my heart to a close friend in Word rather than in Notepad, we're actually getting somewhere. IMHO, precious few commercial software products have taken usability over gimmickry as a goal since we moved from full-screen DOS applications. The fact that i still suffer through a "wizard-style" interface to get pictures off my camera, and still go through two menus and two dialogs to print my address on an envelope is proof enough of this for me. 100% agree, notepad (well, actually metapad) often takes place as my primary text editor for everything from essays to quick emails. When I need to finnaly load it up into something to handle formatting/spell check/etc, I'll cut-paste over into word and do those things there. Ideally for me, when I install something, it should be setup at the start to simply 'do the basics of what it is to do'. For word, that would mean upon default install, would basicly act like notepad, but then as you use it, you can then enable the other features you want it to do which makes your life easier. Far to often, I find all the 'stuff' word does, slows me down more so than anything.
-
How to make life more intreastingI work 30 hours a week, goto school full-time which leaves me with 15 hours of class-time per week + homework/assignments + study group + extra studying and about 10 hours a week on commute atleast. But, I still find time to make 'fun time' in my life. Currently, my guilty-pleasure of choice is after-hour clubs on weekends, nothing like taking a nap after work for a few hours, waking up at 3am to be at the club for 5am, stumbling home finnaly early in the afternoon and sleeping the rest of the day :) I try and cram as much homework as possible into 2 or 3 weeknights a week, leaving a few hours free at night on the other nights for either social time out with friends, or 'me time' where I just stay home and relax and read or watch TV.
-
Accessing template properties in a DataGrid...why is it the most obvious things I try last?
public void SaveGrid() { TemplateColumn tc = (TemplateColumn)DataGrid1.Columns[0]; Debug.WriteLine(((WOGridTemplate)tc.ItemTemplate).fieldName); }
-
Coolest application iconsUsed to be a big fan of Goa Trance myself, which used to have quite a few Indian infuences in it (originating in GOA and all...), to bad it's morphed so far away from its roots now. Ahwell.
-
DataBind causing infinite loop?I am re-writing a control I was working on to use dynamically created template columns instead of using the designer for it. For one of my columns, I need a DropDown list, this worked in my old version fine. However, when writing the Databind event for the new control I am running into a problem where when I call the DataBind() on the listcontrol, it's causing an infinite loop. It simply cuts out on the bind, and the method re-starts, I cant figure out why this is happening. However, if I simply loop though all the items in the Dataset, and add them to the dropdown list that way, this works fine - however, much rather use databinding to do this.
private void TemplateControl_DataBindingDL(object sender,System.EventArgs e)
{
Debug.WriteLine("Starting DataBind:" + System.DateTime.Now);
DropDownList lc;
lc = (DropDownList) sender;
string strSqlCommand;
DataGridItem container = (DataGridItem) lc.NamingContainer;
SqlConnection sqlConnection1 = new SqlConnection();
DataSet dsTemp = new DataSet();
strSqlCommand = "SELECT " + fieldName + " FROM V_T_TASKS GROUP BY " + fieldName;SqlDataAdapter sqlDataAdapter1 = new SqlDataAdapter(strSqlCommand,sqlConnection1); sqlConnection1.ConnectionString = "...//connection string"; sqlConnection1.Open(); sqlDataAdapter1.Fill(dsTemp); Debug.WriteLine("assigning datasource..."); lc.DataSource = dsTemp; lc.DataTextField = fieldName; lc.DataValueField = fieldName; Debug.WriteLine("assignedg datasource... binding"); Debug.WriteLine("Rows count=" + dsTemp.Tables\[0\].Rows.Count); lc.DataBind(); Debug.WriteLine("..bound"); dsTemp.Clear(); Debug.WriteLine("Cleared..."); lc.Items.Add( DataBinder.Eval(container.DataItem,fieldName,"{0}")); Debug.WriteLine("Ending DataBind:" + System.DateTime.Now); lc.SelectedIndex = 0; sqlConnection1.Close(); }
When I run this, it'll just get to the last two debug statements, then jump back upto the start and keep looping - not throwing any errors or exceptions either. If I take out the databind and replace it with a normal loop to add each item in the dataset, it works fine. any ideas?
-
Accessing template properties in a DataGridI have a DataGrid in which I am adding columns dynamically to the grid, I followed the example from MSDN website, and created a class that implements ITemmplate. In this class though, I want to hold some more information about the column, and later, when proccessing events on the page, I want to be able to access this information. ie.
public class DataGridTemplate : System.Web.UI.ITemplate { public ListItemType templateType; public string columnName; public string fieldName; public DataGridTemplate(ListItemType type,string colname, string fname) { templateType = type; columnName = colname; fieldName = fname; } .. ..
When handling an event on the page, I want to be able to acess the fieldName variable. So, if on the calling page I have a button_click event, andforeach(DataGridItem ditem in DataGrid.Items) { foreach(TableCell tcell in dItem.Cells) { // How would access the fieldName/etc for DataGridTemplate from here? } }
-
SelectedIndexChanged not firing?(note: I am pretty new to ASP.NET, had little to no exp with it prior to starting this job a week ago) This has me scratching my head a little, as the other day at the end of work - this code worked for me, did what I wanted it to do. Get into the office today (working on xmas eve, yay!), do a quick compile to refresh myself to where I left off ... and - it no longer works. I am progmatically creating some web controls on the page, its an array of them - setting them up based on some attributes set in my tag. in the Page_Load function, I have code that sets up some headers, binds the datagrid, and then calls SetupFilters(); which then loops though alist of filters to be created, and spits them out. In the setup filter, i have ddList[x].SelectedIndexChanged += new EventHandler(SearchDropDown); // other setup stuff for the filter, populate it, etc this.Controls.Add(ddList[x]); Last night, this was working - this morning, its not, and nothing has changed between now and then. After scratching my head for a bit, I tried moving the call to SetupFilter() from Page_Load to OnInit - this now works. Problem solved, I think? But, I am not sure - why it stopped working? - was having that in page_load wrong in the first place? - why would it start working in OnInit but not page_load? I dont like doing 'blind fixs' where they seem to work for the time being, and not understand WHY the fix worked, as I'm sure it'll bite me in the ass in a few weeks.