This message was discovered on ASPFriends.com 'aspngvs' list.
| Sunil Pati |
Hello friends,
I am stuck with this problem since many days. I was trying to compile a simple file in ASP.NET which involves database access (Ms. Access). Whenever i am trying to compile my aspx.vb file it is showing me 3 build errors as
" Resource transformation for file 'Myfile.aspx.resx' failed. File or assembly name System.Windows.Forms, or one of its dependencies not found" (line 0)
" Resource transformation for file 'Global.asax.resx' failed. File or assembly name System.Windows.Forms, or one of its dependencies not found" (line 0)
I have tried to insert breakpoints and execute it but surprisingly it didnt even start compiling the code, it showed me with these errors. Whereas when my friend compiled the code, it worked out well with him with positive results. I am unable to decide what is wrong with it. I was wondering whether it is an VS.NET installation error or error with my code. Need a help with that. I am pasting my code below. Thanks
Cheers
Sunil
My aspx file:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="gieesdata.aspx.vb" Inherits="newnetproj.gieesdata" %> <html> <body> <form runat="server"> <asp:datagrid id="draftaddress" runat="server" BorderWidth="0" CellPadding="2" Width="100%" Font-Name="Verdana" Font-Size="Smaller" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="True" HeaderStyle-BackColor="Navy" HeaderStyle-ForeColor="White" AlternatingItemStyle-BackColor="#dddddd"></asp:datagrid> </form>
</BODY> </html>
My aspx.vb file:
Imports System.Data Imports System.Data.OleDb Public Class gieesdata Inherits System.Web.UI.Page Protected WithEvents draftaddress As System.Web.UI.WebControls.DataGrid #Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load BindData() End Sub
Private Sub BindData() Dim myConnString As String = _ "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\docs\addressproject\draftaddress.mdb" Dim myConnection As New OleDbConnection(myConnString) myConnection.Open()
Const strSQL As String = "SELECT ID, Title, Last_Name, First_Name, Region " & _ "FROM contacts ORDER BY ID" Dim myCommand As New OleDbCommand(strSQL, myConnection)
Dim myDA As New OleDbDataAdapter() myDA.SelectCommand = myCommand
Dim myDS As New DataSet() myDA.Fill(myDS)
draftaddress.DataSource = myDS draftaddress.DataBind() End Sub End Class
--------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better
|
|
| |
| |
| Tim Musschoot |
did you create a Web Project ? -----Oorspronkelijk bericht----- Van: Sunil Pati [mailto:Click here to reveal e-mail address] Verzonden: woensdag 31 juli 2002 19:28 Aan: aspngvs Onderwerp: [aspngvs] VS.NET Error Not Resolved Yet.. Pls need help
Hello friends,
I am stuck with this problem since many days. I was trying to compile a simple file in ASP.NET which involves database access (Ms. Access). Whenever i am trying to compile my aspx.vb file it is showing me 3 build errors as
" Resource transformation for file 'Myfile.aspx.resx' failed. File or assembly name System.Windows.Forms, or one of its dependencies not found" (line 0)
" Resource transformation for file 'Global.asax.resx' failed. File or assembly name System.Windows.Forms, or one of its dependencies not found" (line 0)
I have tried to insert breakpoints and execute it but surprisingly it didnt even start compiling the code, it showed me with these errors. Whereas when my friend compiled the code, it worked out well with him with positive results. I am unable to decide what is wrong with it. I was wondering whether it is an VS.NET installation error or error with my code. Need a help with that. I am pasting my code below. Thanks
Cheers
Sunil
My aspx file:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="gieesdata.aspx.vb" Inherits="newnetproj.gieesdata" %> <html> <body> <form runat="server"> <asp:datagrid id="draftaddress" runat="server" BorderWidth="0" CellPadding="2" Width="100%" Font-Name="Verdana" Font-Size="Smaller" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="True" HeaderStyle-BackColor="Navy" HeaderStyle-ForeColor="White" AlternatingItemStyle-BackColor="#dddddd"></asp:datagrid> </form>
</BODY> </html>
My aspx.vb file:
Imports System.Data Imports System.Data.OleDb Public Class gieesdata Inherits System.Web.UI.Page Protected WithEvents draftaddress As System.Web.UI.WebControls! ! .DataGrid #Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load BindData() End Sub
Private Sub Bin! ! dData() Dim myConnString As String = _ "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\docs\addressproject\draftaddress.mdb" Dim myConnection As New OleDbConnection(myConnString) myConnection.Open()
Const strSQL As String = "SELECT ID, Title, Last_Name, First_Name, Region " & _ "FROM contacts ORDER BY ID" Dim myCommand As New OleDbCommand(strSQL, myConnection)
Dim myDA As New OleDbDataAdapter() myDA.SelectCo! ! mmand = myCommand
Dim myDS As New DataSet() myDA.Fill(myDS)
draftaddress.DataSource = myDS draftaddress.DataBind() End Sub End Class
---------------------------------------------------------------------------- -- Do You Yahoo!? Yahoo! Health - Feel better, live better | [aspngvs] member Click here to reveal e-mail address = YOUR ID | http://www.asplists.com/asplists/aspngvs.asp = JOIN/QUIT | http://www.asplists.com/search = SEARCH Archives
|
|
| |
|
| |
| Sunil Pati |
Yes I did create a webproject only. Thanks Sunil Tim Musschoot wrote:did you create a Web Project ?-----Oorspronkelijk bericht----- Van: Sunil Pati [mailto:Click here to reveal e-mail address] Verzonden: woensdag 31 juli 2002 19:28 Aan: aspngvs Onderwerp: [aspngvs] VS.NET Error Not Resolved Yet.. Pls need help
Hello friends,
I am stuck with this problem since many days. I was trying to compile a simple file in ASP.NET which involves database access (Ms. Access). Whenever i am trying to compile my aspx.vb file it is showing me 3 build errors as
" Resource transformation for file 'Myfile.aspx.resx' failed. File or assembly name System.Windows.Forms, or one of its dependencies not found" (line 0)
" Resource transformation for file 'Global.asax.resx' failed. File or assembly name System.Windows.Forms, or one of its dependencies not found" (line 0)
I have tried to insert breakpoints and execute it but surprisingly it didnt even start compiling the code, it showed me with these errors. Whereas when my friend compiled the code, it worked out well with him with positive results. I am unable to decide what is wrong with it. I was wondering whether it is an VS.NET installation error or error with my code. Need a help with that. I am pasting my code below. Thanks
Cheers
Sunil
My aspx file:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="gieesdata.aspx.vb" Inherits="newnetproj.gieesdata" %> <html> <body> <form runat="server"> <asp:datagrid id="draftaddress" runat="server" BorderWidth="0" CellPadding="2" Width="100%" Font-Name="Verdana" Font-Size="Smaller" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="True" HeaderStyle-BackColor="Navy" HeaderStyle-ForeColor="White" AlternatingItemStyle-BackColor="#dddddd"></asp:datagrid> </form>
</BODY> </html>
My aspx.vb file:
Imports System.Data Imports System.Data.OleDb Public Class gieesdata Inherits System.Web.UI.Page Protected WithEvents draftaddress As System.Web.UI.WebControls! ! .DataGrid #Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load BindData() End Sub
Private Sub Bin! ! dData() Dim myConnString As String = _ "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\docs\addressproject\draftaddress.mdb" Dim myConnection As New OleDbConnection(myConnString) myConnection.Open()
Const strSQL As String = "SELECT ID, Title, Last_Name, First_Name, Region " & _ "FROM contacts ORDER BY ID" Dim myCommand As New OleDbCommand(strSQL, myConnection)
Dim myDA As New OleDbDataAdapter() myDA.SelectCo! ! mmand = myCommand
Dim myDS As New DataSet() myDA.Fill(myDS)
draftaddress.DataSource = myDS draftaddress.DataBind() End Sub End Class
--------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better | [aspngvs] member Click here to reveal e-mail address = YOUR ID | http://www.asplists.com/asplists/aspngvs.asp = JOIN/QUIT | http://www.asplists.com/search = SEARCH Archives | [aspngvs] member Click here to reveal e-mail address = YOUR ID | http://www.asplists.com/asplists/aspngvs.asp = JOIN/QUIT | http://www.asplists.com/search = SEARCH Archives
--------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better
|
|
| |
|
| |
| Rob Caron |
Any chance you're using Beta 2 still? Or, was Beta 2 installed on your machine at one time?
Rob Caron=20 robcaron @ microsoft.com=20 Visual Studio .NET Team=20 This posting is provided "AS IS" with no warranties, and confers no rights.=20
-----Original Message----- From: Sunil Pati [mailto:Click here to reveal e-mail address]=20 Sent: Thursday, August 01, 2002 8:03 AM To: aspngvs Subject: [aspngvs] RE: VS.NET Error Not Resolved Yet.. Pls need help
Yes I did create a webproject only.=20 Thanks=20 Sunil=20 Tim Musschoot wrote:=20 did you create a Web Project ? -----Oorspronkelijk bericht----- Van: Sunil Pati [mailto:Click here to reveal e-mail address] Verzonden: woensdag 31 juli 2002 19:28 Aan: aspngvs Onderwerp: [aspngvs] VS.NET Error Not Resolved Yet.. Pls need help
Hello friends,
I am stuck with this problem since many days. I was trying to compile=20 a simple file in ASP.NET which involves database access (Ms. Access).=20 Whenever i am trying to compile my aspx.vb file it is showing me 3 build
errors as
" Resource transformation for file 'Myfile.aspx.resx' failed. File or=20 assembly name System.Windows.Forms, or one of its dependencies not=20 found" (line 0)
" Resource transformation for file 'Global.asax.resx' failed. File or=20 assembly name System.Windows.Forms, or one of its dependencies not=20 found" (line 0)
I have tried to insert breakpoints and execute it but surprisingly it=20 didnt even start compiling the code, it showed me with these errors.=20 Whereas when my friend compiled the code, it worked out well with him with=20 positive results. I am unable to decide what is wrong with it. I was=20 wondering whether it is an VS.NET installation error or error with my code. Need a help with that. I am pasting my code below. Thanks
Cheers
Sunil
My aspx file:
<%@ Page Language=3D"vb" AutoEventWireup=3D"false"=20 Codebehind=3D"gieesdata.aspx.vb" Inherits=3D"newnetproj.gieesdata" %> <html> <body> <form runat=3D"server"> <asp:datagrid id=3D"draftaddress" runat=3D"server" BorderWidth=3D"0"=20 CellPadding=3D"2" Width=3D"100%" Font-Name=3D"Verdana" = Font-Size=3D"Smaller"=20 HeaderStyle-HorizontalAlign=3D"Center" HeaderStyle-Font-Bold=3D"True"=20 HeaderStyle-BackColor=3D"Navy" HeaderStyle-ForeColor=3D"White"=20 AlternatingItemStyle-BackColor=3D"#dddddd"></asp:datagrid> </form> =20
</BODY> </html>
My aspx.vb file:
Imports System.Data Imports System.Data.OleDb Public Class gieesdata Inherits System.Web.UI.Page Protected WithEvents draftaddress As=20 System.Web.UI.WebControls! ! .DataGrid #Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub=20 InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As=20 System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As=20 System.EventArgs) Handles MyBase.Load BindData() End Sub
Private Sub Bin! ! dData() Dim myConnString As String =3D _ "Provider=3DMicrosoft.Jet.OLEDB.4.0; Data=20 Source=3DD:\docs\addressproject\draftaddress.mdb" Dim myConnection As New OleDbConnection(myConnString) myConnection.Open()
Const strSQL As String =3D "SELECT ID, Title, Last_Name,=20 First_Name, Region " & _ "FROM contacts ORDER BY ID" Dim myCommand As New OleDbCommand(strSQL, myConnection)
Dim myDA As New OleDbDataAdapter() myDA.SelectCo! ! mmand =3D myCommand
Dim myDS As New DataSet() myDA.Fill(myDS)
draftaddress.DataSource =3D myDS draftaddress.DataBind() End Sub End Class
Do You Yahoo!? Yahoo! Health - Feel better, live better | [aspngvs] member Click here to reveal e-mail address =3D YOUR ID | http://www.asplists.com/asplists/aspngvs.asp =3D JOIN/QUIT | http://www.asplists.com/search =3D SEARCH Archives=20 | [aspngvs] member Click here to reveal e-mail address =3D YOUR ID | http://www.asplists.com/asplists/aspngvs.asp =3D JOIN/QUIT | http://www.asplists.com/search =3D SEARCH Archives
Do You Yahoo!? Yahoo! Health - Feel better, live better | [aspngvs] member Click here to reveal e-mail address =3D YOUR ID | http://www.asplists.com/asplists/aspngvs.asp =3D JOIN/QUIT | http://www.asplists.com/search =3D SEARCH Archives=20
|
|
| |
|
|
|
|
|