grab our rss feed

stevienova.com

Homepage of Steve Novoselac

Entries Tagged ‘ASP.NET’

Windows 7 – ASP.NET Temporary Internet Files, Assembly Redirects

Just updated my work laptop to Windows 7. Sweet right? Except now the fun of getting everything to work. First issue I ran into, a Web App in development, not being able to load up “Microsoft.AnalysisServices.AdomdClient” because it was looking for version “9.0.242.0″ – the version you get with Office 2007, SQL 2005. But I [...]

View Comments | 1,142 views

Switching Hosting – Moving to Media Temple (MT)

A few months ago I decided to consolidate my hosting and sites to one server, and I went to Server Beach, and got my own Windows 2003 server. I needed ASP.net and PHP for some things I had so it was kind of a unique situation. Server Beach is awesome, and if I needed more [...]

View Comments | 1,515 views

.NET and Oracle – Match Made in Hell (Data provider internal error(-3000) [System.String])

At my new gig, I am working on a project that is ASP.NET with an Oracle Database backend. Today I ran into an error. Data provider internal error(-3000) [System.String] What does this error mean? Heck if I know, its a generic error basically telling you that something is wrong with your connection to the database [...]

View Comments | 2,784 views

Auto Submit Form in ASP.NET With Javascript

Not sure if this is the best way to do this, but this is what I do. Say you want to auto submit a form on an aspx page. You can call document.formname.submit(); from the body onLoad event and it will submit, but ASP.net will automatically post it back to itself. I tried added buttons [...]

View Comments | 12,621 views

ASP.NET C# – Grabbing a posted file and save to disk

Sometimes you want to grab a file posted to a page, maybe an image upload or other file upload HttpFileCollection logFiles = Request.Files; string path = System.Configuration.ConfigurationManager.AppSettings["LogPath"]; if (logFiles.Count > 0) { HttpPostedFile logFile = logFiles.Get(0); logFile.SaveAs(path + System.Guid.NewGuid().ToString() + “.log”); } As you can see, I am setting the log path from the config. [...]

View Comments | 708 views

ScaleOut StateServer

ScaleOut Software has a product to manage sessions on a web farm. I have tried this product and have had nothing but issues. I did actually end up getting it working once, but it turns out, even when it does work correctly, it gives your network problems It seems that the fix for any issue [...]

View Comments | 1,278 views

VS2005 Unit Testing HttpContext Cache

been searching for a while on how to test HttpContext and Cache in VS2005 Unit Tests, using the built in unit testing suite. Found this today..just add TextWriter tw = new StringWriter(); HttpWorkerRequest wr = new SimpleWorkerRequest(“/webapp”, “c:\\inetpub\\wwwroot\\webapp\\”, “default.aspx”, “”, tw); HttpContext.Current = new HttpContext(wr); to you test method and the correct “using” statements, and [...]

View Comments | 1,526 views

VS2005 ASP.NET 2.0 “Ambiguous Match Found”

Sounds like some dating gameshow, where you are of the winner..and the date you get is someone you just aren’t sure of. Anyways, if you see this error in VS2005 (asp.net), what I have seen it means is: you have some control variables decalred in your codebehind file, and they are also declared in the [...]

View Comments | 9,798 views

‘Class’ must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.

What a PITA. If you want to store an object in the viewstate in ASP.net you need to make sure it is marked as Serializable. Not only that, you need to make sure that every class that it uses is marked as serializable. There are some scenarios that you don’t have to thought: if you [...]

View Comments | 1,304 views