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:443474
More Search Options
RSS Available
Matching Posts
"System.InvalidOperationException: Invalid attempt to MetaData when reader is closed"
I am getting this exception sporadically in a certain block of code (it usually works): " System.InvalidOperationException: Invalid attempt to MetaData when reader is closed" The code is below: cmd.CommandText = "[dbo].CountryGetList" ; cmd.CommandType = CommandType.StoredProcedure; IDataReader rdr = cmd.ExecuteReader(); List countries = new List(); ... while (rdr.Read()) { //do stuff CountryID = ( Guid )rdr[ "CountryID" ]; //blows up on the next line cty.Name = ( string )rdr[ "Name" ]; } } rdr.Close
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
MrBuzzcut
on 6/6/2006
Re: CustomErrors redirect not working as needed when a non aspx resource is in the url
I'm having the same problem as the original poster ... Very aggravating and it renders the concept of a custom 404 page rather useless.
Posted to
Configuration and Deployment
(Forum)
by
MrBuzzcut
on 3/30/2006
Bizarre problem with ASP.Net (2.0) form
I have an ASP.Net form that had been working fine for months. Suddenly, on postback, I am presented with a blank (white) page with the following: 1360|/wEWpwEC1tSUhwICl/mS5AEC57O39AYCx9uNWwLFgulXAsDWrp0DAueJuc0OAt6m9vIJAou+3LgJAsi2q80MAtmp+tQOApv6nIICAs/noqgBAs/zrHwCzarE5wIC0+H89wIC547OBgLr5JP0CwKKj6OLDgKrkd+dAwKM45DPCgLwje2zBQKBifXDCQLxhf27DgLSnsXoCQLymIKsDAK2qNT1BQKhzb+BBgKijoWzBwK595ZSAqef32oCuN63tAUC/uGa5QcC0cWP1gcCr7zIuAMCxvvBUwKcw/HfBQLh/duOAwK2wpDKAwLGiMfIBQKP9cmbDQK+46jiBwKNuLiTCgKBtY/KCwLtgs2qBAKes8bFDQKes
Posted to
Web Forms
(Forum)
by
MrBuzzcut
on 3/22/2006
Vexing problem with HttpHandlers in 2.0
Hi! My app has a custom handler (IHttpHandler) for handling requests for certain file types and a custom handler factory(IHttpHandlerFactory) for rewriting URLs of .aspx files. The file handler has been working fine. The url handler works great. They seem to be fine together: in debug mode. Sadly, when I pull up the app via its url -- http://server/app/start.aspx -- everything works great EXCEPT several javascript files -- which are supposed to handled by the file handler -- are not, and when I look
Posted to
HttpHandlers and HttpModules
(Forum)
by
MrBuzzcut
on 3/16/2006
Problem precompiling a Web App
Hey there ... I'm trying to precompile my app, but when I run "Publish Web Site" I'm getting hundreds of errors referring to "circular references" ... which I cannot seem to find when clicking on the error message and navigating to the alleged offending line of code. The site builds -- "Build Web Site" -- with no errors. I have "batch" set to true in web.config (see below). < compilation debug = " true " batch = "true " > Any ideas? Thanks! Buzzcut
Posted to
Configuration and Deployment
(Forum)
by
MrBuzzcut
on 3/9/2006
Re: Getting "The Type must be loadable by BuildManager.GetType(string typeName)" though the dll is in bin
More info: If I explicitly create the object rather than using Reflection -- WebPart p = new MyAssembly.WebPart1(); The WebPartManager is able to load it. This is unhelpful, however, as the Type i want to load won't be available till runtime.
Posted to
Web Parts and Personalization
(Forum)
by
MrBuzzcut
on 10/28/2005
Getting "The Type must be loadable by BuildManager.GetType(string typeName)" though the dll is in bin
I have a .dll, SampleWebParts, in the bin directory. It contains two types that inherit WebPart -- WebPart1 and WebPart2 Here's a snippet: Assembly asm = Assembly .LoadFile(path); //load dll from bin Type t = asm.GetType("WebPart1"); object o = Activator .CreateInstance(t); WebPart p = ( WebPart )o; //At this point p is a WebPart1 object WPM.AddWebPart(p, zone, 0); //Add it to WebPartManager Then I get the nefarious exception: System.InvalidOperationException was unhandled by user code Message="Cannot
Posted to
Web Parts and Personalization
(Forum)
by
MrBuzzcut
on 10/27/2005
Problem exporting WebParts in class library
I'm trying to create a component that scans a .dll for classes that descend from WebPart and use WebPartManager.ExportWebPart to write the .WebPart files to a company specific directory, where my ImportCatalog part can, well, import them. public void ExportWebParts( ArrayList parts) //an ArrayList of WebParts { string strFile = "" ; WebPartManager mgr = new WebPartManager (); foreach ( Type t in parts) { strFile = t.Name + ".WebPart" ; strFile = WebPartPath + '\\' + strFile; object o = Activator
Posted to
Web Parts and Personalization
(Forum)
by
MrBuzzcut
on 10/24/2005
Setting a "default" personalization state
I'd like to enable an Admin to create a "default" Personalization state that will be loaded for a User the first time he accesses the application. After that he'd (User) obviously be able to configure his own pages. I see where there is a "DefaultProfile" and have run across the class SharedPersonalizationStateInfo , but there is not much documentation on how to use these. Thanks!
Posted to
Web Parts and Personalization
(Forum)
by
MrBuzzcut
on 8/29/2005
Best way to persist an Object to database in Whidbey/Yukon
Hi all ... I'm wondering what is considered the best way to persist an object to the db using Whidbey and Yukon ... It looks like the new XML datatype could be helpful in this ... Thanks!
Posted to
Getting Started
(Forum)
by
MrBuzzcut
on 8/23/2005
Page 1 of 17 (163 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Channel 9 Live at PDC09: Coding 4 Fun
Channel 9:
Channel 9 Live at PDC09: Stephen Toub
WindowsClient:
Mouse Gestures for Internet Explorer
Channel 9:
Controlling concurrency in Rx
Channel 9:
Dev Tools Ecosystem Summit Videos Available
WindowsClient:
Using Cerebrata's Cloud Storage Studio To Download IIS logs from Multiple Instances of Windows Azure
TechNet Edge:
TechNet Radio: Office 2007 Setup and Configuration (Part 1)
Channel 10:
How-To: Listen to Your Zune Pass Music on Your WinMo Phone
Channel 10:
Share Your Screen with SharedView
Channel 10:
Get Microsoft Tinker Game For Free
Channel 10:
LG eXpo WinMo 6.5 Unboxing Video
Channel 9:
ADFS 2.0 RC is Here!
Channel 10:
Bing Reference Updated with New Sidebar Features
Channel 10:
Look Behind SurfaceScapes
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part I
TechNet Edge:
Windows Server 2008 R2 Quick Look- Installing the Migration Tools
WindowsClient:
My latest videos – WPF, Silverlight, Sensors, and PDC09
WindowsClient:
Developing an installer for your Surface application
ASP.NET:
Visual Studio 2010 and .NET 4 Update
WindowsClient:
Microsoft’s product placements in The Big Bang Theory
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online