Unable to load the specified metadata resource
Posted: Sun 19 Apr 2009 07:19
I'm using Entity Developer for "dotConnect for Oracle", have trouble as below:
1.Create project in Entity Developer by \menu\Create from Database\Entity Framework
2.setup all properties about connection(I use Direct=False)
3.make a connection successfully.
4.press next and selected tables
5.keep the namespace & name of Entity Model as default
6.press next to create
7.shown "Wizard finished successfully"
8.check "Run generator for model" & selected Template = Entity Visual Basic, set Destination Folder as my \VS2008 project folder\app_code
9.click Finish
10.I can see 4 files created in my \VS2008 project folder\app_code:
xxx.csdl
xxx.msl
xxx.ssdl
xxx.vb
11.my code as below, will get an error while running:
"Unable to load the specified metadata resource", how can I do?
I did try to put the connectionString in to web.config, but still get the same error message. please help me!
Thanks!
1.Create project in Entity Developer by \menu\Create from Database\Entity Framework
2.setup all properties about connection(I use Direct=False)
3.make a connection successfully.
4.press next and selected tables
5.keep the namespace & name of Entity Model as default
6.press next to create
7.shown "Wizard finished successfully"
8.check "Run generator for model" & selected Template = Entity Visual Basic, set Destination Folder as my \VS2008 project folder\app_code
9.click Finish
10.I can see 4 files created in my \VS2008 project folder\app_code:
xxx.csdl
xxx.msl
xxx.ssdl
xxx.vb
11.my code as below, will get an error while running:
"Unable to load the specified metadata resource", how can I do?
Code: Select all
Imports Devart.Data.Oracle, System.Data, Opennodesmodel
Protected Sub ButtonCheckPass_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonCheckPass.Click
Dim con As OPENNODESEntities = New OPENNODESEntities
Dim query = From it In con.SiteUsers Where it.UserId = "A9" Select it
Dim user As Opennodesmodel.SiteUser
For Each user In query
If user.Password = FormsAuthentication.HashPasswordForStoringInConfigFile("12301230", "SHA1")
Then
Label1.Text = "pass!"
Else
Label1.Text = "error!"
End If
Next
End Sub
Thanks!