Search

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

Matching Posts

  • Socket Exception thrown on client cancel

    Hi, I have an application that is sending content to the browser (files on the server and database-generated PDF files). This works fine, but throws a System.Net.Sockets.SocketException if the user clicks "Cancel" when prompted to save or open the file. Although the application seems to work, I am concerned about the impact of this exception and was hoping someone would have some advice on what to do! Thanks code: public static void UnzipandSendToBrowser(ZipInputStream s) { string fileName
    Posted to Web Forms (Forum) by tomliversidge on 2/13/2009
    Filed under: Socket Exception
  • HttpContext.Current.ApplicationInstance.CompleteRequest() vs Response.End()

    Hi, I am confused as to the best way of ending requests. Two functions in my web application send content to the browser - PDF generation from database content and sending files on the server to the browser. I have read about the various options but am still not sure about which is best to use. The Response.End generates a ThreadAbortException. What impact does this have on an application? (it is not being called within a Try Catch block). Using HttpContext.Current.ApplicationInstance.CompleteRequest
    Posted to Web Forms (Forum) by tomliversidge on 2/13/2009
    Filed under: threadexception, Response
  • Re: Web.config file replacement

    I am getting an error when I am trying to replace a urlrewritingnet section of my webconfig: web config: <urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="Default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07"> <rewrites> <add name="PublishPortfolio2" virtualUrl="^https\://urlhere/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString"
  • Re: Not returning selected dropdownlist value in gridview

    this sounds like a problem in the event lifecycle of the page. is the dropdownlist set to autopostback? at what point is the control re-bound in the page lifecycle?
    Posted to Getting Started (Forum) by tomliversidge on 8/8/2008
  • Re: Roles manager - different IIS account than the rest of the app?

    More info: WindowsIdentity.GetCurrent().Name returns " NTWEB\IUSR_MDNP" - this is the account I was expecting the roles manager to use. This account is a user in the database. HttpContext.Current.Server.MachineName returns "SAM". error: "Login failed for user 'NTWEB\SAM$'." when trying Roles.GetRolesForUser(username); web.config: <roleManager enabled="true" defaultProvider="CustomizedRoleProvider"> <providers> <add name="CustomizedRoleProvider"
    Posted to Security (Forum) by tomliversidge on 7/23/2008
  • Roles manager - different IIS account than the rest of the app?

    Hi, I have run into a strange error when I transferred my website to our live server. I am getting an error when using the built-in ASP.NET roles functionality. The error is the common Cannot open database requested in login 'MHS_People'. Login fails. Login failed for user 'NTWEB\SAM$'. I have managed to narrow it down to the roles system as If I strip out any role-based functionality, I am able to access the MHS_People database just using regular ASP.NET datasource objects etc..
    Posted to Security (Forum) by tomliversidge on 7/22/2008
    Filed under: security, IIS, server, database login sql
  • Re: Having to edit SourceWebPhysicalPath each time opened

    I have used a different way of accessing the output path of each build by using $(OutputPath). Each configuration I have has the OutputPath in the XML: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Development|AnyCPU' "> <OutputPath>.\Development</OutputPath> <EnableUpdateable>false</EnableUpdateable> <UseMerge>true</UseMerge> <SingleAssemblyName>Submissions_Development</SingleAssemblyName> <UseWebConfigReplacement>true<
  • Re: Splitting a dataset across projects

    Well, I have sort of come to a happy conclusion.... I have just inherited from the baseclass for each sub project and added new logic. I've also made use of the new DataSet projects in Visual Studio 2008 to split up the dataset and tableadapters into different projects.
  • Splitting a dataset across projects

    Hi, I was hoping someone could point me in the right direction for some way of splitting a dataset across multiple projects. I have a class library (MHS_People) that contains a mhs_Users dataset and BLL_Users class (business logic). I then have a web app that references this class library and uses the business logic to get information about users. However, my web app needs to add some new methods to the mhs_Users dataset (these are methods specific to the project that return users) and I dont know
  • Re: Build succeeded but still shows as failed.

    does the project build outside of the deployment project? i.e. if it were just in a solution on it's own? if so, this should narrow down the problem to the deployment project.
Page 1 of 4 (39 items) 1 2 3 4 Next >