asp.net-3.5

How to stop user from changing querystring

ε祈祈猫儿з 提交于 2019-12-05 23:07:13
How do I protect the url from a user changing one of the param/value pairs? Thanks. You can add an HMAC hash of the querystring using a secure random key stored only on the server, then verify the hash on every request. You can't. You need to validate them. You should make sure your page accepts only valid input for each of the parameters. "Valid" may mean many things, like "Does the user have access to view this" and so on. You could encrypt them or hash them and persist the real value cross request. You can't. It's by definition an external interface. If your system's security depends on

Help me convince higher-ups to allow switching to .Net 3.5 (from 2.0)

时光怂恿深爱的人放手 提交于 2019-12-05 20:37:41
I have been sold on the fun of using linq in areas other than pure database interaction. (See Calling fellow code nerds - Alternatives to Nested Loops? ). We are stuck on 2.0. I have told the powers that be about the ease of updating to 3.5 (we have already migrated to VS2008) but they are wanting a list of "benefits" for upgrading. Can those that have experience in 3.5 help provide some talking points for the benefits of updating an existing app to 3.5? UPDATE: Found an additional reason: Microsoft's inclusion of Charting tools for Asp.Net as a patch on top of 3.5! They get their business

Dashboard for Log4Net [closed]

旧巷老猫 提交于 2019-12-05 18:31:56
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am using Log4Net in my asp.net application to log the errors in the database. I am looking for a dashboard which is open source/free and can display the summary on the screen and related documentation. Anyone has used dashboard for Log4Net or any recommendation? As far as I know, the only comprehensive dashboard is Log4net Dashboard , but it's a commercial product. Another interesting product, that is not open

Enterprise library 4 dataconfiguration tag

半城伤御伤魂 提交于 2019-12-05 15:45:58
I am using Enterprise library for my data access. When I am running the application, at the CreateDatabase() statement I am getting this exception: Microsoft.Practices.ObjectBuilder2.BuildFailedException was unhandled by user code Message="The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy, index 2)" Source="Microsoft.Practices.ObjectBuilder2" Now, I googled a bit and I

Getting “This method or property cannot be called on Null values” error

五迷三道 提交于 2019-12-05 11:49:41
UPDATE 1: The exception is being thrown on this line: client_group_details.Add(new ClientGroupDetails( ORIGINAL QUESTION: I have the following code which I have stripped down from 30 columns of data from the database to just 2 columns from the database. I get an error whenever any of the columns return a NULL value: public class ClientGroupDetails { public String Col2; public String Col3; public ClientGroupDetails(String m_Col2, String m_Col3) { Col2 = m_Col2; Col3 = m_Col3; } public ClientGroupDetails() { } } [WebMethod()] public List<ClientGroupDetails> GetClientGroupDetails(string phrase) {

Increase Stack size IIS ASP.NET 3.5

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 08:36:15
I understand that the default max stack size on ASP.NET was decreased to 256K instead of 1MB (see http://support.microsoft.com/kb/932909 ), how can I get it back to 1MB? You can use editbin , as described in this article . Another solution could be that of creating an explicit new thread to perform the operations where you're getting a stack overflow error Thread t = new Thread(Run, 4194304); // 4M of stack size t.Start(); t.Join(); if (loadException != null) throw loadException; void Run() { try { // Operation causing stack overflow } catch (Exception e) { ... } } Regards Massimo 来源: https:/

Table with a lot of columns

自闭症网瘾萝莉.ら 提交于 2019-12-05 08:14:56
If my table has a huge number of columns (over 80) should I split it into several tables with a 1-to-1 relationship or just keep it as it is? Why? My main concern is performance. PS - my table is already in 3rd normal form. PS2 - I am using MS Sql Server 2008. PS3 - I do not need to access all table data at once, but rather have 3 different categories of data within that table, which I access separately. It is something like: member preferences, member account, member profile. 80 columns really isn't that many... I wouldn't worry about it from a performance standpoint. Having a single table

VS2010 Add Service Reference missing (Unable to add Service Reference)

十年热恋 提交于 2019-12-05 08:00:51
I have an issue that seems to be identical to this question . I am unable to add a service reference to any project in Visual Studio. I went so far as to format the entire computer, re-install Windows (Windows 7 Ultimate), and VS2010 Professional. Twice. This is a work computer that I inherited and I find it odd that, even after formatting the drive and reinstalling everything, I cannot add a service reference to any project on this computer. I am 100% certain that .NET 3.5 is being targeted in my project's settings and even created an empty project to try it out. Same results. I am not sure

When does WCF use app.config or web.config?

橙三吉。 提交于 2019-12-05 03:23:46
I am working on a WCF applicaiton. I am very confused about when to use a web.config file and app.config file in WCF client and service. can anyone help me when to use app.config and when to use web.config. Is it hosted with IIS? Web.config. Is it hosted as a standalone service? App.config. http://msdn.microsoft.com/en-us/library/ms733932.aspx When configuring a service in Visual Studio, use either a Web.config file or an App.config file to specify the settings. The choice of the configuration file name is determined by the hosting environment you choose for the service. If you are using IIS

ASP.NET Server Control - How to add AssemblyInfo file

别来无恙 提交于 2019-12-05 02:06:25
I've noticed on a few tutorials online that when a new ASP.NET Server Control is added, it automatically includes Properties folder (containing AssemblyInfo.cs) and a References folder. This works fine for me when creating a C# Server Control, but in VB.NET I just get a template .vb file and a Project file. Why is this and how can I get an AssemblyInfo.vb file? AssemblyInfo.vb file is created for every project. By default it is not displayed in the Solution/Project Explorer. To view this file and others in Visual Studio click Project >> Show All Files menu items. 来源: https://stackoverflow.com