Can anyone tell me why the below code returns error?
Exception Details: System.IO.FileN otFoundExceptio n: Could not find
file
Dim strLFolder As String = "c:\Temp\F Files"
Dim intClientID As Integer = 1221
Dim XMLStr As String = strLFolder & "\" &
intClientID.ToS tring.Trim & "\Lk\HeaderTrai lerDeltails_dat a.xml"
Dim dsPubs As New DataSet
dsPubs.ReadXml( XMLStr)
where as the below code is working
Dim dsPubs As New DataSet
dsPubs.ReadXml( "c:\temp\F Files\1221\Lk
\HeaderTrailerD eltails_data.xm l")
Thanks 5 4887
On Jul 23, 1:31 pm, Amritha.Da...@g mail.com wrote:
Can anyone tell me why the below code returns error?
Exception Details: System.IO.FileN otFoundExceptio n: Could not find
file
Dim strLFolder As String = "c:\Temp\F Files"
Dim intClientID As Integer = 1221
Dim XMLStr As String = strLFolder & "\" &
intClientID.ToS tring.Trim & "\Lk\HeaderTrai lerDeltails_dat a.xml"
Dim dsPubs As New DataSet
dsPubs.ReadXml( XMLStr)
where as the below code is working
Dim dsPubs As New DataSet
dsPubs.ReadXml( "c:\temp\F Files\1221\Lk
\HeaderTrailerD eltails_data.xm l")
Thanks
Any response please?
if the full path is going to be hardcoded, why bother with all the
concatenation??
<Am***********@ gmail.comwrote in message
news:11******** **************@ g4g2000hsf.goog legroups.com...
On Jul 23, 1:31 pm, Amritha.Da...@g mail.com wrote:
>Can anyone tell me why the below code returns error? Exception Details: System.IO.FileN otFoundExceptio n: Could not find file
Dim strLFolder As String = "c:\Temp\F Files" Dim intClientID As Integer = 1221
Dim XMLStr As String = strLFolder & "\" & intClientID.To String.Trim & "\Lk\HeaderTrai lerDeltails_dat a.xml" Dim dsPubs As New DataSet dsPubs.ReadXml( XMLStr)
where as the below code is working
Dim dsPubs As New DataSet dsPubs.ReadXml( "c:\temp\F Files\1221\Lk \HeaderTrailer Deltails_data.x ml")
Thanks
Any response please?
On Jul 23, 3:16 pm, "S Moran" <s...@moran.com wrote:
if the full path is going to be hardcoded, why bother with all the
concatenation??
<Amritha.Da...@ gmail.comwrote in message
news:11******** **************@ g4g2000hsf.goog legroups.com...
On Jul 23, 1:31 pm, Amritha.Da...@g mail.com wrote:
Can anyone tell me why the below code returns error?
Exception Details: System.IO.FileN otFoundExceptio n: Could not find
file
Dim strLFolder As String = "c:\Temp\F Files"
Dim intClientID As Integer = 1221
Dim XMLStr As String = strLFolder & "\" &
intClientID.ToS tring.Trim & "\Lk\HeaderTrai lerDeltails_dat a.xml"
Dim dsPubs As New DataSet
dsPubs.ReadXml( XMLStr)
where as the below code is working
Dim dsPubs As New DataSet
dsPubs.ReadXml( "c:\temp\F Files\1221\Lk
\HeaderTrailerD eltails_data.xm l")
Thanks
Any response please?
Actually full path should not me hard coded in the program. What my
intention was it was working when I hard code and it was not working
when I use concatenations.
then something is not translating properly. put in a bunch of message box
statements to examine the values of each part of the string... im sure youll
find something. probably has to do with the integer portion
<Am***********@ gmail.comwrote in message
news:11******** **************@ 57g2000hsv.goog legroups.com...
On Jul 23, 3:16 pm, "S Moran" <s...@moran.com wrote:
>if the full path is going to be hardcoded, why bother with all the concatenation? ?
<Amritha.Da... @gmail.comwrote in message
news:11******* *************** @g4g2000hsf.goo glegroups.com.. .
On Jul 23, 1:31 pm, Amritha.Da...@g mail.com wrote: Can anyone tell me why the below code returns error? Exception Details: System.IO.FileN otFoundExceptio n: Could not find file
> Dim strLFolder As String = "c:\Temp\F Files" Dim intClientID As Integer = 1221
> Dim XMLStr As String = strLFolder & "\" & intClientID.To String.Trim & "\Lk\HeaderTrai lerDeltails_dat a.xml" Dim dsPubs As New DataSet dsPubs.ReadXml( XMLStr)
>where as the below code is working
> Dim dsPubs As New DataSet dsPubs.ReadXml( "c:\temp\F Files\1221\Lk \HeaderTrailer Deltails_data.x ml")
>Thanks
Any response please?
Actually full path should not me hard coded in the program. What my
intention was it was working when I hard code and it was not working
when I use concatenations.
On Jul 23, 3:52 pm, "S Moran" <s...@moran.com wrote:
then something is not translating properly. put in a bunch of message box
statements to examine the values of each part of the string... im sure youll
find something. probably has to do with the integer portion
<Amritha.Da...@ gmail.comwrote in message
news:11******** **************@ 57g2000hsv.goog legroups.com...
On Jul 23, 3:16 pm, "S Moran" <s...@moran.com wrote:
if the full path is going to be hardcoded, why bother with all the
concatenation??
<Amritha.Da...@ gmail.comwrote in message
>news:11******* *************** @g4g2000hsf.goo glegroups.com.. .
On Jul 23, 1:31 pm, Amritha.Da...@g mail.com wrote:
Can anyone tell me why the below code returns error?
Exception Details: System.IO.FileN otFoundExceptio n: Could not find
file
Dim strLFolder As String = "c:\Temp\F Files"
Dim intClientID As Integer = 1221
Dim XMLStr As String = strLFolder & "\" &
intClientID.ToS tring.Trim & "\Lk\HeaderTrai lerDeltails_dat a.xml"
Dim dsPubs As New DataSet
dsPubs.ReadXml( XMLStr)
where as the below code is working
Dim dsPubs As New DataSet
dsPubs.ReadXml( "c:\temp\F Files\1221\Lk
\HeaderTrailerD eltails_data.xm l")
Thanks
Any response please?
Actually full path should not me hard coded in the program. What my
intention was it was working when I hard code and it was not working
when I use concatenations.
How stupid I am...
I was a spelling mistake. HeaderTrailerDe ltails_data.xml
It shud be HeaderTrailerDe tails_data.xml
Thanks alot. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Koen |
last post by:
Hi all,
I created a little database to manage my e-books.
The program will synchronize a table with the contents of a directory.
Works great.
Because I keep additional info (like keywords) to the created
records in the database and I don't want to lose all that info
when I rename a file and synchronise, I've added some code to
the program. It works like this: when the filename of a DB records
|
by: Robert Lawson |
last post by:
I continue to get the below error message when trying to load a aspx
file. Could someone please point me in the right direction for solving
this? I'm trying to access an access data base and I'm the only one
accessing it at this time. I'm trying to learn this step by step and I'm
at the begining of ADO stuff.
Server Error in '/' Application.
------------------------------------------------------------------------
--------
|
by: Rob Dob |
last post by:
Hi,
I have a VS2003 C# asp.net project that has been converted into a VS2005
project. Everything seemed to work well until I make a modification to
anything within the Component Designer window, i.e. I add a SQLCommand. At
that point VS2005 changes my C# file to now load all Selectcommantext data
from the resource file instead of the .aspx.cs file. then when I try and
once again run my application I get the following error: looking...
|
by: Eric Falsken |
last post by:
Eric Falsken <eric@db4o.com> wrote on 04 Dec 2005:
> craigkenisston@hotmail.com wrote on 19 Nov 2005:
>
>> I'm working in the migration of an asp.net application in 1.1 to 2.0.
>> I'm new to this application, just worked with that some days.
>> Today, I decided to open the project in VS.2005 and everything seemed
>> to be fine, all opened and everything was migrated. I have been
>> working on improvements on it this day.
>>
|
by: ddelaney |
last post by:
I've seen this posted before in many places, but have yet to find a real fix.
I have a web application on dev server right now, and randomly, hours or
days, it returns the expception posted below. If I copy the
incHeader.ascx.vb over to the server again, it appears to recompile and works
fine, again, for random period of times. Even precompiling is no help. Is
there a fix or workaround so this can some stability? Any help at all is...
| |
by: antonyliu2002 |
last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP
December package and installed on BOTH my development machine and the
production server.
Then I created a very very simple web application, which contains a
button and a label. When the button is clicked, some message is shown
on the label. That's it.
The AJAX works great on my development machine, but on the production
server, I got the typical error as follows:
|
by: jjlagtap |
last post by:
Hey everyone
When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer. When someone else uses the web app and tries to open a file using the remote server the error below happens.
any help?
**Code**
C# - filepath is a valid file name which is passed via the form.
System.IO.BinaryReader br = new...
|
by: pratikkagda |
last post by:
Hi all,
My system contains Framework 3.5 with visual studio 2008 as well as 2005; here I have developed an application with crystal report with framework 2.0. It is working great in my system but when I upload this project into our production server (Production server only contains Framework 2.0 and IIS) and deployed the site to the production server with necessary assemblies, but it’s getting error as bellow.
In my system I could not find...
|
by: Lance Wynn |
last post by:
Hello,
I am receiving this error when trying to instantiate a webservice component.
I have 2 development machines, both are XP sp2 with VS 2008 installed. On
one machine, the code works fine. On the other machine I get the error upon
instantiating the service client. I add the reference by choosing Add
Service Reference from the project menu, and pointing to the remote wsdl
file. I can't seem to find what the difference between the two...
|
by: fniles |
last post by:
One of our application uses VB6 and Access97 database. Another application
uses VB.NET 2005.
This morning for about 15 seconds when the application tries to read either
a query or a table from the database, in in both VB6 and VB.NET
applications, I got the error "The Microsoft Jet database engine cannot find
the input table or query 'myTable'. Make sure it exists and that its name
is spelled correctly." Also, I got the error "The...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |