472,353 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 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 4886
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...
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...
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. ...
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? ...
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...
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...
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...
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...
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: ...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.