Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

RB Emphasys

@RB Emphasys
About
Posts
198
Topics
98
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Performance Analyzer maxing out ram while analyzing report...
    R RB Emphasys

    Guys, I'm utilizing VS 2010 to do some memory performance checking on a WPF app. The tests run fine, and I can close the app, but it literally utilizes 6 of my 8 gig of memory during the "analysis process". I end up getting a low memory error from Visual Studio if I leave the process running for a few hours. If I pull up the resource monitor, I can see it taking more and more memory as each few seconds go by. Oddly enough the application really isn't that big, but I never get the final report because I simply lack the memory to get there. Any suggestions or tips on how to make it through and get an actual report before I hit the 8 gig limit? Thanks, Ryan

    Visual Studio csharp visual-studio performance wpf help

  • The input stream is not a valid binary format.
    R RB Emphasys

    You know I was wondering the same thing. Although it's odd that it makes it through exactly 30 rows every single time before it errors out. I was also thinking that because the author switches the memory stream from one of two other memory streams, that maybe the main memory stream is being overridden before a read is complete....

    C# csharp wcf com sysadmin architecture

  • The input stream is not a valid binary format.
    R RB Emphasys

    Alright, I'll admit, after days of looking at this code I'm a bit at my wits end. At a high level it's a project that uses a client server architecture to deliver a stream object via wcf for large data transfers. The blog and project I've utilized can be found here: http://blogs.msdn.com/b/webapps/archive/2012/09/06/custom-wcf-streaming.aspx[^] My issue is this, the project works incredibly well with numeric values. But, if I add a few basic string values in, it'll process say 30 rows of data and then die, with the following message: "The input stream is not a valid binary format. The starting contents (in bytes) are: 08-02-00-00-00-0A-00-00-00-0A-00-00-00-0A-00-00-00 ... A summarized version of the code looks like this: Server:

    model.ID = i;
    model.ParameterOne = i;
    model.ParameterTwo = i;
    model.ParameterThree = i;
    model.AMP = stringCache[i - 1];

    formatter.Serialize(memStream, model);

    Client:

    OrderModel m;
    while (s.CanRead)
    {
    m = formatter.Deserialize(s) as OrderModel;
    count++;
    Console.Write(string.Format("order ID is {0}\r\n", m.ID));
    }

    I've run through multiple scenarios. I thought the wcf client was either timing out or being overloaded, but I can run it without wcf all in the same class and run into the same exact issue. I can also manually read and write to a memory stream not utilizing the server class and it works perfectly fine, so that proves it can't be encoding or issues with that data in general. You can download the same project here (just three classes): https://skydrive.live.com/redir.aspx?cid=8df0b4ca8325874a&page=self&resid=8DF0B4CA8325874A%21175&parid=8DF0B4CA8325874A%21110&authkey=%21&Bpub=SDX.SkyDrive&Bsrc=Share[^] If you go to class DBRowStream and comment line 179, it works beautifully. If you uncomment it, it fail

    C# csharp wcf com sysadmin architecture

  • Silverlight with Ruby on Rails? An unholy union?
    R RB Emphasys

    Hey Guys, I've written a few silverlight apps thus far primarily using RIA services and the entity framework. We're currently looking at marrying some of our ruby on rails applications possibly through exposed web services and comsuming those services with silverlight. I've found some examples mainly using iron ruby which seems to be shelved for the time being. My question is, has anyone tried this? Is it possible to consume ruby on rails services via silverlight possibly just through consuming a rest service? I really appreciate your thoughts and opinions as we're evaluating options. Regards, Ryan

    WPF ruby question discussion wcf json

  • Referenced column not binding
    R RB Emphasys

    Everyone, I have a simple grid that binds two a table, and that table fk's out to two other tables. The table being user, the foreign keys relating to usertype and store. For some odd reason, the usertype binding won't populate, while the store binding will. I've ensured that the relationships exist in sql, and in my edmx. I've include the [Include] attribute on both properties in the user partial classes to ensure they're loaded. I've tried specifically binding them columns myself, and having it autobind the columns through autogenerate columns with the same result. It's not a case of bad foreign keys, as I can query for any particular record on the edit user dialog and it brings back the usertype perfectly for each record. Any idea's? Thanks, Ryan

    WPF database css wpf wcf question

  • Dynamic Report Builder
    R RB Emphasys

    Hello All, I've been tasked with the oh so fun requirement of building a dynamic run time report creator for clients. We basically need to show a small sub set of tables, and allow them to generate reports by picking what data, columns, ect they want in the report. Although it doesn't seem super difficult, I'm wondering if anyone has run across an article or tool that helps do this. I spent some time searching the boards and forums which had alot of reporting items, but not real examples of a basic little run time report generator. Any suggestions would be greatly appreciated! Thanks, Ryan

    ASP.NET algorithms

  • Multiple Device Development Platform
    R RB Emphasys

    Hey Guys, I'm wondering if anyone had run across a fairly good app generator that will take IL and generate applications for various devices such as IPhone, Droid, Windows Mobile, ect. I've come across a few others such as Rho Mobile, but was curious if someone had found a .NET based platform. Thanks! Ryan

    Mobile csharp ios dotnet

  • Databinding to simple controls with RIA services
    R RB Emphasys

    Worked perfectly, thanks Mark.

    WPF wpf tutorial css wcf

  • Databinding to simple controls with RIA services
    R RB Emphasys

    Guys, I'm just picking up silverlight and Ria services, and must admit I'm a little frusterated. I have a working example of querying via ria services and binding to complex controls such as data grids, but if I try to use that same logic on something like a textblock, I get no love. I assume it's the asyncrhonus nature of the call, but every single example I find uses a darn data grid. Here is what I'm doing: code behind:

           SellerDomainContext domainContext = new SellerDomainContext();
                SellerGrid.ItemsSource = domainContext.Sellers;
                FirstName.DataContext = domainContext.Sellers;
                LastName.DataContext = domainContext.Sellers;
                domainContext.Load(domainContext.GetSellerByUsernameQuery("joe\_seller"));
    

    xaml:

       <TextBox HorizontalAlignment="Left" Margin="8,8,0,19" Width="212" x:Name="FirstName" Text="{Binding TimeOfDay, Mode=OneWay}" />
            <TextBox HorizontalAlignment="Left" Margin="8,8,0,19" Width="212" x:Name="LastName" Text="{Binding LastName, Mode=OneWay}" />
            <data:DataGrid x:Name="SellerGrid"></data:DataGrid>
    

    As I said, the grid works fine, the first and last name text blocks do not. Any links to articles or code snippets to instruct me on how to do simple data binding to objects such as a text block via ria services would be much appreciated! Thanks again, Ryan

    WPF wpf tutorial css wcf

  • Hanging SendActivity in workflow
    R RB Emphasys

    Hello All, I have a workflow that I recently added a wcf send activity too. For some reason, whenever it hits the send activity, that instance completely hangs and never moves forward. I removed the send to ensure it wasn't caused by something else, and it'll work fine at that point. I tested the wcf service itself with the .net wcf tester, and I can invoke it just fine. I'm using the endpoint name for the channeltoken property right from the app.config, i'm also using it as the endpoint name property. I also set the owneractivityname to the name of the send activity. I'm not getting an error or any feedback, just hanging. Any suggestions would be greatly appreciated. Thanks, Ryan

    WCF and WF csharp wcf beta-testing help code-review

  • Object Data Source Configuration Error
    R RB Emphasys

    Hello All, I use object datasources throughout one of my web applications. Somewhere along the way the configuration wizard decided to tell me to take a hike. Each time I try to open the configuration wizard through the ide I get: Error invoking 'Configure Data Source...'. Details: Exception has been thrown by the target of an invocation The application works great when I run it, (including these previously defined datasources). The connection string is correct, and other than the configuration wizard blowing up everything else seems fine. Anyone else run into this issue or have a possible fix? Thanks in advance, Ryan

    Web Development help visual-studio question workspace

  • Typed DataSet and Linq Woes
    R RB Emphasys

    Hello All, I love linq, I even love linq with typed datasets, but the isnull() functionality is driving me nuts. We are required to use a dataset in a product of ours, and although I can write slick joins with linq, everytime a come across a nullable column, i'm writing what seems like needless code, (well that's my attitude since nullable types surfaced). My question is two fold, 1., has anyone come up with an elegant way to convert or handle nullable columns in datasets as nullable types. 2. Can you do write a linq query with a multiple condition join, like this:

    (from fm in _oRentCalcDataSet.FamilyMember
    join f in _oRentCalcDataSet.Family
    on !fm.IsfkFamilyNull() && fm.fkFamily equals f.PK

    I'm not having much luck. Thanks! Ryan

    LINQ csharp database linq question

  • Preloading Data outside of DataLoadOptions
    R RB Emphasys

    Hello All, I have a module i'm working on that runs hundreds of individual rules over and over against a set of data. The issue i'm coming up against, is that although each linq query that loads each individual rules data only takes 30 or 40 milliseconds, once you multiply that by a few hundred, things start getting unrulely. I thought of using dataload options, but each rule has it's own detailed linq query on this set of data that excludes dataload options from benefiting me. What i'm really looking for is a way to load all of the data into a in-memory temp db, run my linq queries against that db, and then lastly push the data back when the rules have completed. I know that I can use a dataset and run queries against that, but I was curious if there was a slick way to do it with the datacontext outside of a dataset. Any suggestion would be greatly appreciated, Ryan

    LINQ database csharp linq performance help

  • Linq datacontext issue, Object not set to instance of an object
    R RB Emphasys

    Harvey, Thanks for the reply. It was actually something quite similiar. We were setting a datetime column of some of our entity classes to DateTime.MinValue. As you know, this is much lower than what the entity class would accept. The tricky part was, we were catching the error, logging it, and the app continued. The problem was, were were never clearing the datacontext, so anytime we tried to submitchanges(), the datacontext would run into that one bad entity class. Instead of just stating, the datetime value is less than allowed, it would throw a null reference exception and abort. We ended up fixing the issue two fold. We obviously created a static date that matched the entity lower bound date value. On top of this, we catch those submit change issues when they happen, log them, and clear the entity cache. This seems to have done the trick, thanks for the response. Ryan

    LINQ help csharp database debugging asp-net

  • Linq datacontext issue, Object not set to instance of an object
    R RB Emphasys

    Alright Guys, I have a truly hairy bug here. We have a asp.net app in which we use linq to access a sql2005 db. It was working great for several months. Just recently, from time to time, whenever we try to insert a entity object to the datacontext and then call submitchanges(), it throws an exception with the lovely old Object Not Set to Instance of an object. But it's only on insert, updates work great. If you look at the stack trace, it's throwing the error down in the change tracker. I thought maybe it was a bad row or entity object, but even running as simple test through the debugger will throw the error when no other entity objects have been loaded. The only way we've found to fix the issue, is to restore the db to the last backup we had. I thought that it was possible that we're loading bad data somewhere. But I pointed a previous version of the app, "pre-bug", to the same database that is currently causing issues, and it runs perfectly. Any idea's, comments, or suggestions would be greatly appreciated. Thanks again, Ryan

    LINQ help csharp database debugging asp-net

  • AppDomain could not be created Runtime Error
    R RB Emphasys

    Hello All, We're deploying a .net 2.0 web application to a windows 2003 server running IIS. It currently has various .net 1.* running on it. We created a seperate threading pool, insured the framework was installed, registered it to use .net 2.0, through the app on, and we're getting a rather odd error. The event log states "Failed to execute request because the App-Domain could not be created.Error 0x80131522" We have this app running in similar environments with no issues. Any ideas would be greatly appreciated, Thanks, Ryan

    ASP.NET csharp sysadmin windows-admin help

  • ASP Menu Controls and Query Strings
    R RB Emphasys

    Hey Guys, I'me having a difficult time with a Menu control which is bound to a site map. We have a website where we allow the user to go along several paths via different instances of the browser, while logged in with a single session. To get around this we pass a single querystring value around to identify where each window is, a transaction id for instance. I'm having a difficult time figuring out how to append that dynamic querystring value value to the end of the navigation url attached to each menu item of a sitemap bound menu control. We tried just some basic tests of hooking up the onprerender event and using something like this: menuItem.NavigateUrl += "?Test =" + Request.QueryString["Test"]; But the query string object doesn't seem to survive multiple post backs. Any ideas would be greatly appreciated, Thanks, Ryan

    ASP.NET database tutorial question

  • Virtual Keyboard Entries
    R RB Emphasys

    Hey Guys, I would like to add some very industry specific entries to the autoprompt that comes up when using the virtual keyboard on a windows mobile device. I was wondering if anyone could point me to examples or documentation that relates to modifying the list of autoprompted words... Thanks in advance, Ryan

    Mobile

  • A very unhappy System.Diagnostics.Debug.WriteLine
    R RB Emphasys

    Thanks Peter, That did the trick. I spaced out on that one.... Ryan

    C# csharp asp-net debugging help question

  • A very unhappy System.Diagnostics.Debug.WriteLine
    R RB Emphasys

    I'm not sure exactly what you're looking for, it's simply erroring out when attempting to writeline, but here is the if statement:

    if (CertificationPerson_RaceTable.GetRecords("IsActive = 1 And fkPerson = " + oCertPersonRecord.PK).Length == 0)
    {
    //Errors out here, the objects are fully populated
    System.Diagnostics.Debug.WriteLine(oCertPersonRecord.PK + " " + oCertPersonRecord.fkRace);
    oPersonRaceRecord = new CertificationPerson_RaceRecord();
    oPersonRaceRecord.fkPerson = oCertPersonRecord.PK;
    oPersonRaceRecord.fkRace = oCertPersonRecord.fkRace;
    oPersonRaceRecord.Save();
    }

    Thanks, Ryan

    C# csharp asp-net debugging help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups