Securityhttp://forums.asp.net/25.aspx/1?SecurityAll about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls.Sun, 19 May 2013 07:07:47 -0400urn:uuid:00000000-0000-0000-0000-000000000025urn:uuid:00000000-0000-0000-0000-000005399062http://forums.asp.net/p/1908059/5399062.aspx/1?How+to+make+MVC3+application+authenticate+both+Windows+and+FormsHow to make MVC3 application authenticate both Windows and Forms <p><span>I am developing an&nbsp;</span><strong>MVC3 application</strong><span>&nbsp;for a customer service team. I am using&nbsp;</span><strong>default login and registration controls in my application</strong><span>. I have to use&nbsp;</span><strong>both Form Authentication</strong><span>&nbsp;and&nbsp;</span><strong>Windows Authentication</strong><span>. For the customers who come online to insert their comments, it will be Form Authentication for them. For the&nbsp;</span><strong>customer service staff</strong><span>, the system has to&nbsp;</span><strong>use their Windows Authentication to login them</strong><span>&nbsp;(if they they have logged into the their windows account the website should recognize their login details and authenticate them.) How can I make my MVC3 application to authenticate both&nbsp;</span><strong>Windows Authentication for the staff</strong><span>&nbsp;and&nbsp;</span><strong>Forms Authentication for others</strong><span>? Thanks</span></p> 2013-05-19T17:45:00-04:002013-05-19T17:45:00.11-04:00urn:uuid:00000000-0000-0000-0000-000005398813http://forums.asp.net/p/1907995/5398813.aspx/1?Site+directs+to+login+when+login+successfulSite directs to login when login successful <p>So I have been developing and testing an ASP.NET 4.0 site on IIS7.5 with no problem.</p> <p>I can login (using forms auth) and it would direct me to the right page and be able to carry out actions - things like submitting a form.</p> <p>But when deployed to IIS6 (WS2003 &#43; all updates), I get VERY wierd and unexplained behavior when even after logging in, it seems to come back to the login page. There is no code to do this at all.</p> <p>Sometimes it directs me to a page I expect but then when submitting the page (i.e button click), directs me back to the login page... when i login again, directs me back to the login page.</p> <p>&nbsp;</p> <p>looked in the eventlogs - no events logged.</p> <p>&nbsp;</p> <p>any ideas what could be happening here?</p> 2013-05-18T23:06:11-04:002013-05-18T23:06:11.05-04:00urn:uuid:00000000-0000-0000-0000-000005397531http://forums.asp.net/p/1906890/5397531.aspx/1?verification+through+Emailverification through Email <p>i am creating a website for event registration online , in which i have designed a page for cancellation of registration ,that page will take user id to cancel the registration .</p> <p>for that i want to authernticate the user through email id .</p> <p>how can i achieve this , please provide me the code and explanation</p> 2013-05-18T07:20:08-04:002013-05-18T07:20:08.66-04:00urn:uuid:00000000-0000-0000-0000-000005398860http://forums.asp.net/p/1908004/5398860.aspx/1?Error+Event+1309Error Event 1309 <p>Dear all,</p> <p>We developed an app using WCF and a client ASP.net and we have this error. Help me please.</p> <p></p> <p></p> <p>Application information: <br> Application domain: /LM/W3SVC/2/ROOT/SCMClient-1-130133783332281776 <br> Trust level: Full <br> Application Virtual Path: /SCMClient <br> Application Path: D:\SCM\publicar\SCMClient0\ <br> Machine name: SERVIDOR <br> <br> Process information: <br> Process ID: 6852 <br> Process name: w3wp.exe <br> Account name: NT AUTHORITY\NETWORK SERVICE <br> <br> Exception information: <br> Exception type: MessageSecurityException <br> Exception message: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.</p> <p>Server stack trace: <br> at System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.ProcessReply(Message reply, TimeSpan timeout, SecurityProtocolCorrelationState correlationState)<br> at System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(Message message, TimeSpan timeout)<br> at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)<br> at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)<br> at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</p> <p>Exception rethrown at [0]: <br> at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)<br> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)<br> at SCMClient.ServicioUsuario.IServicioUsuario.GetMenuUser(CierreUsuarioDTC usuarioDTC)<br> at SCMClient.ServicioUsuario.ServicioUsuarioClient.GetMenuUser(CierreUsuarioDTC usuarioDTC) in C:\Users\Wilfredo\Desktop\CierreMinaCode - copia (2)\SCMClient\SCMClient\Service References\ServicioUsuario\Reference.cs:line 295<br> at SCMClient.Master.Main.CargarMenu() in C:\Users\Wilfredo\Desktop\CierreMinaCode - copia (2)\SCMClient\SCMClient\Master\Main.Master.cs:line 35<br> at SCMClient.Master.Main.Page_Load(Object sender, EventArgs e) in C:\Users\Wilfredo\Desktop\CierreMinaCode - copia (2)\SCMClient\SCMClient\Master\Main.Master.cs:line 25<br> at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)<br> at System.Web.UI.Control.LoadRecursive()<br> at System.Web.UI.Control.LoadRecursive()<br> at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</p> <p>The message could not be processed. This is most likely because the action 'http://tempuri.org/IServicioUsuario/GetMenuUser' is incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent the service from aborting idle sessions prematurely increase the Receive timeout on the service endpoint's binding.</p> <p><br> <br> Request information: <br> Request URL: http://sreasons.com/SCMClient/Views/View_inicio.aspx <br> Request path: /SCMClient/Views/View_inicio.aspx <br> User host address: 190.40.101.64 <br> User: <br> Is authenticated: False <br> Authentication Type: <br> Thread account name: NT AUTHORITY\NETWORK SERVICE <br> <br> Thread information: <br> Thread ID: 22 <br> Thread account name: NT AUTHORITY\NETWORK SERVICE <br> Is impersonating: False <br> Stack trace: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)<br> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)<br> at SCMClient.ServicioUsuario.IServicioUsuario.GetMenuUser(CierreUsuarioDTC usuarioDTC)<br> at SCMClient.ServicioUsuario.ServicioUsuarioClient.GetMenuUser(CierreUsuarioDTC usuarioDTC) in C:\Users\Wilfredo\Desktop\CierreMinaCode - copia (2)\SCMClient\SCMClient\Service References\ServicioUsuario\Reference.cs:line 295<br> at SCMClient.Master.Main.CargarMenu() in C:\Users\Wilfredo\Desktop\CierreMinaCode - copia (2)\SCMClient\SCMClient\Master\Main.Master.cs:line 35<br> at SCMClient.Master.Main.Page_Load(Object sender, EventArgs e) in C:\Users\Wilfredo\Desktop\CierreMinaCode - copia (2)\SCMClient\SCMClient\Master\Main.Master.cs:line 25<br> at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)<br> at System.Web.UI.Control.LoadRecursive()<br> at System.Web.UI.Control.LoadRecursive()<br> at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<br> <br> <br> Custom event details:</p> 2013-05-19T06:23:49-04:002013-05-19T06:23:49.44-04:00urn:uuid:00000000-0000-0000-0000-000005398792http://forums.asp.net/p/1907983/5398792.aspx/1?Automatically+create+account+for+employee+using+membership+MVC3Automatically create account for employee using membership MVC3 Hello everybody ! Fisrtlly ,using MVC3 in a Humain Ressource Management project (SQL Server 2008 r2, Entity framwork) . I have a table named &quot;Employee&quot; in my database that content Employee information, my problem is how to create account for everey employee automatically after adding. So ,how to connect my table &quot;Employee&quot; to the &quot;aspnet_users&quot; table in the memebership provider !!! and the relation betwwen tables (one to one or one to many ???) 2013-05-18T21:04:22-04:002013-05-18T21:04:22.65-04:00urn:uuid:00000000-0000-0000-0000-000005366873http://forums.asp.net/p/1899731/5366873.aspx/1?send+email+using+C+Visual+Studio+2010send email using C# Visual Studio 2010 <p>hi</p> <p>i want to&nbsp; create a website that will send an email after registration using asp.net and c# visual studio 2010 .</p> <p>does any one can tell me the procedure to send email and i am working from home .</p> <p>is it possible to send email with the help of gmail settings , if yes , then tell me how?</p> 2013-04-17T13:36:34-04:002013-04-17T13:36:34.1-04:00urn:uuid:00000000-0000-0000-0000-000005137968http://forums.asp.net/p/1841458/5137968.aspx/1?How+To+Protect+My+Website+From+Automated+Posts+Can+t+Use+Captcha+How To Protect My Website From Automated Posts (Can't Use Captcha) <p>Hello, i have MVC3 social website, users can place comments on an article by ajax. such commenting can be automated to ruin to the website. how to protect myself from that? sure i can't use captchas here, we don't expect the user enters that difficult thing everytime it posts something.</p> <p></p> <p>thank you :).</p> 2012-09-08T11:42:03-04:002012-09-08T11:42:03.867-04:00urn:uuid:00000000-0000-0000-0000-000005395972http://forums.asp.net/p/1906504/5395972.aspx/1?File+Upload+Type+Check+HeadersFile Upload Type Check Headers <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (fluTypeCheck.HasFile)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strExt = System.IO.Path.GetExtension(fluTypeCheck.FileName);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strPath = fluTypeCheck.PostedFile.FileName.ToString();<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (System.IO.File.ReadAllText(strPath).Contains(&quot;%PDF-1&quot;))<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(&quot;&lt;script&gt;alert('Its a Pdf')&lt;/script&gt;&quot;);</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (System.IO.File.ReadAllText(strPath).Contains(&quot;\x4D\x5A&quot;) || System.IO.File.ReadAllText(strPath).Contains(&quot;.bin�]&quot;))<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(&quot;&lt;script&gt;alert('Its an Exe')&lt;/script&gt;&quot;);</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (System.IO.File.ReadAllText(strPath).Contains(&quot;\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1\x00&quot;))<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(&quot;&lt;script&gt;alert('Its a doc')&lt;/script&gt;&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> 2013-05-16T13:34:32-04:002013-05-16T13:34:32.047-04:00urn:uuid:00000000-0000-0000-0000-000005396405http://forums.asp.net/p/1906617/5396405.aspx/1?How+to+use+fields+from+aspnet_tables+on+a+Custom+tableHow to use fields from aspnet_tables on a Custom table <p>Hi, I'm doing a Basic Web Site for a project, and i came across a problem.</p> <p>Basically, one of the requirements of the Web Site is to have a table that contains the Users that register on the site. Basically it has to have something like User_ID, User_Name, Password and Role....(I created the roles (&quot;Basic User&quot; and &quot;Admin&quot;))</p> <p>What i had in mind was to create a table that has the ID starting at 1 and every time someone registers, it adds the username,pass and role... i.e.(1 User1 Pass Basic User</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 User2 Pass Admin&nbsp;&nbsp; etc..)</p> <p>The thing is that i cant seem to be able to get those fields from the tables (aspnet_Users, aspnet_Roles) all on one custom table with an id that starts at 1 ... what i want is every time someone registers the id is incremented by one and the user added to the table and to associated with that id ...</p> <p>I hope i making myself clear xD, if not i'll try to be more specific</p> <p>Hope someone can help, Thanks in advance</p> 2013-05-16T21:33:45-04:002013-05-16T21:33:45.26-04:00urn:uuid:00000000-0000-0000-0000-000005396463http://forums.asp.net/p/1906637/5396463.aspx/1?Two+applications+cannot+be+login+and+used+together+on+a+client+browserTwo applications cannot be login and used together on a client browser <p>Dear All,</p> <p>&nbsp; In a<span style="text-decoration:underline"> Windows Server 2008 (64bit</span>), there is an IIS. Under the<span style="text-decoration:underline"> default web site</span>, there are <strong><span style="text-decoration:underline">two asp.net 4.0 applications (Application A and B) using Forms Authentication</span></strong>.</p> <p>&nbsp;</p> <p>&nbsp; Each application has unique machine key.</p> <p>&nbsp;</p> <p>&nbsp; However, on a browser with different tab, when having&nbsp;signed in&nbsp;to application A, application B is automatically signed off. When sign in to application B again, application A is signed off.&nbsp;The signing&nbsp;are mutual exclusion.</p> <p>&nbsp;</p> <p>&nbsp; How to solve this?</p> 2013-05-17T01:11:07-04:002013-05-17T01:11:07.733-04:00urn:uuid:00000000-0000-0000-0000-000005397062http://forums.asp.net/p/1906767/5397062.aspx/1?Unable+to+connect+to+SQL+Server+databaseUnable to connect to SQL Server database <pre style="background:white; color:black; font-family:Consolas">Hi all, i have being trying to create roles through asp.net membership providers. but it shows me &quot;Unable to connect to SQL Server database&quot;</pre> <pre style="background:white; color:black; font-family:Consolas"><span style="color:#2b91af">Roles</span>.CreateRole(<span style="color:#a31515">&quot;Admin&quot;</span>);</pre> <pre style="background:white; color:black; font-family:Consolas">But when i use plain ado.net connection class and open connection for the same connection string it works.</pre> <pre style="background:white; color:black; font-family:Consolas">&nbsp;<span style="color:#2b91af">SqlConnection</span> con = <span style="color:blue">new</span> <span style="color:#2b91af">SqlConnection</span>(<span style="color:#a31515">&quot;Data Source=abc;Initial Catalog=xyz;User ID=sa;Password=abc@12345;&quot;</span>); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </pre> <pre style="background:white; color:black; font-family:Consolas">con.Open(); </pre> <pre style="background:white; color:black; font-family:Consolas">Kindly help </pre> <pre style="background:white; color:black; font-family:Consolas">&nbsp;</pre> <pre style="background:white; color:black; font-family:Consolas">Thanks in advance</pre> 2013-05-17T13:37:50-04:002013-05-17T13:37:50.713-04:00urn:uuid:00000000-0000-0000-0000-000005396917http://forums.asp.net/p/1906736/5396917.aspx/1?FormsAuthentication+through+JScrip+from+content+page+FormsAuthentication through JScrip from content page! <p>A question please</p> <p>I have a content page in a website using a master page to display contents</p> <p>The content page contains several javascript functions, that read and authenticate certificate on a smartcard that the user must use</p> <p>The javascript part is working and it can read the certificate from the smartcard and check that the pincode is correct</p> <p>From there I need to use FormsAuthentication</p> <p>So the problem is calling an ASP.NET function that sets the user to be authenticated so that he /she will be able to access the rest of the website</p> <p>I have used several tricks, tried using JS to set a value to a box in a form (Using getElementById() ) and then submitting the form, the problem is that I ended up with nested forms (the submition form within the main master form) so submit() did not work</p> <p>I tried calling a static function from within jscript, and I can call such a function but I dont know how to set authentication from within a static function</p> <p>I am lost here, any help would be much appreciated</p> <p></p> <p>Regards</p> <p></p> 2013-05-17T11:13:26-04:002013-05-17T11:13:26.007-04:00urn:uuid:00000000-0000-0000-0000-000005391682http://forums.asp.net/p/1905481/5391682.aspx/1?autorizationautorization <p>Hi</p> <p>Im looking for complete autorization for enterprise application?does Net sql azman right for this?</p> <p>Thanks</p> 2013-05-12T19:45:38-04:002013-05-12T19:45:38.827-04:00urn:uuid:00000000-0000-0000-0000-000005396343http://forums.asp.net/p/1906601/5396343.aspx/1?File+uploads+not+working+in+IIS7+working+fine+on+IIS6+versionFile uploads not working in IIS7 working fine on IIS6 version <p>All these years worked on IIS6 version, used to give permissions to IUSR_MACHINENAME, aspnet and IUSR_WPG acct, with read write permissions on folders. it worked fine.</p> <p>&nbsp;</p> <p>here n IIS7, gave permissions to IUSRS, IWPG and also found aspnet account. but it doesn't work. Also teh interface inemgr is changed too quiet a bit.</p> <p>&nbsp;</p> <p>Can someone please kindly help provide steps to give permissions to file folders on C and d drive of teh server to accept file uploads via our web application.</p> <p>Thank you very much for the helpful info.</p> <p>&nbsp;</p> 2013-05-16T20:13:19-04:002013-05-16T20:13:19.13-04:00urn:uuid:00000000-0000-0000-0000-000005386110http://forums.asp.net/p/1904210/5386110.aspx/1?Forms+Authentication+timing+out+in+less+than+timeout+period+Forms Authentication, timing out in less than timeout period. <p>Hi I have forms authentication set up for a VB.Net 4.5 application with both the forms timeout and the sessionState timeout set to 20 minutes. It works fine on my development machine. However on the Shared hosted server(Not a web farm), user is redirected to login page in less than 20 minutes of inactivity. What am I missing?</p> <p>Below is my web.config: As you can see, I have a tried to set the machineKey tag as well, but the issue remains.</p> <pre class="prettyprint">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;configuration&gt; &lt;system.webServer&gt; &lt;directoryBrowse enabled=&quot;false&quot; /&gt; &lt;modules&gt; &lt;remove name=&quot;FormsAuthenticationModule&quot; /&gt; &lt;add name=&quot;FormsAuthenticationModule&quot; type=&quot;System.Web.Security.FormsAuthenticationModule&quot; /&gt; &lt;remove name=&quot;UrlAuthorization&quot; /&gt; &lt;add name=&quot;UrlAuthorization&quot; type=&quot;System.Web.Security.UrlAuthorizationModule&quot; /&gt; &lt;remove name=&quot;DefaultAuthentication&quot; /&gt; &lt;add name=&quot;DefaultAuthentication&quot; type=&quot;System.Web.Security.DefaultAuthenticationModule&quot; /&gt; &lt;/modules&gt; &lt;httpProtocol&gt; &lt;customHeaders&gt; &lt;remove name=&quot;X-Powered-By&quot; /&gt; &lt;/customHeaders&gt; &lt;/httpProtocol&gt; &lt;/system.webServer&gt; &lt;system.web&gt; &lt;customErrors mode=&quot;Off&quot; /&gt; &lt;compilation debug=&quot;true&quot; /&gt; &lt;httpRuntime enableVersionHeader=&quot;false&quot; /&gt; &lt;!--The &lt;authentication&gt; section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --&gt; &lt;authentication mode=&quot;Forms&quot;&gt; &lt;forms cookieless=&quot;UseDeviceProfile&quot; loginUrl=&quot;Login.aspx&quot; defaultUrl=&quot;default.aspx&quot; name=&quot;.ASPXAUTH&quot; protection=&quot;All&quot; requireSSL=&quot;false&quot; timeout=&quot;20&quot; slidingExpiration=&quot;true&quot; /&gt; &lt;/authentication&gt; &lt;authorization&gt; &lt;deny users=&quot;?&quot; /&gt; &lt;allow users=&quot;*&quot; /&gt; &lt;/authorization&gt; &lt;!--Made the session timeout and the form authentication timeout so that the user is redirected back to login page after 20 minutes and when they log back in they start with a new session as well.--&gt; &lt;sessionState cookieless=&quot;UseDeviceProfile&quot; mode=&quot;InProc&quot; regenerateExpiredSessionId=&quot;false&quot; timeout=&quot;20&quot; /&gt; &lt;pages masterPageFile=&quot;~/MyMaster.master&quot; enableViewState=&quot;true&quot; enableViewStateMac=&quot;true&quot;/&gt; &lt;machineKey validationKey=&quot;86D46F91F5256B84881E32AE2573A5F2BC559403B8CA54886FC90F93C8D64B8A7D32DC158276F88AE9979CDBB9756F8CAF1B5E2FD602C07BD107057DCEC18ECE&quot; decryptionKey=&quot;3FD0350DB53C873554FE357616969A2A653B9EE5C36BDEB1F7D9F8EBC87EF9C5&quot; validation=&quot;SHA1&quot; decryption=&quot;AES&quot; /&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre> <p></p> 2013-05-06T20:05:37-04:002013-05-06T20:05:37.977-04:00urn:uuid:00000000-0000-0000-0000-000005395031http://forums.asp.net/p/1906286/5395031.aspx/1?Multiple+membership+providers+into+users+and+rolesMultiple membership providers into users and roles <p></p> <p align="left">In my web.config, I have multiple membership providers from 3 different domains. &nbsp;The root domain and 2 child domains. &nbsp;I need to be able to add users from the child domains into my roles, but my it seems to only let me add users from the domain that is listed as the &quot;default provider&quot; in the web.config. &nbsp;How can I do this? &nbsp;Thanks</p> <p align="left"></p> <p align="left"> </p> <p align="left">Private Sub BindUsersToUsersList()
&nbsp;</p> <p align="left">Dim users As MembershipUserCollection = Membership.GetAllUsers()
&nbsp;</p> <p align="left">UserList.DataSource = users
&nbsp; &nbsp; &nbsp; &nbsp; UserList.DataBind()</p> <p align="left">End Sub&nbsp;&nbsp;</p> <p align="left"></p> <p align="left">&lt;membership defaultProvider=&quot;MyADMembershipProvider&quot; &gt;</p> <p align="left">
&nbsp; &nbsp;&lt;providers&gt;
&nbsp; &nbsp; &nbsp;</p> <p align="left">&lt;add connectionStringName=&quot;ADConnectionString&quot; name=&quot;MyADMembershipProvider&quot; ..../&gt;</p> <p align="left">&lt;add connectionStringName=&quot;ADConnectionStringStores&quot; ame=&quot;MyADMembershipProviderStores&quot; ..../&gt;</p> <p align="left">&lt;add connectionStringName=&quot;ADConnectionStringWhse&quot; name=&quot;MyADMembershipProviderWhse&quot; &nbsp;..../&gt;
&nbsp;&nbsp;
&nbsp; &nbsp;</p> <p align="left"></p> <p align="left">&lt;/providers&gt;
&nbsp; &lt;/</p> <p align="left"></p> <p align="left">membership&gt;</p> <p>&lt;/div&gt; &lt;/div&gt;</p> 2013-05-15T16:11:41-04:002013-05-15T16:11:41.87-04:00urn:uuid:00000000-0000-0000-0000-000005396160http://forums.asp.net/p/1906557/5396160.aspx/1?Using+multiple+login+screensUsing multiple login screens <p>Hi. I have 1 Admin folder which contains all control panel aspx files which can only be access by the site's administrators, on top of that I also have the usual login for the site visitors, both login screens have to be different, my question is how can I use a different admin login screen for the files in the Admin folder such that when users try to access the aspx in Admin folder, they will get one login screen and another one when access the site's content apsx which are restricted to signed-up members.</p> <p>I am using the default framework 4.5 membership.&nbsp;</p> <p>Thanks.</p> 2013-05-16T16:21:26-04:002013-05-16T16:21:26.117-04:00urn:uuid:00000000-0000-0000-0000-000005395181http://forums.asp.net/p/1906323/5395181.aspx/1?When+to+use+AntiSamy+When to use AntiSamy? <p>Can we use AntiSamy to validate user input? All of our inputs are pretty standard alphanumeric fields etc..not HTML input. From what I have read AntiSamy is primarily used for sanitizing HTML/CSS input by the user.</p> <p>To provide some background to my situation. Our security team has suggested using AntiSamy to address&nbsp;Cross-Site&nbsp;scripting for .Net application(ported over from classic ASP) as the current application fails XSS attacks. I was considering doing actual user input validation using regular expressions&nbsp;based on a basic whitelist.</p> <p>So now I am confused if we can even use AntiSamy for user input validation(when user is supposed just enter text data..not HTML/CSS). I also see that there is not much support for advanced processing options in .Net.</p> <p><a href="https://www.owasp.org/index.php/AntiSamy_Version_Differences">https://www.owasp.org/index.php/AntiSamy_Version_Differences</a></p> <p>&nbsp;</p> <p>&nbsp;</p> 2013-05-15T20:45:47-04:002013-05-15T20:45:47.657-04:00urn:uuid:00000000-0000-0000-0000-000005395998http://forums.asp.net/p/1906512/5395998.aspx/1?Web+servis+securityWeb servis security <p>Hi ;</p> <p>I created asp.net web service for connect from other platform.When I typed url address I succesfully connect and show items in db.But Web service hasn't any <b><i>authentication.<br> &nbsp;</i></b><i></i>How can I provide web service security?</p> 2013-05-16T14:06:47-04:002013-05-16T14:06:47.28-04:00urn:uuid:00000000-0000-0000-0000-000005395815http://forums.asp.net/p/1906454/5395815.aspx/1?The+parameter+username+must+not+contain+commas+Parameter+name+usernameThe parameter 'username' must not contain commas. Parameter name: username <p>Hello Everyone,</p> <p>I am experiencing a very strange problem in login system, When user was entering user and password he is getting below error</p> <h1 id="threadstatus" class="icon-answered indent no-border" title="The parameter 'username' must not contain commas. Parameter name: username"> The parameter 'username' must not contain commas. Parameter name: username</h1> <p></p> <p>But 2 days back he was able to login with same credential successfully but now he is unable to login we are sure that he is not using any comma's in the username, So is there any way we can stop&nbsp;</p> <p></p> <p>Thanks,</p> <p>Shabbir</p> <p></p> <p></p> <p></p> 2013-05-16T10:28:47-04:002013-05-16T10:28:47.347-04:00