Search

You searched for the word(s): userid:748144

Matching Posts

  • ASP.NET MVC application with multiple host headers

    Hi guys, I'm building an ASP.NET MVC application which can be customized with a custom host header (a custom domain name). I plan not to just forward the domain name(s), but to map the DNS to the server and add the host headers in IIS, all of which is easy. The issue I'm comming up with is that when you start a new MVC project and you run it, the default action is invoked without doing "/Something", it just works with "/". This is because of the RewritePaths being invoked
    Posted to ASP.NET MVC (Forum) by bulgarian388 on 10/11/2009
  • Response.Redirect breaks SSL in ASP.NET VMC Application

    Hi guys, I have a strange issue happening. On my MVC application I have a controller which handles all administration, and naturally you have to sign into it. The sign in page works fine and has a valid SSL certificate running, but after it redirects to the main admin page, the SSL becomes invalid, although the connection is still running through SSL... So, I'm very confused on why this is happening. https://domain/Admin/Sign-In <---- SSL works like a charm https://domain/Admin/Main <-
    Posted to Web Forms (Forum) by bulgarian388 on 10/3/2009
  • Requesting help in parsing an XML document with LINQ

    Hi guys, I'm working on an API that queries Amazon, and I'm trying to deserialize their response into usable objects for me. I want to do this with LINQ, but I am having an EXTREMELY hard time (read: 5 hours of nothing...) getting a simple LINQ query to give me what I want. I don't even know what I've tried anymore, but none of it has worked so I'm doing something really stupid... For starters I just want to get a List of Items from the XML document. Can anyone show me how to
  • Re: Requesting help in parsing an XML document with LINQ

    Hi Martin, Thanks for the sample, it's working perfectly. I was trying to use the Descendants method(?) to traverse the DOM because that's what every example I saw was using, but it didn't get anywhere. Your example is much easier to understand. I do have two questions on it though. First, do I have to apply the namespace to each element? I can see why you are doing that because when I was Response.Writing the elements to the screen before I could see the namespace being attached to the
  • Object Serialization

    Hi guys, I'm working on an API to process requrests against Amazon. I kind of have it working, but I'm also getting stuck on a slightly complex issue. The very base of the API is a Query class which has a method called ItemSearch. I pass an ItemSearchParameters object to the method, and it serializes it into an IDictionary<string, string> by enumerating the properties of the object. This works fine when I have just string objects for the properties, but when I have other objects such
    Posted to C# (Forum) by bulgarian388 on 9/19/2009
  • Re: Linq to Sql and catching duplicate key errors

    Hi Wencui, Yes, you are correct on your first question. Aso for the second, I know that the exception is being caught because this code is inside a loop. I know the loop keeps going without problems because I monitor the database as the process is being processed, and I can see the primary keys incrementing denoting it trying to insert the Lead object but failing. So, to answer you quesion, yes, the SqlException is being caught, but the succeding catch statement is not running (as far as I can see
  • Linq to Sql and catching duplicate key errors

    Hi guys, so I have an application that needs to import data as a type of Lead, but if it encounters a duplicate key error, it needs to fall back and import the data as type Duplicate. I can get it to work using an if statement, but I want to have it run off of a try/catch block, but it doesn't want to. When it's running off the try/catch block it just tryes to insert the Lead, fails, silences the error, but doesn't try to insert a Duplicate. The code I'm using is underneath. I would
  • Re: Object reference... error WHEN specifying an optional parameter

    Hi T, I tried that, but it didn't do anything, plus that's not where it's crashing. It's crashing on line 17 of my original post: HttpContext Context = HttpContext.Current; Any other ideas? I really don't see at all why it would be crashing there...........
    Posted to Getting Started (Forum) by bulgarian388 on 7/10/2009
  • Object reference... error WHEN specifying an optional parameter

    Hi guys, I have the following code running on an MVC application. When I call the Abstractions.Save() method without specifying the Directory it works fine, the moment I specify it, it crashes with an "Object reference not set to an instance of an object." error on the line where I create my HttpContect variable. So, does anyone have any idea what is causing this? Thanks in advance! using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using
    Posted to Getting Started (Forum) by bulgarian388 on 7/9/2009
Page 1 of 11 (105 items) 1 2 3 4 5 Next > ... Last »