473,396 Members | 1,843 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,396 software developers and data experts.

Invalid value for key 'attachdbfilename'.

I got this error the first time I tried to debug a dynamic data web form. I
created the database using the VS2K5 tool in the app_data directory of the
website (specifically D:\Websites\WarrenLive\Cortana\App_Data\Cortana.md f).

Here is value for key attachdbfilename in my connection string:
"D:\Websites\WarrenLive\Cortana\App_Data\Cortana.m df".

I Googled this error and found a post by Gregory A. Beamer which ended with
the following suggestion: " . . . check and make sure you have the file in
the proper location."

Other than putting it in the App_Data directory, what is the 'proper
location'? Or, more to the point, what's wrong with this value?

Thanks.

Ross
Sep 19 '07 #1
1 4323
Apparently the problem was that even though the dynamic data web form was
placed within a folder with the same name as a table in the SQLExpress
database, the form really couldn't find the database.

All I had to do to get past this error was to drag the table from the server
explorer onto the form, which of course created a gridview on the page. By
doing so, the form could now make the connection to the server.

Ross

"Ross Culver" <rc*****@warrenalloy.comwrote in message
news:en****************@TK2MSFTNGP03.phx.gbl...
>I got this error the first time I tried to debug a dynamic data web form.
I created the database using the VS2K5 tool in the app_data directory of
the website (specifically
D:\Websites\WarrenLive\Cortana\App_Data\Cortana.m df).

Here is value for key attachdbfilename in my connection string:
"D:\Websites\WarrenLive\Cortana\App_Data\Cortana.m df".

I Googled this error and found a post by Gregory A. Beamer which ended
with the following suggestion: " . . . check and make sure you have the
file in the proper location."

Other than putting it in the App_Data directory, what is the 'proper
location'? Or, more to the point, what's wrong with this value?

Thanks.

Ross

Sep 20 '07 #2

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

Similar topics

3
by: Simon Reye | last post by:
Is there a way to force a floating point value to be invalid? I'm reading floating points from a device and every now and then I get an invalid number, but it is too few and far between for me to...
4
by: Nate | last post by:
Hello, I'd like to somehow put minIncl and maxIncl around the data I am sending from my producer. One of the requirements is to allow the producer to send an invalid number to the consumer. ...
10
by: jeff regoord | last post by:
A user inputs a float value. The scanf() function gets the value. However, I need to create an error handler with an if else statement saying invalid input if the input is not a number. Does...
21
by: Allin Cottrell | last post by:
OK, I realize that what I am asking here is not likely to have a answer within the C standard. Nonetheless, it is not specific to any particular platform, so I'll hazard the question anyway. A...
1
by: Hifni Shahzard | last post by:
Hi, I got a stored procedure, where it returns a value. But if I execute it. It gives an error as "Invalid cast from System.Int32 to System.Byte.". To make clear how do I execute this, below I'm...
0
by: PJDotNet | last post by:
Hi, I have a major issue with the way |DataDirectory| gets substituted when used in a connection string in web.config. In a simple scenario when a precompiled web site xcopied to a target web...
1
by: Stanimir Stamenkov | last post by:
This is an issue I've got using the Xerces-J 2.7.1 release when loading the following schema: <?xml version="1.0" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element...
0
by: Varangian | last post by:
Hello I found a host that supports only Sql Server Express AttachDbFilename ..mdf from the App_Data folder .... what difference is there between using this and using the normal connection string...
2
by: jerrysc99 | last post by:
I'm getting the following error below. System.Configuration.ConfigurationException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 8, position 68....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
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
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,...

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.