473,385 Members | 1,528 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.

Compile Component

Hi and TIA. I have some question about designing a component and how to use
it and where to place it. VS2005/ .net2.0/ Vista Business/ IIS7.0

I have a component DataSetToExcel.dll that I use in my app. I got it from
the web, compiled it and I've added this file to my bin directory and set a
reference to it (right click/add ref). I can then use it in my web pages
without adding an Imports DataSetToExcel to my code file. I thought you had
to use the Imports directive before it could be used in a web page. The way
I found this out is if I add the Imports DataSetToExcel directive I get an
error when I compile stating that "Overload resolution failed because no
accessible "convert" accepts this number of parameters. This is the line of
code that I I had in my page before adding the DataSetToExcel component (and
still have):
Dim NIIN As String = Convert.ToString(reader("NIIN")).
The DataSetToExcel component also has the method "Convert" overloaded 3
times and it accepts 2 parameters and I use it like so
DataSetToExcel.Convert(ds, Response).

So I guess my question is what is the proper method for using a compiled
component? Also, I read that once compiled and placed in the bin directory
it would be accessible to my entire app, but unless I also add a reference
(right click / add reference) it's not accessible. The reason I'm wondering
if I have to add the reference is because I work remotely and can FTP files
the server and bin folder, but don't know how to set the reference remotely
without call the server administrator and having them do it locally.
Anyway, if you could shed any light on this I would highly appreciate it.
Thanks for your time.
--

Reggie

Oct 23 '08 #1
1 1330
Forgot. Can I/should I simply place the DataSetToExcel.vb file in my
App_Code folder and use it from there. If so do I need to use it? Thanks
again!

--

Reggie
"Reggie" <No*****************@yahoo.comwrote in message
news:Oa**************@TK2MSFTNGP03.phx.gbl...
Hi and TIA. I have some question about designing a component and how to
use it and where to place it. VS2005/ .net2.0/ Vista Business/ IIS7.0

I have a component DataSetToExcel.dll that I use in my app. I got it from
the web, compiled it and I've added this file to my bin directory and set
a reference to it (right click/add ref). I can then use it in my web
pages without adding an Imports DataSetToExcel to my code file. I thought
you had to use the Imports directive before it could be used in a web
page. The way I found this out is if I add the Imports DataSetToExcel
directive I get an error when I compile stating that "Overload resolution
failed because no accessible "convert" accepts this number of parameters.
This is the line of code that I I had in my page before adding the
DataSetToExcel component (and still have):
Dim NIIN As String = Convert.ToString(reader("NIIN")).
The DataSetToExcel component also has the method "Convert" overloaded 3
times and it accepts 2 parameters and I use it like so
DataSetToExcel.Convert(ds, Response).

So I guess my question is what is the proper method for using a compiled
component? Also, I read that once compiled and placed in the bin
directory it would be accessible to my entire app, but unless I also add a
reference (right click / add reference) it's not accessible. The reason
I'm wondering if I have to add the reference is because I work remotely
and can FTP files the server and bin folder, but don't know how to set the
reference remotely without call the server administrator and having them
do it locally. Anyway, if you could shed any light on this I would highly
appreciate it. Thanks for your time.
--

Reggie
Oct 23 '08 #2

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

Similar topics

2
by: Neil Davidson | last post by:
We have a component without a user interface which we want to license at design time. If someone has a design-time license then they should be able to compile applications using the component,...
6
by: Baskar RajaSekharan | last post by:
In C-sharp, I wnat to know whether the Component is compiled in Debug Mode or Run Mode through Code. How is it possible? Is there any way to Access the Config file and check? Please let me know...
2
by: Edward Diener | last post by:
How does one specify in a component that a property is a pointer to another component ? How is this different from a property that is actually an embedded component ? Finally how is one notified in...
4
by: Lowell | last post by:
Any tips for trouble shooting errors when the ASPX page won't even compile? What happens is that VS will "build" the code-behind object and the component that it instantiates, but when I navigate to...
4
by: Seok Bee | last post by:
Dear Experts, I've completed my console application and now wants to compile the application and an executable file to be run at another location. However, I've tried compiling that program in...
27
by: Rene | last post by:
I keep getting the following error every time I compile the solution under VS 2005: ---------------- Error 5 Unable to copy file "obj\Debug\xyz.dll" to "bin\Debug\xyz.dll". The process...
5
by: DFB | last post by:
I am the author of the ZLibNetWrapper project on SourceForge (located at zlibnetwrapper.sf.net). This project is a simple mixed-mode .NET wrapper around the ZLib compression library. The ZLib...
1
by: ft310 | last post by:
I am getting the following message when I compile a program with VB .net 2003. The dependency 'Interop.StdFormat' could not be found. There are three other messages following this: The...
6
by: Johnny Jörgensen | last post by:
I've got a usercontrol derived from a normal ComboBox that contains some special formatting code. On my main form I've got a lot of my custom comboboxes. I discovered a bug in the derived...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.