473,785 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5001
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******@ukcdo gs.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******@ukcdo gs.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.File NotFoundExcepti on' occured in CrystalDecision s.CrystalReport s.Engine.dll'

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

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

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

' <autogenerate d>

' 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 CrystalDecision s.CrystalReport s.Engine

Imports CrystalDecision s.ReportSource

Imports CrystalDecision s.Shared

Imports System

Imports System.Componen tModel

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******** ******@TK2MSFTN GP11.phx.gbl...
"Brad" <ba******@ukcdo gs.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.Selec tCommand.Parame ters(0).Value = selClassic
daArmNums.Fill( DsArmNums1)
anrpt.Database. Tables(0).SetDa taSource(DsArmN ums1.Tables(0))
crvPrep.ReportS ource = anrpt

I get this exception:

A first chance exception of type 'System.NullRef erenceException ' occurred in
ClassicEntry.ex e

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******** ******@TK2MSFTN GP11.phx.gbl...
"Brad" <ba******@ukcdo gs.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******** ******@TK2MSFTN GP14.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******** ********@TK2MSF TNGP11.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

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

Similar topics

4
1463
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
1601
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 registered that dll and then add reference to the web service. i got the error "cannot find the module" error. any ideas? thanks!
0
1723
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 this section now. Thank you. <!-- PREVENT SOURCE CODE DOWNLOAD This section sets the types of files that will not be downloaded. As well as entering a httphandler for a file type, you must also associate that file
3
16519
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 something in PHP that I don't have? Do I need to install more Linux packages? Or adjust PHP in some way?
1
1848
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 default.aspx or login.aspx page, I get no error message but simply a plain white page that says "The system could not find the file specified". I don't believe this is related to my code since it runs fine on my machine. But then again, the...
1
2738
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 stylesheet, and when it evaluates the document() function, it cannot find the specified file. This is how I reference the xml file I'm having trouble with <xsl:value-of select="document('glcodes.xml',//)/glcodes/code"/>
1
10498
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 my upload.savevirtual : Set Upload = Server.CreateObject("Persits.Upload") upload.savevirtual ("test/") .. ''''error:
1
3715
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 C:WINDOWS\systems32\javac.exe as the title. I know that its a directional problem but i dont know where to change the settings. I know whoever is answering this is probebly tired of helping noobs out with this question all the time so sorry in advance for the trouble.
2
3191
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
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
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
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
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
6739
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
5381
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
4050
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
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
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.