I'm experiencing this problem today on many different servers.
System.UnauthorizedAccessException: Access to the temp directory is denied.
The servers were not touched recently. The only thing that comes in my mind is a windows update breaking something.. Any idea?
This happens when trying to access a webservice from an asp.net page...
Hi
I am looking at an asp.net application that makes calls to a database within the application start inside global.asax. These calls takes around 3 seconds (depends on SQL cache plan) to run. I have noticed that the application runs slowly when I first redeploy. I put this down to the calls to the database whilst the application started...
Which Operating System would you recommend when working with Visual Studio 2008 and it's asp.net framework? I will only use it for Web-developing and Visual Studio is the only thing I need on it.
I do all my programming on a 2Ghz laptop with 2GB memory. Should I stick with XP? Windows Server 2008/2005 or perhaps Vista? Should I use a 64...
I am creating a user control in ASP.NET (using VB) that uses the autocomplete ajax control on a textbox to get a value. Then I want the page to post back and run some code according to whatever value is passed to it from this control. Problem is, I'm not exactly sure how to do this. I'm sure it's easy and I should know, but I don't.
Th...
I pull data from a table in a database and assign it as a datasource to a listbox. If there is a blank item in the listbox, it shows up as something like this:
All
Red
Green
Blue
What is the best way to remove the blank in the listbox. If there is a blank, it is always in the second position. I was going to try to test to see if ...
How do you solve the infinite login loop problem when you are using cookieless sessions and cannot change the name of login.aspx to a httphandler ?
i.e. When a user with admin rights hits the logout button and the return url to a restricted page is passed to login.aspx then another user without admin rights try's to login they get redir...
Where I work the department has it's own intranet site (not sharepoint!) that is separate from the main company's. The main page is a jumble of over 150 different links grouped into about 20 categories. It's a real mess of a page.
What I want to do is turn this page into a sitemap. I'll put all the links into a database that the site...
We have a blog system that we sold to a number of different customers (included in many different projects). This system includes a number of different files – a few aspx pages, one or two ascx controls, one css file, one javascript file and some codebehind/vb.net utility files. In general 90+% of this module is the same between custom...
We are currently looking at the product listed below, but I thought to see what others are using.
http://www.aspnetspell.com/
...
Using ASP.NET WebServices, by default you can't pass any IDictionary objects, because xml serialization for IDictionaries isn't supported. I have found various ways to serialized dictionaries (http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx, http://blogs.msdn.com/psheill/archive/2005/04/09/406823.aspx, http://www.mattber...
The idea is to create a class that exposes a context but handles the storage of it in a web application.
Currently this is what I have:
public class EntityContext
{
private static String MAIN_CONTEXT_KEY = "MainContext";
private static TISQLEntities _context;
public static void RemoveContext()
{
if (
...
Some one configured my server in a way that intentionally or inadvertently blocks ELMAH. I wish I know what that was. My current server admin can't figure out what's blocking it either.
Clues have so far
Error message is "This type of page is not served...it has been explicitly forbidden"
Ordinary .ashx handlers work just fine. (Hel...
I want to take an EventLog entry which has a stack trace in its Message and bind it to a GridView. If I use Eval("Message") and put it in a label or a < p >, it displays, but the stack trace is smashed together.
If I Eval it in a TextBox, it keeps its formatting.
Is there a way to evaluate this stacktrace value to some sort of literal...
I have an ASP.NET app that writes files to a NETAPP. It's finicky, and the only way we could get it to work was to set <identity impersonate="true"/> and remove the <authentication.../> tag in web.config. This allows the app to write to the NETAPP (with the appropriate monkeying of permissions behind the scenes), but now my app can't tel...
This should be pretty straight forward, and uploading works. BUT when I open the uploaded file on the FTP server it shows binary data which is just some weird characters that look like this [][][][], and its the right file size.
how do I add attributes or headers that that will say that this file is an XML?
public bool ProcessBatc...
I am building a new web based application in asp.net. Our backend has existing WCF/REST services that are returning JSON. I also have a JavaScript library that wraps up calling/consuming these JSON services for me client-side. This enables the app to make client-side AJAX calls and do things like a client-side repeater (Rick Strahl ha...
Today we have built an console application for running scheduled tasks for our ASP.NET website. But I think this appoach is a bit error prone and difficult to maintain. How do you execute you scheduled task (in an windows/IIS/ASP.NET env.)
Update:
Examples of tasks:
Sending email from an emial-queue in the database
Removing utdated ...
I have some code from my VB.NET 1.1 days that allowed me to dynamically check if Debug was enabled in web.config. I figured why re-invent the wheel in turning on/off logging if I could simply have the web administrator enable debug. Here is the code I used in VB.NET that worked just fine:
ConfigurationSettings.GetConfig("system.web/com...
I have the following RadioButtonList:
<asp:RadioButtonList ID="rblCordLevels" runat="server" AutoPostBack="true" OnSelectedIndexChanged="CordLevel_SelectedIndexChanged" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="hand">
<asp:ListItem ID="liDraft" Text="Draft  " Value="1" runat="server" Enabled="false" />
<asp:Li...
I am working with couple of friends on an ASP.NET MVC website. The project is maintained in SVN and I have CC.Net set up to checkout latest version and do automated build and deploy to a pre-production server. The default build configuration is set to Debug, but the automated build is set to build Retail. Everything works just fine, exce...