473,662 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mixed Language Development with WAP

AG
Thanks to help from this group I was able to use both VB and C# in a Website
Project, so I understand about creating language subfolders under App_Code
folder.

However, I have another project that I converted from Website Project to Web
Application Project.
It is all VB except for one C# class.
Since there is no App_Code folder with WAP, is there any way to still
include the C# class in the same project or am I resigned to either
converting it to VB or making it a separate project and referencing it in
the WAP?

TIA

--

AG
Email: discuss at adhdata dot com


May 23 '07 #1
6 1358
re:
!Since there is no App_Code folder with WAP, is there
!any way to still include the C# class in the same project

See Rick Strahl's blog entry on this :

"WAP recognizes the special APP_CODE folder but requires
that it be renamed and so it creates a OLD_APP_CODE folder.

It creates the folder containing files marked with a Build Action - Content
(select the source code file and look at properties). The file should be
marked with Build Action – Compile.

Without this none of your APP_CODE related code will be
recognized most likely causing big problems for compilation."


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"AG" <NO**********@n ewsgroups.nospa mwrote in message news:ut******** ******@TK2MSFTN GP03.phx.gbl...
Thanks to help from this group I was able to use both VB and C# in a Website Project, so I
understand about creating language subfolders under App_Code folder.

However, I have another project that I converted from Website Project to Web Application Project.
It is all VB except for one C# class.
Since there is no App_Code folder with WAP, is there any way to still include the C# class in the
same project or am I resigned to either converting it to VB or making it a separate project and
referencing it in the WAP?

TIA

--

AG
Email: discuss at adhdata dot com



May 23 '07 #2
Hi AG,

The WAP compiles your code into a single assembly, therefore I don't think
it's possible to use mixed language in it. You can create a separate C#
class library and put the C# class there, then reference the class from
your web project.

Hope this helps.
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

May 23 '07 #3
AG
That's what I thought, but just wanted to confirm.
One more question. Is there any performance difference in a site published
via the Website model vs WAP?

--

AG
Email: discuss at adhdata dot com

"Walter Wang [MSFT]" <wa****@online. microsoft.comwr ote in message
news:Dr******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi AG,

The WAP compiles your code into a single assembly, therefore I don't think
it's possible to use mixed language in it. You can create a separate C#
class library and put the C# class there, then reference the class from
your web project.

Hope this helps.
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no
rights.

May 23 '07 #4
AG
Thanks for the quick reply, Juan.

I could not find his blog entry, but did find his white paper. It does
provide a link
http://webproject.scottgu.com/CSharp...igration2.aspx for
instructions to convert from Website to WAP. It happens to be the same
instructions I had used to do my conversion.
My site is already converted and works. I just had to put the C# class into
a separate class library and was wondering if there was another way to mix
languages.

--

AG
Email: discuss at adhdata dot com

"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:ey******** ******@TK2MSFTN GP06.phx.gbl...
re:
!Since there is no App_Code folder with WAP, is there
!any way to still include the C# class in the same project

See Rick Strahl's blog entry on this :

"WAP recognizes the special APP_CODE folder but requires
that it be renamed and so it creates a OLD_APP_CODE folder.

It creates the folder containing files marked with a Build Action -
Content
(select the source code file and look at properties). The file should be
marked with Build Action - Compile.

Without this none of your APP_CODE related code will be
recognized most likely causing big problems for compilation."


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"AG" <NO**********@n ewsgroups.nospa mwrote in message
news:ut******** ******@TK2MSFTN GP03.phx.gbl...
>Thanks to help from this group I was able to use both VB and C# in a
Website Project, so I
understand about creating language subfolders under App_Code folder.

However, I have another project that I converted from Website Project to
Web Application Project.
It is all VB except for one C# class.
Since there is no App_Code folder with WAP, is there any way to still
include the C# class in the
same project or am I resigned to either converting it to VB or making it
a separate project and
referencing it in the WAP?

TIA

--

AG
Email: discuss at adhdata dot com




May 23 '07 #5
I don't think there're any notable performance difference.
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

May 24 '07 #6
AG
Thank you.

--

AG
Email: discuss at adhdata dot com

"Walter Wang [MSFT]" <wa****@online. microsoft.comwr ote in message
news:HO******** ******@TK2MSFTN GHUB02.phx.gbl. ..
>I don't think there're any notable performance difference.
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no
rights.

May 24 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4503
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock problem and the potential for deadlocks. After pouring over the available information, and trying a few experiments, I am still left with a few questions and issues I hope someone out there can shed some light on.
8
1992
by: Nadav | last post by:
Hi, I am writing a performence critical application, this require me to stick to unmanaged C++ as performance is much better using unmanaged C++ ( about 33% better ), Still, I am trying to avoid the usage of old style COM, my alternative is to expose my unmanaged interface through the CLI, to achieve that I have created a mixed mode DLL in which my unmanaged class are defined. When referencing the DLL just described in another mixed mode EXE...
6
1125
by: Arne Garvander | last post by:
Supposedly the 2.0 framework allows mixed language development. Has anyone got it to work? I know it doesn't work in the app_code directory. -- Arne Garvander Certified Geek
6
1668
by: AG | last post by:
I am working on a web app using both C# and VB. Yes, there is a reason for it. All the code behind is C#. In the web.config I have the following <compilation debug="true"> <codeSubDirectories> <add directoryName="VB_Code"/> <add directoryName="Csharp_Code"/>
6
1548
by: David Short | last post by:
I'm missing something fairly easy. I've a mixed language application running c# and DLL's of C++ and Fortran code. The application works fine on the machine with the development environment. Microsoft's C compiler and Intel's Fortran compiler. The target machine and the development machines both have .Net 2 on them If I copy over the directory to a separate machine, the executable crashes/throws exceptions as the first non c# DLL is...
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5654
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.