473,405 Members | 2,310 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,405 software developers and data experts.

Cannot find file specified error

I will also post this in the CR group but because I program in VB maybe
somebody here might be able to help.

I am working on a new project that incorporates a few forms. I just created
my first form and I am assigning a variable to it here:

Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report's vb language.

I am doing the exact same thing as I have in another project and that one
works fine.

What might I be missing?

Thanks for the information.

Brad
Nov 21 '05 #1
13 4970
Brad,

It has to be armbandnummers or braceletnumber (or is it SA)

However that can in my opinion not be the error, therefore you should tell
something more
Dim anrpt As New ArmbandNumbers This means create a new object anrpt from the class ArmbandNumbers

That ArmbandNumbers class can be in a referenced dll what maybe is lost,
however now it becomes to much guessing .

I am guessing that you are not using Visual Studio Net now.
Cor

"Brad" <ba******@ukcdogs.com>
I will also post this in the CR group but because I program in VB maybe
somebody here might be able to help.

I am working on a new project that incorporates a few forms. I just
created my first form and I am assigning a variable to it here:

Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report's vb language.

I am doing the exact same thing as I have in another project and that one
works fine.

What might I be missing?

Thanks for the information.

Brad

Nov 21 '05 #2
"Brad" <ba******@ukcdogs.com> schrieb:
Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report's vb language.


Is this the /complete/ error message?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
Herfried and Cor,

I created a new Crystal Report using Project | Add New Item | Crystal Report. I then set the dataset and designed the form. I named this form ArmbandNumbers.rpt.

In my main program I:

DIM anrpt as New ArmbandNumbers

When the program hits this line, this is the exact exception that is returned:

"A first chance exception of type 'System.IO.FileNotFoundException' occured in CrystalDecisions.CrystalReports.Engine.dll'

Additional information: The System cannot find the file specified."

And in the debug, it highlights The MyBase.New():

'------------------------------------------------------------------------------

' <autogenerated>

' This code was generated by a tool.

' Runtime Version: 1.1.4322.573

'

' Changes to this file may cause incorrect behavior and will be lost if

' the code is regenerated.

' </autogenerated>

'------------------------------------------------------------------------------

Option Strict Off

Option Explicit On

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.ReportSource

Imports CrystalDecisions.Shared

Imports System

Imports System.ComponentModel

Public Class ArmbandNumbers

Inherits ReportClass
Public Sub New()

MyBase.New

End Sub

Thanks for any help you can give. I have several other apps that uses Crystal Reports where everything is working fine and I structured the syntax just like the other programs. And yes, Cor, I am using VB .Net.

Brad

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:Oi**************@TK2MSFTNGP11.phx.gbl...
"Brad" <ba******@ukcdogs.com> schrieb:
Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report's vb language.


Is this the /complete/ error message?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
And some more information, if I do just this:

Dim anrpt As ArmbandNumbers
daArmNums.SelectCommand.Parameters(0).Value = selClassic
daArmNums.Fill(DsArmNums1)
anrpt.Database.Tables(0).SetDataSource(DsArmNums1. Tables(0))
crvPrep.ReportSource = anrpt

I get this exception:

A first chance exception of type 'System.NullReferenceException' occurred in
ClassicEntry.exe

Additional information: Object reference not set to an instance of an
object.

Brad

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oi**************@TK2MSFTNGP11.phx.gbl...
"Brad" <ba******@ukcdogs.com> schrieb:
Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report's vb language.


Is this the /complete/ error message?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5
Brad,

I tried it, no problems, did you try it yourself already with a new project doing nothing more than you said, even not the dataset.

Cor
Nov 21 '05 #6
Brad,

You wrote in your previous message something else because this is what you
get when you do not instance an object with New.
Dim anrpt As New ArmbandNumbers
Dim anrpt As ArmbandNumbers


Cor
Nov 21 '05 #7
Cor,

I did just create a new project just to test building a report just as I did with the main project, using the same dataset and it works.

So now what should I do, delete the report and all references from the main project and try to recreate it?

Brad
"Cor Ligthert" <no************@planet.nl> wrote in message news:OA**************@TK2MSFTNGP14.phx.gbl...
Brad,

I tried it, no problems, did you try it yourself already with a new project doing nothing more than you said, even not the dataset.

Cor
Nov 21 '05 #8
Brad,

So now what should I do, delete the report and all references from the main
project and try to recreate it?

That was what I would do, however if you do it is your own choose.

Cor

Nov 21 '05 #9
Cor,

I tried deleting all references to Crystal, the report, everything and then
rebuilt the report and it does the same thing.

This is driving me nutty today.

Brad

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Brad,

So now what should I do, delete the report and all references from the
main project and try to recreate it?

That was what I would do, however if you do it is your own choose.

Cor

Nov 21 '05 #10
Brad,

Did you open your designer part and looked if there are some orphaned parts,
it will not be the first time that that happens.

Cor
Nov 21 '05 #11
Cor,

Can you help me with that, because I am not familiar with orphaned parts. I
did go through the code of the report to see if there was anything strange.

I am also now dealing with Business Objects (creator of CR) to see if they
know.

Brad

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eL**************@TK2MSFTNGP11.phx.gbl...
Brad,

Did you open your designer part and looked if there are some orphaned
parts, it will not be the first time that that happens.

Cor

Nov 21 '05 #12
Brad,

Now I see you wrote "I deleted all the references to the report". Did you
try it with another report because I get more and more the idea that it is
in the report.

And to overcome orphaned parts, would I just use other names.

I hope this helps,

Cor

"Brad" <ba******@ukcdogs.com>
..
Cor,

Can you help me with that, because I am not familiar with orphaned parts.
I did go through the code of the report to see if there was anything
strange.

I am also now dealing with Business Objects (creator of CR) to see if they
know.

Brad

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eL**************@TK2MSFTNGP11.phx.gbl...
Brad,

Did you open your designer part and looked if there are some orphaned
parts, it will not be the first time that that happens.

Cor


Nov 21 '05 #13
The Crystal Report people thought the same thing - that I named the report
the same as a class, however I didn't. And I did try to recreate the report
using a totally unique name. When I deleted all references to Crystal
Reports, they were added back in when I recreated the report as they should
be.

I zipped the whole file and e-mailed the support person at Crystal Reports.
I am hoping this problem is something simple and I will let you know what
they say.

Brad
"Cor Ligthert" <no************@planet.nl> wrote in message
news:Og*************@TK2MSFTNGP12.phx.gbl...
Brad,

Now I see you wrote "I deleted all the references to the report". Did you
try it with another report because I get more and more the idea that it is
in the report.

And to overcome orphaned parts, would I just use other names.

I hope this helps,

Cor

"Brad" <ba******@ukcdogs.com>
.
Cor,

Can you help me with that, because I am not familiar with orphaned parts.
I did go through the code of the report to see if there was anything
strange.

I am also now dealing with Business Objects (creator of CR) to see if
they know.

Brad

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eL**************@TK2MSFTNGP11.phx.gbl...
Brad,

Did you open your designer part and looked if there are some orphaned
parts, it will not be the first time that that happens.

Cor



Nov 21 '05 #14

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

Similar topics

4
by: Vince | last post by:
Hi, I am not used to template and I cannot find what's wrong with this code : Compiler(MSVS 7) complains at line : class iterator : public std::iterator<... Here is the source code
1
by: Mullin Yu | last post by:
my web services is reference a vb6 com dll, and if it's registered at the local machine, the web service is working. but, if i put the dll to a z: which is mapping to a network driver and...
0
by: yma | last post by:
Hi, I have a web.config file that contains <httpHandlers> section that causes "cannot load file..." error. If I delete this section, it is OK. Why did vb.net add this section? It does not add...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
1
by: hypermommy | last post by:
Hi all, I have a problem that's got me just stumped. On my local machine (WinXPPro) my application runs just fine. But on the client's server (Win2003ServerStandard) when I try to pull up my...
1
by: marty.gagnon | last post by:
I have a xsl file that references a xml file using the document() function. I'm having trouble specifying the URI in the document() function of a xls stylesheet. I'm using java to transform the...
1
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of...
1
by: Seriph | last post by:
Hey I just installed Textpad ver 4.something and writen up a simple println program, but I cant compile it. I keep getting the message "cannot find the file specified" with...
2
by: Gilles Ganault | last post by:
Hello I'm trying to use urllib to download web pages with the GET method, but Python 2.5.1 on Windows turns the URL into something funny: ======== url = "amazon.fr/search/index.php?url=search"
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: 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
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...
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.