Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 6 of 6

Thread: Mixing vb.net & C# in ML 9

  1. #1
    K-BL is offline Member
    Join Date
    Aug 2008
    Location
    USA
    Posts
    43

    Talking Mixing vb.net & C# in ML 9

    I'm working with a proprietary vb.net script in ADNSF 9.0.1.2 c# (I know I know). When compiling I'm running into an error calling for a reference to the following assembly: "ASPDNSFApplication, Version=9.0.1.0, Culture=neutral, PublicKeyToken=d3bfa7dbea38d867' containing the base class 'AspDotNetStorefront.Global". The assembly has been added to the web.config and as well in the bin directory, but will not work. How should I proceed?

    Thanks!

    **EDIT**

    See post #5 for this thread. At first, I must admin I was somewhat upset by this "bug", but now, after taking a step back, I'v found that this is actually a cleaner way to build custom classes. PROPS TO THE AspDotNetStorefront Team! If we get a fix or not in the future, I may continue to code this way!
    Last edited by K-BL; 05-27-2010 at 06:34 AM.
    Robert Plummer
    VisOp-Dev.com
    Visual Interop Development

  2. #2
    K-BL is offline Member
    Join Date
    Aug 2008
    Location
    USA
    Posts
    43

    Default

    I meant to say 9.0.1.3.
    Robert Plummer
    VisOp-Dev.com
    Visual Interop Development

  3. #3
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Microsoft has confirmed that this is indeed a bug in the framework that can occur depending on application structure any time a vb.net file is present. Due to the logistics of the issue, they don't intend on resolving and recommend finding a workaround. We are currently pursuing said workaround and should have a resolution within the next couple days or so.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  4. #4
    K-BL is offline Member
    Join Date
    Aug 2008
    Location
    USA
    Posts
    43

    Default

    Any updates?
    Robert Plummer
    VisOp-Dev.com
    Visual Interop Development

  5. #5
    K-BL is offline Member
    Join Date
    Aug 2008
    Location
    USA
    Posts
    43

    Talking Work Around

    I know this can be a pain, but I'm actually compiling this method right now and it seems to work:
    First: Put your vb.net in a file in a sub directory of App_Code
    Second: Put the following in web.config under "compilation"
    C#/VB.NET Code:
                <codeSubDirectories>
                    <
    add directoryName="MyDirectoryName" />
                </
    codeSubDirectories
    Third reference your vb.net class in a c# page

    Seems to work, I will let you know if I run into anything major.
    Robert Plummer
    VisOp-Dev.com
    Visual Interop Development

  6. #6
    K-BL is offline Member
    Join Date
    Aug 2008
    Location
    USA
    Posts
    43

    Thumbs up

    This method is now confirmed and working.
    Robert Plummer
    VisOp-Dev.com
    Visual Interop Development