Click here to Skip to main content
15,893,487 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCan you help me Pin
mghiassi25-Apr-07 3:21
mghiassi25-Apr-07 3:21 
AnswerRe: Can you help me Pin
_mubashir25-Apr-07 4:07
_mubashir25-Apr-07 4:07 
Questioncant access other classes in namespace Pin
iuliuz25-Apr-07 3:10
iuliuz25-Apr-07 3:10 
AnswerRe: cant access other classes in namespace Pin
enjoycrack25-Apr-07 4:52
enjoycrack25-Apr-07 4:52 
GeneralRe: cant access other classes in namespace Pin
iuliuz25-Apr-07 21:28
iuliuz25-Apr-07 21:28 
QuestionMembership Provider Help Needed Pin
Brendan Vogt25-Apr-07 3:04
Brendan Vogt25-Apr-07 3:04 
AnswerRe: Membership Provider Help Needed Pin
enjoycrack25-Apr-07 4:51
enjoycrack25-Apr-07 4:51 
QuestionDatabase Connection Error Pin
chaddolan25-Apr-07 3:01
chaddolan25-Apr-07 3:01 
Hello Everyone,

I am trying to have my site connect to a database a check for an email address but when it goes to open the database I receive an error.
Here is the code up until I receive the error. Can anyone see if I am missing something?

Imports System
Imports System.Data
Imports System.Data.SqlClient

Partial Class login
Inherits System.Web.UI.Page

Private Function emailCheck() As Boolean
Dim conCED As SqlConnection
Dim cmdSelect As SqlCommand
Dim dtrLogin As SqlDataReader

Dim path As String
Dim provider As String

path = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DatabaseSQL.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
provider = "Database=DatabaseSQL;"
conCED = New SqlConnection(provider & path)
conCED.Open()

On the conCED.Open() I get this error message.
The header for file 'e:\wwwdata\56b549be\www\App_Data\DatabaseSQL.mdf' is not a valid database file header. The FILE SIZE property is incorrect.
Could not attach file 'e:\wwwdata\56b549be\www\App_Data\DatabaseSQL.mdf' as database 'DatabaseSQL'

Thanks for the help

Chad Dolan Confused | :confused:
AnswerRe: Database Connection Error Pin
enjoycrack25-Apr-07 4:48
enjoycrack25-Apr-07 4:48 
GeneralRe: Database Connection Error Pin
chaddolan26-Apr-07 2:10
chaddolan26-Apr-07 2:10 
QuestionQueryString Problems Pin
gus_br25-Apr-07 2:41
gus_br25-Apr-07 2:41 
AnswerRe: QueryString Problems Pin
Guffa25-Apr-07 7:07
Guffa25-Apr-07 7:07 
GeneralRe: QueryString Problems Pin
gus_br25-Apr-07 7:57
gus_br25-Apr-07 7:57 
QuestionTimers in ASP.Net Pin
VIP-CoMmAnDo25-Apr-07 2:32
VIP-CoMmAnDo25-Apr-07 2:32 
AnswerRe: Timers in ASP.Net Pin
Arun.Immanuel25-Apr-07 2:38
Arun.Immanuel25-Apr-07 2:38 
AnswerRe: Timers in ASP.Net Pin
enjoycrack25-Apr-07 4:45
enjoycrack25-Apr-07 4:45 
QuestionDeployment Pin
.NET- India 25-Apr-07 2:12
.NET- India 25-Apr-07 2:12 
AnswerRe: Deployment Pin
N a v a n e e t h25-Apr-07 3:04
N a v a n e e t h25-Apr-07 3:04 
QuestionSplash Screen Pin
.NET- India 25-Apr-07 2:07
.NET- India 25-Apr-07 2:07 
AnswerRe: Splash Screen Pin
Yogi Pandey25-Apr-07 2:11
Yogi Pandey25-Apr-07 2:11 
GeneralRe: Splash Screen Pin
_mubashir25-Apr-07 4:09
_mubashir25-Apr-07 4:09 
AnswerRe: Splash Screen Pin
Kunal P25-Apr-07 6:12
Kunal P25-Apr-07 6:12 
AnswerRe: Splash Screen Pin
C.Sharp.Mage25-Apr-07 13:19
C.Sharp.Mage25-Apr-07 13:19 
QuestionHelp with DataReader Pin
kallileo25-Apr-07 1:51
kallileo25-Apr-07 1:51 
AnswerRe: Help with DataReader Pin
kubben25-Apr-07 2:01
kubben25-Apr-07 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.