473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Use Microsoft.ApplicationBlocks.Data in a C# object.

Greetings,

Can someone please help me with the following? I am trying to compile
a C# object which contains a reference to the
Microsoft.ApplicationBlocks.Data library.

I have compiled the csproj file into a dll and it has been copied to
my applications' /bin folder, I then create a test.aspx file and
imported the library, the page loads fine, hence I assume it test.aspx
page can find the package.

However when I create a new C# object called Order.cs and I reference
the package with the "Using" keyword, I am unable to compile the
Order.cs file, it constantly returns the following message,

error CS0234: The type or namespace name 'ApplicationBlocks' does not
exist in the class or namespace 'Microsoft' (are you missing an
assembly reference?)

So what I did next was to use the command "sn" and "gacutil" to create
a strong name which I then added to my Windows\assembly directory, I
have verified that the Microsoft.ApplicationBlocks.Data is in the
assembly directory, however when I try to compile the Order.cs with
the "csc" command, I still receive the above message.

So the question is, what do I need to do to allow me to compile my
Order.cs file into an Order.dll file?
Any assistance will be greatly appreciated.

Thanks,
Keith.
Nov 18 '05 #1
1 7421
Have you made sure that the application block .dll is actually included as
in the project. Is it listed as one of your references for the Orders
project?

Thanks,
Lyndon Hughey

"bootman" <bo**@keromail.com> wrote in message
news:a5**************************@posting.google.c om...
Greetings,

Can someone please help me with the following? I am trying to compile
a C# object which contains a reference to the
Microsoft.ApplicationBlocks.Data library.

I have compiled the csproj file into a dll and it has been copied to
my applications' /bin folder, I then create a test.aspx file and
imported the library, the page loads fine, hence I assume it test.aspx
page can find the package.

However when I create a new C# object called Order.cs and I reference
the package with the "Using" keyword, I am unable to compile the
Order.cs file, it constantly returns the following message,

error CS0234: The type or namespace name 'ApplicationBlocks' does not
exist in the class or namespace 'Microsoft' (are you missing an
assembly reference?)

So what I did next was to use the command "sn" and "gacutil" to create
a strong name which I then added to my Windows\assembly directory, I
have verified that the Microsoft.ApplicationBlocks.Data is in the
assembly directory, however when I try to compile the Order.cs with
the "csc" command, I still receive the above message.

So the question is, what do I need to do to allow me to compile my
Order.cs file into an Order.dll file?
Any assistance will be greatly appreciated.

Thanks,
Keith.

Nov 18 '05 #2

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

Similar topics

0
by: Karuppasamy | last post by:
H I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net I installed everything as per the Instructions given in the 'Development Using the Logging Block' ...
0
by: SS | last post by:
Hi All, I am trying to create a simple DBException Class which I want to use in different apps. Here is what I am doing: 1. I Created a VB Class Imports...
0
by: Basem | last post by:
I have found people with similar errors using the ConfigurationManagement application block, but those solutions don't seem to do anything...basically, just trying to read in a configuration xml...
1
by: Oney | last post by:
I use Microsoft Exception management block to publish exception to event log. but some error occured. Error is blow, how can I solve this problem ??? Configuration Error Description: An error...
0
by: Aamir79 | last post by:
Hi all, I'm using Microsoft Applications cache block in my web application. It worked fine for sometime then suddenly it is raising the following error: Message: "Can't validate the current...
1
by: Abc | last post by:
Namespace or type 'Data' for the Imports 'Microsoft.ApplicationBlocks.Data' cannot be found. is the error which i am getting while importing Microsoft.ApplicationBlocks.Data namespace. Can...
0
by: mateipuiu | last post by:
When a try to run a client build on 2005, which uses the Microsoft.ApplicationBlocks.Cache.dll reference, when using a Microsoft.ApplicationBlocks.Cache.dll created on Debug mode, the client works...
6
by: Milsnips | last post by:
hi there, i;m doing a loop of a few hundred records and inserting into database using the MS data dll, and the following line dim sql as string = "mysql code is here..."...
5
by: Michael Howes | last post by:
I'm upgrading a VS 2003/.Net 1.1 ASP.Net application to VS 2008/.Net 3.0 The application uses an older version of the Microsoft Data Blocks for database access. The version in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.