asp.net

RIghtFax Esoteric error message in .NET 1.1

I have a problem with rightfax component Interop.RFCOMAPILib.dll version 1.0.0.0 , using VB .NET 1.1. It works in severals enviroments , but it doesn´t in Production. It returns this message in the exception - "?" - . How i solve it? i couldn´t find any solution in manuals or internet . Thanks! ...

Error BC30002 - Type XXX is not defined

OK, this begins to drive me crazy. I have an asp.net webapp. Pretty straightforward, most of the code in the .aspx.vb, and a few classes in App_Code. The problem, which has begun to occur only today (even though most of the code was already written), is that once in a while, I have this error message : Error BC30002: Type ‘XXX’ is n...

FormsAuthentication selective to url

Is there a way to implement forms authentication, but only for a specific URL. For example, I would want the formsAuthentication to protect the site on staging.mydomain.com but not hinder access to www.mydomain.com if the web.config accidentally got moved over to the production site. ...

Generating a PDF document based on a Microsoft Word Template

I need to take a Word document that is a template of sorts...collect user input to populate specific fields in that template..then generate a PDF file that includes the completed template as well as a few other document types. Does anyone have a good suggestion on a component to achieve this? Preferably one that does not require Microsof...

MVC C# custom MvcRouteHandler - How to?

Does anyone have experiences in providing a custom MvcRouteHandler? In my application I'd like to implement a globalization-pattern like ">http://mydomain/en/about_ or ">http://mydomain/de/about_. As for persistance, I'd like to have a cookie read as soon as a request arrives and if there is a language setting in this cookie apply it (...

What does the option "convert to web application" do if I select it in visual studio?

What does the option “convert to web application” do if I select it in visual studio? If I do convert my site to a web application what are the advantages? Can I go back? ...

FindControl() method throws ArithmeticException?

I have a line of C# in my ASP.NET code behind that looks like this: DropDownList ddlStates = (DropDownList)fvAccountSummary.FindControl("ddlStates"); The DropDownList control is explicitly declared in the markup on the page, not dynamically created. It is inside of a FormView control. When my code hits this line, I am getting an Arith...

ASPNET user does not have write access to Temporary ASP.NET Files

When I run my Visual Studio 2008 ASP.NET project (start without Debugging) on my XP Professional box, I get the following error: System.Web.HttpException: The current identity (machinename\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. How do I resolve this? ...

How much success is there working on ASP.NET decompiled by Reflector?

I just finished a small project where changes were required to a pre-compiled, but no longer supported, ASP.NET web site. The code was ugly, but it was ugly before it was even compiled, and I'm quite impressed that everything still seems to work fine. It took some editing, e.g. to remove control declarations, as they get put in a gener...

How do I make a Microsoft Word document “read only” within a SharePoint document library?

How do I make open “read only” the only option within a SharePoint document library? When using either Word 2003 or 2007 and saving the document as a template or modifying the file properties as “read only” doesn’t prevent modification of the file in a SharePoint document library. Modifying the document library permissions to only allo...

Books for an ASP.NET Developer moving to Java

Similar to this question http://stackoverflow.com/questions/72719/good-book-for-a-c-developer-going-over-to-java I'd like to know what books mainly targeting web development people would recommend. I'm currently developing large applications with ASP.NET MVC using TDD/DDD (persistence provided by NHibernate, IoC/Application Framework by...

Select current date by default in ASP.Net Calendar control

Let's say I have an aspx page with this calendar control: <asp:Calendar ID="Calendar1" runat="server" SelectedDate="" ></asp:Calendar> Is there anything I can put in for SelectedDate to make it use the current date by default, without having to use the code-behind? ...

What is the best process for a new ASP.NET web app from the ground up?

I am re-building our poorly designed web application from scratch, and wanted to get into TDD and basically "do things right" as kind of a learning project. What tools, processes, and resources are recommended to do it "right" from the start? I will be working alone as the architect and developer, with the backup of a business analyst ...

ASP.net ACTK DragPanel Extender on PopupControlExtender with UpdatePanel does not drag after partial postback

I have a panel on an aspx page which contains an UpdatePanel. This panel is wrapped with both a PopUpControl Extender as well as a DragPanel Extender. Upon initial show everything works fine, the panel pops up and closes as expected and can be dragged around as well. There is a linkbutton within the UpdatePanel which triggers a partia...

How do I use RegisterClientScriptBlock to register JavaScript?

ASP.NET 2.0 provides the ClientScript.RegisterClientScriptBlock() method for registering JavaScript in an ASP.NET Page. The issue I'm having is passing the script when it's located in another directory. Specifically, the following syntax does not work: ClientScript.RegisterClientScriptBlock(this.GetType(), "scriptName", "../dir/subdir...

Different values of GetHashCode for inproc and stateserver session variables

I've recently inherited an application that makes very heavy use of session, including storing a lot of custom data objects in session. One of my first points of business with this application was to at least move the session data away from InProc, and off load it to either a stateserver or SQL Server. After I made all of the appropriat...

Best Library for Dynamic PDF or Word Doc Generation?

Our ASP.NET application must be able to export web content to PDF and Word documents. In the past, we've used Aspose's libraries to accomplish this, but we've found them to be a little too low-level in terms of document construction. e.g. We've found ourselves needing to write point-based functions using shape primitives to create bulle...

How do I fix 404.17 error on Win Server 2k8 and IIS7

I've setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) appears to be a script but is being handled by the static file handler. It SOUNDS like the module mappings for ASP.Net got messed up, but they look fine in the configu...

In ASP.net Webforms how do you detect which Textbox someone pressed enter?

In ASP.net Webforms how do you detect which Textbox someone pressed enter? Please no Javascript answers. I need to handle it all in the code behind using VB.NET. ...

How do I limit the number of simultaneous downloads in Asp.net and/or IIS?

I have a website with a lot of large files. However, I want don't want users to start downloading like 10 files at a time. I noticed there are website out there where they only allow 2 simultaneous downloads. My website is programmed using ASP.net running on IIS. Does anyone know how I can limit simultaneous downloads? ...