Mixing VB6 "legacy Code" And A Web Application?
Jul 22, 2010
I'm working on a new website, written in VB.Net using ASP.NET MVC2, there is a need to call "legacy" VB6 code for various complex bits of business logic. The VB6 is a framework consisting of many dlls and is very stateful, we are pretty much emulating how the framework is used in our client application, ie the application runs (lots of state setup), a user logs on (even more state) and then loads a file (even more state).
I've been provided with a "web service interface framework" to get this up and running for use in the web app, this "web framework" hides the legacy code behind a thin layer running under IIS. The idea being that thread pooling provided by IIS will reduce memory use etc etc. I can't help but believe that the guy who provided this has missed the point, since each instance is so stateful there is no way that a thread pool can work, since once a user logs on using one particular object from the pool, no other object will be capable of servicing that client (since it wont have the state)! Also, adding a web service interface and associated SOAP marshalling is a huge overhead compared to calling the objects directly.
The only way I can think of doing this is either a single legacy interface instance which is used by all clients and blocked by each call until it completes, or a thread per client with each legacy interface object being created in a new thread and living for the life of the client.
None of these is ideal but with the amount of code in question and the prolonged migration programme to .net (2+ years and still stateful) I can't think of an alternative. We run the original client app in a citrix environment for some customers so I expect that it could also run ok with thread per client given a beefy enough server and that the overheads of the framework itself should be lower than when the client app is involved.
View 2 Replies
Similar Messages:
Mar 25, 2011
I have been asked to support a legacy app and I can't get access to the code behind files. I need to add a new feature that gets a list of items from the database on page_load, what way would adding an "in-page" page_load affect the compiled page_load?
View 2 Replies
Feb 28, 2011
I am generating XHTML for a non-standard browser (Polycom Microbrowser). I would like to use the XhtmlTextWriter, but it ignores the border attribute on table. This is mostly like the correct thing to do since you should be using CSS to set the border. Alas, Polycom doesn't support CSS.
So when I Render the beginning and ending table tags, I need to use
HtmlTextWriter.WriteBeginTag/WriteEndTag instead of HtmlTextWriter.RenderBeginTag/RenderEndTag.
protected void RenderTableBegin(HtmlTextWriter writer)
{
//writer.AddAttribute(HtmlTextWriterAttribute.Border, "0");
//writer.RenderBeginTag(HtmlTextWriterTag.Table);
writer.WriteBeginTag("table");
writer.WriteAttribute("border", "0");
writer.Write(HtmlTextWriter.TagRightChar);
}
protected void RenderTableEnd(HtmlTextWriter writer)
{
writer.WriteEndTag("table");
//writer.RenderEndTag();
}
Other places in my code, I am using HtmlTextWriter.RenderBeginTag/RenderEngTag. Are there any known issues with mixing these?
View 1 Replies
Sep 21, 2010
Is it possible to create Music mixing application using C# asp.net 4.0.
View 2 Replies
May 5, 2010
I work in a suite of ASP.NET applications that have several different "modules". The applications all share a main menu, so they all link to one-another. The modules are the high-level areas of the application. So, for example, it might be Payments, Orders, Customers, Products, etc. And Payments and Orders are in one app and Products and Customers are in another. Some of these menu links are "deep links", for example it might be a link to a particular page within the Customers module, such as Create New Customer.
We are about to start a project that will add several more modules to this suite, probably as a new .NET application. I'm thinking about doing these new modules in Silverlight (for various reasons that are not material to the question). If I were to do that, I need to make the menu look the same as the menu in ASP.NET, as the users still need to feel like they are inside one "application".
How should I organize the Silverlight project(s) so that I can "deep link" from ASP.NET pages into particular modules in the Silverlight app? What is even the best idea for creating these different Silverlight "modules"? If I had something that would've been a page in ASP.NET (for example - Create Customer), should each one of those be a separate Silverlight app? Or should it be a separate User Control? Or something else? Should I reuse our shared ASP.NET menu, and deep link to different Silverlight "modules" even within the new application? Or should I reimplement the menu in Silverlight for navigation within the app? Are there menu controls for Silverlight that look similar to ASP.NET menus (with flyout submenus in this case)? Could I maybe even share a SiteMap XML file between them?
View 1 Replies
Apr 29, 2010
how to set the <xhtmlConformance mode="legacy"/> tag in web.config as "strict" using the codes in c#.net for an asp.net webaplication
View 1 Replies
Mar 31, 2011
Coding with ASP.NET 2.0 C# on a legacy application. The database is in MySQL I would like to know whether anything breaks if I delete the following lines from my code
First <xhtmlConformance mode="Strict"/>
Then,
<compilers>
<compiler language="c#"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
extension=".cs"
compilerOptions="/d:DEBUG;trACE"/>
</compilers>
And last,
<browserCaps>
<case match="^Mozilla/5.0 ([^)]*) (Gecko/[-d]+)(?'VendorProductToken' (?'type'[^/d]*)([d]*)/(?'version'(?'major'd+)(?'minor'.d+)(?'letters'w*)))?">
browser=Gecko
<filter>
<case match="(Gecko/[-d]+)(?'VendorProductToken' (?'type'[^/d]*)([d]*)/(?'version'(?'major'd+)(?'minor'.d+)(?'letters'w*)))">
type=${type}
</case>
<case>
<!-- plain Mozilla if no VendorProductToken found -->
type=Mozilla
</case>
</filter>
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="rv:(?'version'(?'major'd+)(?'minor'.d+)(?'letters'w*))">
version=${version}
majorversion=0${major}
minorversion=0${minor}
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>
<!-- AppleWebKit Based Browsers (Safari...) //-->
<case match="AppleWebKit/(?'version'(?'major'd?)(?'minor'd{2})(?'letters'w*)?)">
browser=AppleWebKit
version=${version}
majorversion=0${major}
minorversion=0.${minor}
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="AppleWebKit/(?'version'(?'major'd)(?'minor'd+)(?'letters'w*))(.* )?(?'type'[^/d]*)/.*( |$)">
type=${type}
</case>
</case>
<!-- Konqueror //-->
<case match=".+[K|k]onqueror/(?'version'(?'major'd+)(?'minor'(.[d])*)(?'letters'[^;]*));s+(?'platform'[^;)]*)(;|))">
browser=Konqueror
version=${version}
majorversion=0${major}
minorversion=0${minor}
platform=${platform}
type=Konqueror
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
</case>
<!-- Opera //-->
<case match="Opera[ /](?'version'(?'major'd+)(?'minor'.(?'minorint'd+))(?'letters'w*))">
<filter match="[7-9]" with="${major}">
tagwriter=System.Web.UI.HtmlTextWriter
</filter>
<filter>
<case match="7" with="${major}">
<filter>
<case match="[5-9]" with="${minorint}">
ecmascriptversion=1.5
</case>
<case>
ecmascriptversion=1.4
</case>
</filter>
</case>
<case match="[8-9]" with="${major}">
ecmascriptversion=1.5
</case>
</filter>
</case>
</browserCaps>
I believe they all are not needed. Are they needed at all at present? What I would really like to know is whether anything breaks if I delete them. I would also like to know whether the snippet given below is relevant for ASP.NET 2.0
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="100"/>
when my application is using MySQL as database and authentication mode is windows.
View 1 Replies
Jun 17, 2010
I have a page which is using the AJAX Control Toolkit HTML Editor. I have it configured with only the Bold, Italics and Underline buttons. Once the user saves the information, it's stored in a database table. No problems.
I need to change the resulting code so the HTML code can be correctly interepted by a Crystal Reports report. CR doesn't understand the <span> options being created by the HTML editor. So for example, I need to change the
<span style="font-weight: bold">Bold</span> code created by the HTML Editor so it's entered into the database as <b>Bold</b> instead.
I can attempt this in the code behind, but I then also need to replace the </span> with a </b>. This causes an issue because if there are multiple options (e.g. bolded word within an underlined line), then the proper tags won't be closed as they should.
View 2 Replies
Nov 19, 2010
here is a legacy code which has following implementation Example1 and Example2.f we try to implement MSDN recommendation then the legacy code fails.
void Page_Load() {
if(condition) {
/// some condition
} else {
RedirectPage(url);
[code]...
View 1 Replies
Oct 20, 2010
I know this question could be similar to others but really I'm looking for reasons why VB6 developers should switch to C#. My company recently approved project to be written in C#, so we have a lot of VB.Net programmers, however, we have some legacy app developers as well that are in VB6. We have a time frame to re-write those apps into .Net web apps. So no matter what they will have to learn new stuff.
One of the developers today specifically asked "why should we switch to C#?" I responded that the community largely has decided that C# is the way to go with about 80% of the examples in C#. I am a VB.Net programmer and I am excited to finally cut my teeth on C#, however, being that I'm so new I'm not sure I can answer the "why?" question. My reasons are more because I want to learn it. So without descending into a VB verses C# I really am curious if there are any resources that I can send to these developers to calm their nerves.
View 10 Replies
Jul 12, 2010
Going to install TFS 2010 today, however have few doubts here:
View 1 Replies
Jan 3, 2010
We are Running Windows 7 or Windows 2008 using integrated pipeline (not classic) and we are Getting 404 Errors when mixing MVC with Website and / or WebApplication ProjectsHowever, this problem doesn't exist when I run off the web server locally in visual studio, only when I use IIS 7.5. Is there anything special you need to configure in IIS 7.5 in order for website and webapplication projects to use MVC? I wouldn't think so, but when I run mvcapplication on IIS 7.5
View 21 Replies
Nov 30, 2010
I am setting up a new website on new web servers that are running IIS 7.5, which is new to me. I have ran into a problem when deploying an ASP.NET app that is using the 4.0 framework. I get error messages about conflicts with the web.config file associated with the Default Web Site. The asp.net app defined in the default website is using the 2.0 framework currently. My 4.0 framework app is defined as an application under the default website. Both are using different Application Pools. I tried adding this to my 4.0 apps config file
<location path="." inheritInChildApplications="false">
How do I get around this web.config conflict issue? Update for error message: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined. The config file for the 4.0 app does not even have this section. The default website app does have this.
View 2 Replies
May 16, 2010
how to access a CGI from my Asp.net site,the request IP address must be my site's IP.I'm going crazy.
View 1 Replies
Mar 2, 2010
I have a page with 4 fixed Tabs. Tabs 1 and 2 are always in position 1 and 2. However, the users are allowed to create their own tabs and add their own html content. I do this by creating a new tab in codebehind and inserting it into the tabcontainer AFTER the frist 2 and before the last 2 tabs. There could be several of these. EX: "F1 | F2 | U1 | U2 | U3 | F3 | F4" where F is a fixed tab and U is a custom tab.
As long as ALL tabs are visible then everything works fine after postbacks.
Based on user settings I sometimes hide fixed tab 1. Everything loads fine the first time. However, on postback The content on fixed tab 4 (always the last tab) is displayed on the bottom of EVERY tab (fixed or custom). It is still displayed in fixed tab 4.
A little background on the code:
Since the tabs are added dynamically they do not exist on postback and must be re-generated every time. This is done in Page_LoadComplete. I have tried it on PageLoad and it behaves the same way.
If I do not re-generate the pages on post back then the problem goes away - as do the custom tabs.
The only thing I could find was from last year, and was supposedly fixed (http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=16321
View 1 Replies
Apr 14, 2010
Trying to integrate with a legacy WSE web service, getting the below error while authenticating via that internal service. It's pointing to a line in web.config(</securityTokenManager> as in the below snippet of web.config file), but I dont see any issue in web.config. Copied the same build to other machine(Win2003) and it's working fine, I am seeing an error in Win XP. I checked for the related assemblies(the one mentioned under securityTokenManager), it's all there.
[Code]....
View 1 Replies
Mar 11, 2011
I am using a third party service that does an async callback to a URL I provide to them. So I tell them to use [URL] This must obviously map to an Incoming() method on my StatusController.
However, what I don't have control over is the format of the parameters they call my URL with. E.g. They will do a callback such as: [URL] I want to map this to the parameters of my action method: Incoming(string param1, string param2, int param3)
How do I do this?
View 3 Replies
Sep 1, 2010
Hint: this one might sound complicated, because I am trying to give as much info as possible, but I suspect that I just want someone to tell me "yes, you are correct".
On this legacy system, which dates from 2002, the user visits a web page and uses an RFID reader to read a tag number, which is then written to an input field on the web page.
The only s/w that comes with the reader is a custom DLL, nop .exe.
The very sparse documentation insists that only MSIE be used and that all security relating to ActiveX be disabled.
When I look into the source of the web page I see calls to functions in the DLL.
Now, here's the fun part: I know zilch about ActiveX, I have to make a minor change to the DLL _but_ the VB6 source code has been lost, so I guess that I have to recreate the (seemingly very simple) DLL from scratch - this week.
Decompiling the DLL shows me the functions (locateReader, getTagVal, closeReader). However, by decompiling I can't really know the number or type of the parameters, nor the return values ... and if anyone knows the API they are refusing to share it, but basically it all seems to have been lost in the mists of time as companies went bust, were bought & sold, merged & demerged and the initial DLL might have been written by an external guy, but no one knows who.
So, can I get the function params & type from the ASP page source?
I see things like
Reader = new ActiveXObject("<dllName>.Reader");
Reader.locateReader();
tagVal = Reader.getTagVal();
Reader.closeReader();
So, I would say that none of the fn()s take parameters, that closeReader doesn't have to return anything; it looks like locateReader doesn't return anything either, so I guess that error handling will have to be in the DLL (loop forever with a popup demanding that a reader be attached; and getTagVal seems to return a string.
Does that sound about right? Any other comments (other than lessons to be learned)?
View 1 Replies
Jan 12, 2011
Our old ASP.net site stored static images in a sub directory on the root called /images.
Our new ASP.net MVC site stores these images in the new layout of /Content/Images
I've changed all the pages in the site to cope with the new folder structure, but I'd like to set up Permanent Redirects from the old static images to the new location.
View 1 Replies
Nov 12, 2010
Searching for out of box authenitcation tool/component that authenticates against Active Directory for Classic ASP AND legacy .NET 1.1 applications.
View 2 Replies
Jun 13, 2010
Company I work for have a site developed 6-8 years ago by a team that was enthusiastic enough to use their own private PHP-based CMS. I have to put dynamic data from one intranet company database on this site in one week: 2-3 pages. I contacted company site administrator and she showed me administrative part - CMS allows only to insert html blocks & manage site map (site is deployed on machine that is inside company & fully accessible & upgradeable).
I'm not a PHP-guy & I don't want to dive into legacy hardly-who-ever-heard-about CMS engine I also don't want to contact developers team, 'cos I'm not sure they are still present and capable enough to extend this old days site and it'll take too much time anyway. I am about to deploy helper asp.net site on IIS with 2-3 pages required & refer helper site via iframe from present site. New pages will allow to download some dynamic content from present site also. Is it ok and what are the pitfalls with iframe approach?
View 1 Replies
Nov 3, 2010
I normally use server controls i.e Textbox so i can get access to the server side event.
But what if i don't need access to the server side event and i am going to place some jquery or javascript on the textbox for example.
Can i use a standard HTML (client controls) ?
View 3 Replies
Feb 12, 2010
I have an (ASP.NET 3.5) intranet application which has been designed to use forms authentication (along with the default aspnet membership system). I also store additional information about users in another table which shares its primary key with the aspnet_users table.
For users who are part of our domain I store their domain account name in the secondary users table, and I want to automatically log in users whose domain account name matches a name stored in the table.
I have read the guides which are available - they're all from two years ago or more and assume that you are able to activate Windows Authentication on a separate login page that allows you to extract the domain account name. From what I can tell, though, this is not possible in IIS7 (the overall authentication method is applied on all pages and cannot be selectively deactivated, and both authentication methods can't be applied on the same page).
Is there a way of getting IIS to pass through the windows domain account name of the requesting user? I don't need proper AD authentication, just the domain name.
View 6 Replies
Jun 30, 2010
I have an existing ASP.NET application and there is a requirement in which i need to use ASP.NET MVC in that.
So altogether i need to mixing ASP.NET Webforms and ASP.NET MVC I am following an article [URL] I am done with all the steps. But its not working as expected.
[Code]....
When ever i add this to the web.config i am getting error. HTTP Error 500.22 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. ERROR CODE: 0x80070032 My OS is Vista Enterprise Edition.
View 1 Replies
Nov 29, 2010
I was wondering if there is a way to protect asp.net front and backend code from being stollen.i.e.Is there a way to scramble your c# code from a web application and still have it run exactly the same?Any free ways of doing this?
View 3 Replies