I guess this is simple and straight question. IIS integrated windows authentication doesn't accept my userid and password. I am using the same userid and password that i use to log into my computer. but iis is not accepting it. Anonymous authentication is unchecked This is a windows XP proffessional not connected to any server should i be incuding my computer name also in the userID ?? Any help is appreciated, yojimbo
red60mans
Posts
-
IIS integrated windows authentication doesn't accept my userid and password -
Profile properties cannot be retrieved eventhough they are being saved to databaseHi, i have a createUserwizard control in which i also collect some Personalisation information stored using Profile. Profile.FirstName = Firstname.Text; Profile.LastName = Lastname.Text; Profile.Age = Age.Text; Profile.Save(); then later in my profile page after user has been authenticated i am trying to show the profile properties FN.Text = Profile.FirstName; LN.Text = Profile.LastName; ageIs.Text = Profile.Age; Now the problem is the profile properties are being stored in database(which i can see in sqlserver2005) but when i try to diplay profile properties in my Profile page data is not being retrieved from the database . I can not understand why?? yojimbo
-
https for secure pages in asp.neti have the following setting in my web.config file: i want the pages in Secure folder to be accessed as "https" rather than http. However the other pages of the application still use http can some one help how to do this yojimbo
-
child form shows menustrip when automatically merging with MDI parent formdont worry all i had to do was set the childs menustrip.visible = false yojimbo
-
access the toolstripmenuItem of MDI form from child formHow do i disable the a toolstripmenuItem of menustrip in an MDI form from the child form. or can i access the toolstripmenuItem of MDI form from child form saying some thing like this.MdiParent.MytoolstripmenuItem?? well i dont to pass the MDI form instance to every child form, just to disable some toolstripmenuItems Any help is appreciated red yojimbo
-
child form shows menustrip when automatically merging with MDI parent formIn my windows app I have a MDI parent form and a child form. In my parent form i have Menustrip control with toolstripmenu items File and windows File further has subItems open and exit In child form i have a Menustrip with toolstipmenu item File. This File item has a subItem save and fileItem has the following setting fileItem.MergeAction = MergeAction.MatchOnly; Now automatic merging of the child and parent forms is going rightly after merging my Parent form menustrip has this File with subitems ---open ,save and exit But the problem is my child form is also showing a menustrip with File Item. However it doesnt show save subitem of the File, which is rightly merged to parent File item. I dont understand why the File Item is being shown in the child form. The child form is not supposed to show any menustrip as everything from child form is automatically merged to the parent forms menustrip. Any help is appreciated, yojimbo
-
form.close() not workingi am a newbie so bear with me. Form1:: public void Bttn_Click(object sender, EventArgs e) { Form2 r = new Form2(); r.Show(); this.Hide(); } This works fine for this form ie Form1 as u have said that it is not necessary to create one more instance of Form1 and rather use this.hide(). but i have one more event in Form2 called Form2Button_click event where i need to hide form2 and show Form1. Now if i create a Form1 instance as shown below i will have two instances of Form1. One which was hidden using previous code and Second instance in the Form2 button click event. public Form2Button_click(object sender, EventArgs e) { Form1 newInstanceForm1 = new Form1(); newInstanceForm1 .Show(); this.Hide(); } 1)How do i access Form1 from Form2 without creating a new instance of Form1?? or how do i get hold of the original Form1 instance from Form2 2)You have also said that it is better to create two Forms as controls......where do i create those controls?? i have only two forms Form1 being the main form. So do i need to create these forms as controls in main()?? i am just confused Any help is appreciated, yojimbo
-
form.close() not workingForm1 is shown from from Main as follows main() { Application.Run(new Form1()); } buttonClick event on form1 { Form1 f = new Form1(); f.Close(); Form2 r = new Form2(); r.Visible = true; ) This ia modeless form and also am not using any mdi forms concept I tried r.show() also its not working yojimbo
-
form.close() not workingHi, I am using visual studio team suite 2005 for developing a windows app in C# I have 2 forms Form1 and Form2 I have a button control on Form1 called Bttn. In the click event of the button i am writing the following code so that i close the current Form i.e. Form1 and want to show Form2. MY code:: Form1 f = new Form1(); f.Close(); Form2 r = new Form2(); r.Visible = true; but with this i have 2 problems 1) Form1 is not closed and Form2 is open i.e. both forms are opened (f.close() is not working) 2) After running the app, when i close Form1 Strangely Form2 is also closed. but however if i close Form2 only that form2 is closed as expected. I am not implementing any mdi forms concept. Any help is appreciated thanks red yojimbo
-
problem with Properties.Settings.Default to access settings in C# windows applicationhi , i have C# windows app on Visual studio 2005 team system I have a connection string stored as application setting in Settings.settings file and i am trying to access it using Properties.Settings.Default but Properties keyword itself is not being recognized and i am getting a debug error Error :: The type or namespace name 'Properties' could not be found (are you missing a using directive or an assembly reference?) Any help is appreciated Yojimbo yojimbo
-
access application settings from code in windows settingsHi , i stored my connection in application settings i.e. project > properties> settings tab. Now i need to access the connection string from code. How do i do it ?? any help is appreciated, yojimbo
-
Cannot see session stored in the databaseHi, I am storing some variables in Session -- which is stored in sql server 2005 DB . Everything is set up for database and i can aslo tables(ASPstateTempSessions & AspStateTempApplications) for session in the ASPStateDB. But i am not able to see the session variables stored in the ASPStateDB tables. All i see is SessionId and some other fields but not my variables and its values. EX. Session["myVariable"] = data; I cannot see myVariable and data being stored in the database. Arent they supposed to be there? However if i use trace i can see all the session variables and their values. Any help is appreciated, Yojimbo
-
access application settings in from code in windows applicationHi , For my windows app, i stored my connection in application settings i.e. project > properties> settings tab. Now i need to access the connection string from code any help is appreciated, yojimbo
-
custom section in configuration filestype="System.Configuration.AppSettingsSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" I want to write a custom section that can be added to configuration file (web.config)... I dont understand all the parts of the "type" attribute 1)PublicKeyToken --- Is this the one generated thru sn.exe??? 2)System.Configuration.AppSettingsSection --- Is this any name or should it be my class name 3) System.Configuration --- what about this ??? yojimbo
-
error can be caused by a virtual directory not being configured as an application in IIS.hi, my web.config file is like this ....... ....... Now if i use the element as bove i get this error It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. However if i remove the location element my app works fine Any help is appreciated, Yojimbo yojimbo
-
CreateUserWizard control having problem with aspnetdb databasehi, i have sqlserver express set up on my machine and i am using the default AspNetSqlMembershipProvider provided by .Net 2.0. and my application uses forms authentication I started out with a CreateUserWizard. when i run my application aspnetdb.mdf is created in App_data folder and my CreateUserWizard says that the user has been added. But the problem is 1) when i try to open the database thru my database explorer (Visual studio 2005) it says "Failed to generate a user instance of SQL Server due to failure in the starting process for the user intance. The connection will be closed" 2) Also when i try using SqlServerManagement studio i can't see any database called aspnetdb when i connect to my SqlServerExpress. however i can see that aspnetdb.mdf is being created in my App_data folder. my machine.config has this <membership> <providers> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" /> </providers> </membership> <connectionStrings> <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> </connectionStrings> my web.config file has forms authentication <authentication mode="Forms"> <forms name=".ASPXAUTH" loginUrl="Login.aspx" protection="All" timeout= "30" path="/" requireSSL="false" slidingExpiration="true" cookieless= "UseDeviceProfile" /> </authentication> can somebody help me thanks
yojimbo