Archiv verlassen und diese Seite im Standarddesign anzeigen : [VB.NET] Problem mit dem Kompilieren
hey
ich habe ein großes problem mit meinem Visual studio 2010 ultimate
wenn ich ein projekt mit dem .net framework 2.0 kompilieren will kommen immer einige Fehlermeldungen und Warnungen
Fehler:
http://img341.imageshack.us/img341/592/vb10.png
Warnungen:
http://img293.imageshack.us/img293/9984/unbenanntygm.png
meine kompilierungs einstellungen:
http://img251.imageshack.us/img251/5750/hhhho.png
ich habe probiert es mit framework 4.0 zu kompilieren und da funzt es einwandfrei
nur haben die meisten noch kein 4.0 -.-
gibt es vll eine möglichkeit das framework wegzulassen?
kann mir jemand helfen?!
Th3_Cr4xX
15.07.2010, 12:57
Stell mal den Ziel-CPU auf Any CPU um
warnungen sind jetzt weg, fehler sind immernoch die gleichen
http://img807.imageshack.us/img807/7945/hhhh.png
Schau dir Fehler #1 an.
Darin steht ,dass System.Drawing nicht vorhanden ist.
Und wenn es in .net 4.0 geht liegt es wohl daran ,dass der Namespace System.Drawing in 2.0 noch nicht vorhanden ist (oder eine benutzte Methode/Klasse).
//Edit:
Zeile 126 ist der Fehler (sry ich bin davon ausgegangen ,dass du Fehlermeldungen lesen kannst ,was jeder Programmierer (sogar .net) können sollte).
PS: Ich bilde mir ein ,dass System.Drawing bei einem Windows-Forms Projekt verwendet werden und somit sollte es eigentlich auf 2.0 verfügbar sein.
Aber probier es einfach ;)
Th3_Cr4xX
15.07.2010, 13:19
Man kann bei deinem Screenshot nur einen Teil es Fehlers sehen
Setzt mal die "Fehlerzeile(n)" in ne Try Catch box und gib die Fehlermeldung
ja ich bin bei visual basic neu....
wenn ich auf den ersten fehler doppelklicke dann komm ich in die resources.resx
da steht nur
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapF ormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>ystSem.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="So_primitiv_ist_Gabber" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\So primitiv ist Gabber.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="Video call snapshot 56" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Video call snapshot 56.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
zeile 126 ist rot
wo ist hier bitte ein fehler?
Ich schätze mal:
4.0.0.0 ;)
Th3_Cr4xX
15.07.2010, 23:01
Wie gesagt: Packe die Fehlerzeilen in eine Try Catch box.
Try
Fehlerzeile
Catch ex As exception
msgbox(ex.tostring)
zeile 126 ist geklärt
ok ich hab jetzt nurmehr diesen einen fehler 3 mal
http://img19.imageshack.us/img19/2136/unbenanntypt.png
Th3_Cr4xX
15.07.2010, 23:49
Die Fehler sagen doch schon alles. Den Pfad gibt es nicht. Das heißt du solltest die fehlenden Ordner erstellen oder in der Entwicklungsumgebung einen anderen Pfad auswählen
den pfad gibt es ja nur die datei nicht
hab schon am ganzen PC danach gesucht, diese datei existiert nicht
Th3_Cr4xX
16.07.2010, 00:27
Nimm einfach deine Fehlerzeile und stelle/setze sie anders um (VB.NET bietet für fast alles verschiedene Möglichkeiten.
Ohne Code kann ich nicht helfen
ich hab ja keine fehlerzeile mehr, mir fehlt nur diese eine resgen.read.1.tlog, resgen.read.9.tlog und resgen.write1.tlog
Powered by vBulletin® Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.