Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:713574
More Search Options
RSS Available
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"
Posted to
VS Web Deployment Projects
(Forum)
by
tomliversidge
on 2/5/2009
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<
Posted to
VS Web Deployment Projects
(Forum)
by
tomliversidge
on 4/22/2008
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.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
tomliversidge
on 4/17/2008
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
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
tomliversidge
on 4/16/2008
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.
Posted to
VS Web Deployment Projects
(Forum)
by
tomliversidge
on 4/16/2008
Page 1 of 4 (39 items) 1
2
3
4
Next >
WindowsClient:
ViewModel Pattern and Speech as UI. Help me Obi Wan, where’s the View?
Channel 9:
Karsten Januszewski and Tim Aidlin: Introducing Incarnate
Channel 9:
Reactive Extensions API in depth: Retry
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
Channel 10:
Office 2010 "5 Rules" Presentation
Channel 10:
30% off Expression Web 3 until Dec 28th
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online