Architecture :: Best Way Of Passing Lists/arrays For Cross-platform Environments

Feb 24, 2010

I'm currently in the process of creating a library app to use inconjunction with websites. Note: NOT JUST ASP.NET SITES. I say this because i've made the dll available to COM and it works, I can reference it from VB6 and see the types/functions/enums etc...My question though is this: I like using List<type> in c# and I know if this dll was only to be used with .net sites then there would be no issue but how would a List<type> be returned to a different environment. Can they recognize this?

View 2 Replies


Similar Messages:

Architecture :: Best Practices For Test & Development Environments?

Jul 9, 2010

This question is for ASP.NET and SQL Server developers. What are your best practices with respect to setting up your development and test environment? I'm interesting in the following issues:

1. How many tiers do you recommend and what goes on on each tier? Just dev, test, and production or perhaps dev, test, staging, and production?

2. Which types of applications and/or servers should run on actual physical hardware and which can get away with a VM?

3. What are your strategies for loosely coupling users from web sites, web developers from their web/app/DB servers, and DB developers from their DB servers?

4. How do developers stay "DRY?"

5. What are the pros and cons to putting web, app, and DB servers on their own machines? Does putting servers on separate machines in order to minimize contention for a machine's resources trump any NIC and network latencies that might be introduced by putting them on different machines?

6. How do you configure your web apps to minimize contention for resources (e.g. virtual directories, separate application pools, etc.)

7. How and how often do you refresh your databases on each tier? Do you just refresh the data or both the data and objects?

View 1 Replies

Architecture :: Creating, Populating And Accessing Multidimensional Arrays?

Nov 14, 2010

I've created 2 multi dimensional arrays (2 dimensions each), I want to feed them both into a function, and I would like the function to spit out an array or list containing both of them as arrays, so I can use them as they were before they went into the function.

The way I've done it at the moment is probably very inifficient and I'm having trouble accessing it properly.

What follows is my attempt to put the 2 arrays (attackerarmy and defenderarmy) into a new array called armyresults and adding an additional dimension to tell me if the record belongs to the attacker or defender:

[Code]....

Since I've already got the 2 arrays I want in the function, I've rather not inefficiently force them into a new array, only to try to re build them again when they come out of the function.

how to out 2 arrays of unknown size into an array of arrays for the return statement of my function, and then how I can access those individual arrays so I can easily copy them back out into their original form?

View 1 Replies

MVC :: - View - Passing Multiple Objects To The View And Selecting Data From The Lists?

May 17, 2010

I have a view which takes two objects: booking and list of reasons for canceling that booking.I have two classes: clsBooking, clsBookingCancelationReason I can read both objects in my view - no problems there. After I read the objects, I display the booking details and I generate a list of cancelation reasons in the following way:

[Code]....

The code above generates a list of cancelation reasons.How do I pick up the selected ReasonId from the list?
I need to generate a link that will contain the bookingId and the selected reason for canceling the booking.I can get the bookingId out easily since it's stored in the Model...but how do I go about the selected ReasonId?

View 5 Replies

Cross Page Postback And Passing Info From Source To Destination Page

Feb 15, 2010

I have a FileUpload control in the Source page. On the Upload button handler, I read the file into memory (after doing some validations) and since it's always going to be a TXT file, I create a string that I need to pass to the Destination page. I thought of using Cross Page postback and set the PostBackUrl property of the upload button. But it appears that the breakpoint in the Upload button handler is never hit. It directly goes to the Page_Load in the Destination page. If I can't use Cross Page postback and don't want to use Session or the database, how do I pass this string from Source page to the Destination page?

View 2 Replies

Passing XML Document Among 3-tier Architecture Layer?

Oct 31, 2010

I am making use of 3-tier architecture.In UI layer, i am getting user input and converting it into XML document. But now question arises that how can i pass this xml document to business and data access layer?

View 2 Replies

Architecture :: Passing Entities To Business Layer?

Mar 30, 2011

I am working on implementing a web application in ASP.Net by following the MVC design pattern (Not ASP.Net MVC). As part of the design, we have entity objects that has only properties as per the corresponding table structure and the idea is using these entity objects in the view layer and the same entity objects are passed to Persistence Layer for saving the data to the database. Business Objects in the business layer are responsible for interacting with the database.

As view creates the entity objects and passes to next layer, what would be the best practice to pass the entity objects to the business layer? Should the business objects accept data objects as parameters and interact with the persistence layer? Is there any other best practice to pass the required objects from the view layer to the next layer? As business objects also need to access the properties of the entity objects passed from the view layer, do we need any "translation" from entity objects to business objects?

the best practices to pass entity objects from view layer to the next layer and also how the entity objects created by the persistence layer can be used by business objects?

View 6 Replies

Architecture :: Passing Exceptions Values Upto The UI

Nov 25, 2010

Most of my DAL functions use structures to pass the data back to the BLL and to the UI. I have got the try catch code now and it all works fine. I capture the exceptions in a seperate db table and it all works fine.I wanted to know how to pass the error up and what varable would be used to hold the error statusWhat I was think was - if I had a BO structure that was used to in the DAL and was populated and I wanted the error state up do I need to have a specific error field in the structure.

View 2 Replies

Architecture :: Passing Objects Between Aspx Pages?

Jan 21, 2010

I have an application that uses DataContracts/DataMembers and Serialization to store information entered in a tab control. There are 8 tabs in the control (therefore 8 aspx pages). The final tab is used to write the information to disk.I am trying to understand: When should serialization be used in a web app? The objects are stored in memory not on disk. Is this another means of passing objects between aspx pages? If so when should serialization be used vs. session objects? How long is the serialized object retained in memory?Can I get a simple example of how to serialize in one page and deserialize the object in another page?I've read many blogs regarding serialization but have yet to find a simple example and none of them explain when serialization should be used vs. session objects?

View 3 Replies

Architecture :: Checking Stock Levels Before Passing An Order For Payment

Feb 3, 2011

I am building an ecommerce site and I struggle to find a way to check the stock levels for each order.I have created an "in house" procedure that involves the administrator having to push a "check stock" button for each item on the order but it doesn'tlook too elegant.

View 3 Replies

Architecture :: Checking Stock Levels Before Passing An Order For Payment?

Oct 26, 2010

I am building an ecommerce site and I struggle to find a way to check the stock levels for each order. I have created an "in house" procedure that involves the administrator having to push a "check stock" button for each item on the order but it doesn't look too elegant.

View 2 Replies

Create Installer For Web APP For Multiple Environments

Dec 18, 2010

I have created an ASP.NET website which accesses a DB. The DB can will be alrady installed at target machine. It can be anything from SQL server 2000 to SQL server 2008. Further more the target OS can be anything from Windows server 2000 to Windows 7. I have kept the target .Net framework version as .Net 2.0 to keep matters simple. Also, the target machine can be x86 or x64 or Itanium. Do I need to create separate builds for different target platforms? How do I create an Installer which will : Put this website on a Virtual Directory of IIS server(can be any IIS version) Detect the target platform and install the appropriate build. I need to do this either using the standard MSI installer of VS2008 or using WiX or any open source installer for that matter.

View 1 Replies

MVC :: Comparison Against Other Programming Environments Or Techniques?

Jan 28, 2010

what MVC stands for,but if I'm already developing .NET websites without it,is there any reason I would need/want to use it?is it designed for people who already have experience with developing in an MVC environment and wanted a ".net"version of it?Is there some "head-to-head" comparison of MVC against other programming environments or techniques that have been written? It seems like what I might gain in development speed I might lose in flexibility.maybe I just don't understand what all the fuss is about.hence this post!

View 6 Replies

.net - RequiredFieldValidator Works On Dev And Stage Environments, Not Production?

Aug 5, 2010

We deployed our legacy ASP.NET application to production after successful test deployments to our staging environment. The application makes use of RequiredFieldValidators on one particular registration page. On our development and stage environments, the validators successfully detect empty fields when "Submit" is clicked, error messages are displayed, and form submission is prevented. But on production, the validators do not display error messages. Clicking submit will cause a postback, the code-behind checks for Page.IsValid and correctly detects the form has missing fields, but the registration form is redisplayed with no error messages (ie "Please enter an email") to the user.Sample: (note I dont explicitly declare EnableClientScript or SetFocusOnError)

<asp:requiredfieldvalidator id=Requiredfieldvalidator1 runat="server" CssClass="NormalRed" Display="Dynamic" ErrorMessage="Please enter an email." ControlToValidate="txtEmail"></asp:requiredfieldvalidator>

Both environments (stage and production) are identical: Win2K3 Server and IIS 7, SQL Server 2008, and ASP.NET 1.1 runtime (embarrassingly).

View 3 Replies

Configuration :: Storing Connection Strings And URLs For Different Environments?

Aug 4, 2010

What is the best way to store/access connection strings and most importantly the URLs for different environments (dev, validation, production). I'm using ASP.NET 1.1.

View 2 Replies

Configuration :: Web.config Connection Strings For Development And Production Environments

Apr 15, 2010

I have seen the examples on how to switch between connections strings for development and production enviroments. My web.config also calls out a connection string for <roleManager and membership><providers>. Can this be setup to switch between the two connection strings?

View 1 Replies

Security :: Imersonation In C# / Logonusera Always Fails In Test And Production Environments?

Mar 23, 2010

In my project i'm using the concept of impersonation to implement "File Upload functionality".i.e.

to save the file uploaded to a network share.This n/w share is accessible to an application id only.So i'm impersonating with that user id when uploading a file. I'm importing "advapi32.dll" and using the LOGONUSERA method of that dll to validate the user and get the token for that userid and then impersonate using the Token returned. THis approach is working fine in the development environment but LOGONUSERA always fails in TEST and PRODUCTION environments. It always return "0" which means user id is invalid and the token is zero hence i cannot impersonate. Is it something related to accessing the dll in other environments? Any suggestions to resolve this issue will be a great helpp for us. We are hung with this issue for the past 5 days.

View 1 Replies

Does It Work On Linux Platform

Feb 2, 2010

does ASP.net(web development) works with Linux platform??

View 2 Replies

Is There A Django Or Rails For The .Net Platform

Jan 20, 2010

Now before I dive too far into this this question, I am aware of nDjango and MonoRail; however, those project seem to be lacking.What I'm wondering is if there is a solution out in the .Net world that has the following features out of a single box like Rails has in Ruby or Django has for Python. I know tools that do pieces but am curious if there's 1 unified solution out there.

Database Versioning/Migrations
ORM or similar code gen
MVC-based
Pre-generated administrative screens
View generation
Theming / styling
(I'm sure I'm forgetting another cornerstone feature)


There's lots of options that cover one or more of these aspects but is there something in .Net that covers all of them?

View 5 Replies

C# And Arrays Of Anonymous Objects?

Jan 9, 2010

what does such expression mean?

obj.DataSource = new[]
{
new {Text = "Silverlight", Count = 10, Link="/Tags/Silverlight" },
new {Text = "IIS 7", Count = 11, Link="http://iis.net" },
new {Text = "IE 8", Count = 12, Link="/Tags/IE8" },
new {Text = "C#", Count = 13, Link="/Tags/C#" },
new {Text = "Azure", Count = 13, Link="?Tag=Azure" }
};

especially these lines new {Text = "IIS 7"... how can I create such array manually to suite this DataSource

View 6 Replies

Web Platform Installer Says Already Installed But Not

Aug 21, 2010

Just trying to download it from [URL] for the first time. Web Platform Installer says regarding "Frameworks and Runtimes" (and also "Visual Studio Tools"), "All the recommended products from this group are already installed", even though they're not. Did have something called Visual Studio Runtime Redistributable installed which is just a handful of DLL's. I uninstalled it though - made no difference. Also removed entries from registry with "Visual Studio" in them, also made no difference.

View 1 Replies

MVC :: Installing With Web Platform Installer 3

Feb 7, 2011

I get the following error when i try to install asp.net mvc 3 using the Web Platform Installer 3.0: "This product did not install succesfully: Downloaded file failed signature verification and may have been tampered with" The other thing I've noticed is that inside the "Application DataMicrosoftWeb Platform InstallerinstallersMVC3..." folder, the Web Platform Installer creats a "AspNetMVC3Setup.exe" file that has a size an aprox file size of 200KB. Meanwhile, at the beginign of the instalation process the Web Platform Installer informs that it will download a 20MB file.

View 1 Replies

Is Framework Platform Independent

Feb 7, 2011

Is .NET framework platform independent? I need a well authentic and clear one answer

View 4 Replies

ASP.NET Asset Management Platform?

Apr 7, 2010

I want to develop an ASP.NET based solution to manage and digitatize a library of several thousand garments that my company has developed over the past 10 years. This platform should enable my designers to easily create a new style, upload different photos of the same garment, upload the spec, and record the different attributes as well as enable users to browse and search through the collection and retrieve the photos and specs. Before I start from scratch, I am hoping that someone here can point me to either a open source package or a commercial solution that I can extend and customize to achieve what I need.

View 1 Replies

Multidimensonal Arrays Of Different Datatypes?

Jun 10, 2010

I need to store some values in a collection and am wondering what the best way to do it would be.Here's what i've got going on:

[Code]....

I was thinking something like this: object[,,,] = new object[productID, productName, productPrice]But I really don't think that's the best way to do this. Does anyone know the best practice for this?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved