Can't run mvc 5 project locally in VS13 after system crash? - c#

As the title says I can't run my project in debugging mode locally in vs13 (MVC 5).
I was playing around with an overclock on my stationary comp, which turned out not to be stable (despire stress testing) and my pc bluescreened and rebooted while I was running the project (I've reverted back to a stable OC again). Now I get the same error everytime I run this particular project.
The weird thing is I tried uninstalling vs13 completely (with the force feature) and reinstalling it after a reboot and still this particular project will not run locally at all. The same project works fine on my coworkers comps and on my own laptop, but somehow it refuses to run on my stationary pc and apparently a reinstall hasn't fixed anything?
The error message you can see here
Anyone got any clues or expert advice that could help me without me having to format my entire computer and reinstalling windows?
EDIT: Apparently you can't read the error lines properly so here is a snippet of most of it:
" Filen eller assemblyen 'Microsoft.Owin.Security' eller en af dens afhængigheder kunne ikke indlæses. Forkert parameter. (Undtagelse fra HRESULT: 0x80070057 (E_INVALIDARG))
Beskrivelse: Der opstod en undtagelse, der ikke blev behandlet, under udførelse af den aktuelle webanmodning. Se staksporingen for at få flere oplysninger om fejlen, og hvor den kom fra i koden.
Detaljer om undtagelse: System.IO.FileLoadException: Filen eller assemblyen 'Microsoft.Owin.Security' eller en af dens afhængigheder kunne ikke indlæses. Forkert parameter. (Undtagelse fra HRESULT: 0x80070057 (E_INVALIDARG))
Kildefejl:
Der blev oprettet en undtagelse, der ikke blev behandlet, under kørsel af den aktuelle webanmodning. Du kan finde oplysninger om undtagelsens oprindelse og placering ved hjælp af nedenstående staksporing af undtagelser.
Belastningssporing af assembly: Følgende oplysninger kan være nyttige, når det skal afgøres, hvorfor assemblyen 'Microsoft.Owin.Security' ikke kunne indlæses.
=== Tilstandsoplysninger om forudbinding ===
LOG: DisplayName = Microsoft.Owin.Security
(Partial)
WRN: Der blev leveret oplysninger om en delvis binding for en assembly:
WRN: Assemblynavn: Microsoft.Owin.Security | Domæne-id: 2
WRN: En delvis binding opstår, når der kun opgives en del af assemblyens viste navn.
WRN: Dette kan medføre, at binderen indlæser en forkert assembly.
WRN: Det anbefales at opgive fuldt specificeret tekst-id for assemblyen,
WRN: bestående af det simple navn, versionen, kulturen og token til offentlig nøgle.
WRN: Du kan få flere oplysninger om og almindelige løsninger til dette problem i hvidbogen http://go.microsoft.com/fwlink/?LinkId=109270.
LOG: Appbase = file:///C:/Users/Giuseppe/Desktop/ASP.NET/MEV3/MEV3/
LOG: Første PrivatePath = C:\Users\Giuseppe\Desktop\ASP.NET\MEV3\MEV3\bin
Kalder assembly: (Unknown).
===
LOG: Denne binding starter i indlæsningskonteksten default.
LOG: Bruger programkonfigurationsfilen: C:\Users\Giuseppe\Desktop\ASP.NET\MEV3\MEV3\web.config
LOG: Bruger værtskonfigurationsfilen: C:\Users\Giuseppe\Documents\IISExpress\config\aspnet.config
LOG: Bruger maskinkonfigurationsfil fra C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Politikken anvendes ikke på referencen på nuværende tidspunkt (privat, brugerdefineret, delvis eller placeringsbaseret assemblybinding).
LOG: Forsøger at hente nye URL-adresser file:///C:/Users/Giuseppe/AppData/Local/Temp/Temporary ASP.NET Files/root/6691a5d9/25f50715/Microsoft.Owin.Security.DLL.
LOG: Forsøger at hente nye URL-adresser file:///C:/Users/Giuseppe/AppData/Local/Temp/Temporary ASP.NET Files/root/6691a5d9/25f50715/Microsoft.Owin.Security/Microsoft.Owin.Security.DLL.
LOG: Forsøger at hente nye URL-adresser file:///C:/Users/Giuseppe/Desktop/ASP.NET/MEV3/MEV3/bin/Microsoft.Owin.Security.DLL.
LOG: Bruger programkonfigurationsfilen: C:\Users\Giuseppe\Desktop\ASP.NET\MEV3\MEV3\web.config
LOG: Bruger værtskonfigurationsfilen: C:\Users\Giuseppe\Documents\IISExpress\config\aspnet.config
LOG: Bruger maskinkonfigurationsfil fra C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Postpolitikreference: Microsoft.Owin.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
ERR: Konfigurationen af assemblyen mislykkedes (hr = 0x80070057). Testen afsluttedes.
"

Related

Mysql with version higher than the project (C# WPF)

I picked up an old project to use my kinnect, but I need MySql for this application, so I tried to insert MySql.dll into this project, but I am getting this error.
Gravidade Código Descrição Projeto Arquivo Linha Estado de Supressão
Aviso Não foi possível resolver a referência primária "MySql.Data, Version=8.0.25.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" porque ela tem uma dependência indireta no assembly de estrutura "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", que não pôde ser resolvida na estrutura de destino atual. ".NETFramework,Version=v4.0,Profile=Client". Para resolver o problema, remova a referência "MySql.Data, Version=8.0.25.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" ou redirecione o aplicativo para uma versão de estrutura que contenha "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". ShapeGame
Gravidade Código Descrição Projeto Arquivo Linha Estado de Supressão
Aviso A referência primária "MySql.Data, Version=8.0.25.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" não pôde ser resolvida porque foi compilada com base na estrutura ".NETFramework,Version=v4.5.2". Esta versão é superior à da estrutura de destino ".NETFramework,Version=v4.0,Profile=Client". ShapeGame
I can use MySql in this version of NET? I believe if I change other libraries does not work
You appear to be targeting the .NET 4.0 Client Profile. This is very old (over ten years), so for compatibility you'll also need to use a very old version of MySql.Data.
It looks like MySql.Data 6.9.12 should be compatible with .NET 4.0, although it still may not work with the Client Profile. (The Client Profile is targeted at desktop client applications, but MySQL is typically used by server-side applications.)
If it doesn't work, try an even older version of MySql.Data.
If you want to use the latest MySql.Data, you will also need to use a much more recent version of the .NET Framework.

Can't deploy to FTP with port 22 in Visual Studio

I am trying to publish a project in Visual Studio 2019, pointing to port 22 (since I will use a linux environment later)
I followed the steps of:
https://es.stackoverflow.com/questions/239559/error-al-compilar-proyecto-aspx-en-visual-studio and
https://www.a2hosting.com/kb/a2-hosting-products/windows-hosting/publish-a-site-from-visual-studio-using-ftps
So to summarize:
start in administrator mode
enable the FTP and IIS options
I put in front of my URL both ftps and 990
I ping the IP and it is active and without problems
but I still get the same error that I can't connect to the server
Attached the error log
11/12/2020 13:36:22
System.AggregateException: Se han producido uno o varios errores. ---> System.Exception: Error de compilación. Compruebe la ventana de salida para obtener más detalles.
--- Fin del seguimiento de la pila de la excepción interna ---
en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
en System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
en Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.<PublishAsync>b__3()
en System.Threading.Tasks.Task`1.InnerInvoke()
en System.Threading.Tasks.Task.Execute()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__213.MoveNext()
---> (Nº de excepción interna 0) System.Exception: Error de compilación. Compruebe la ventana de salida para obtener más detalles.<---
System.Exception: Error de compilación. Compruebe la ventana de salida para obtener más detalles.
Port 22 is SFTP, not FTP(S). The FTPS and SFTP are two completely different protocols. You cannot use the FTP protocol to connect to an SFTP server.
I believe that Visual Studio does not support the SFTP.
See Visual Studio Publish Website Using SCP/SFTP

Offline SOAP Service

I´ve got a question, is it possibile to build up a SOAP-Client with Service-Reference and an WSDL-File without the Service itself?
The case is, that I have a folder full of wsdl´s and xsd´s but the Service is hosted in a private network, so I only can call it in production but need to programm it without the service until release.
Thank you in advance.
[EDIT]
After the "Add Service Reference" way of Visual Studio didn´t work, I was using SvcUtil.exe /language:cs "wsdl-file"
and it hit the following error (Note: the error is in german)
Fehler: wsdl:portType kann nicht importiert werden.
Detail: Beim Ausführen einer WSDL-Importerweiterung wurde eine Ausnahme ausgelöst: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Fehler: Das Schema mit dem Zielnamespace "urn:osip-aes-v2" wurde nicht gefunden.
XPath zur Fehlerquelle: //wsdl:definitions[#targetNamespace='urn:osip-aes-v2']/wsdl:portType[#name='AntragserfassungsstellenWebservice']
Fehler: wsdl:binding kann nicht importiert werden.
Detail: Beim Importieren von wsdl:portType, der Grundlage für wsdl:binding, ist ein Fehler aufgetreten.
XPath zu wsdl:portType: //wsdl:definitions[#targetNamespace='urn:osip-aes-v2']/wsdl:portType[#name='AntragserfassungsstellenWebservice']
XPath zur Fehlerquelle: //wsdl:definitions[#targetNamespace='urn:osip-aes-v2']/wsdl:binding[#name='AntragserfassungsstellenWebserviceSoapBinding']
Fehler: wsdl:port kann nicht importiert werden.
Detail: Beim Importieren von wsdl:binding, der Grundlage für wsdl:port, ist ein Fehler aufgetreten.
XPath zu wsdl:binding: //wsdl:definitions[#targetNamespace='urn:osip-aes-v2']/wsdl:binding[#name='AntragserfassungsstellenWebserviceSoapBinding']
XPath zur Fehlerquelle: //wsdl:definitions[#targetNamespace='urn:osip-aes-v2']/wsdl:service[#name='AntragserfassungsstellenWebservice_v2_0']/wsdl:port[#name='FachbehoerdenWS']

System.IO.FileNotFoundException when trying to use/load Microsoft.Practices.EnterpriseLibrary.Common not found even when is included in references

I have a project that references the Microsoft.Practices.EnterpriseLibrary.Common assembly like this:
But when I try to run the project I amd getting and error on this line
The error that I am getting is:
Se produjo una excepción de tipo 'System.IO.FileNotFoundException' en
Sitefinity.DAO.dll pero no se controló en el código del usuario
Información adicional: No se puede cargar el archivo o ensamblado
'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0,
Culture=neutral, PublicKeyToken=null' ni una de sus dependencias. El
sistema no puede encontrar el archivo especificado.
What have I tried:
I have removed and added the reference again
I have checked that the Microsoft.Practices.EnterpriseLibrary.Common.dll is in the same folder as the Sitefinity.DAO.dll
How can I solve this ?

Deserialization exception in AppDomain

I have a problem with deserialization of an object:
byte[] cardData;
// Serialize
var mySerializer1 = new BinaryFormatter();
using (var ms = new MemoryStream())
{
mySerializer1.Serialize(ms, new SuperClass());
cardData = ms.ToArray();
}
// Deserialize
var mySerializer2 = new BinaryFormatter();
using (var ms = new MemoryStream(cardData))
mySerializer2.Deserialize(ms); // throws an exception
In the same file:
[Serializable]
public class SuperClass
{ }
Exception:
System.Runtime.Serialization.SerializationException: Unable to find assembly "SKM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null".
в System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
в System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
в System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
в System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
в System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
в System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
в System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
в System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
в System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
в SKM.InputFiles.InputFileMsr.GetRecords() в c:\Stas\Projects\CardMaster\Current\MACS\Application\BankProcessors\SKM\InputFiles\InputFileMsr.cs:строка 204
The SKM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null is the assembly in which I run all this code. Why does CLR cannot find it?
I tested this code in a separate application and it all works fine. But in my application throws an exception. Maybe this is because of AppDomain in which i load this dll? How to fix it?
UPDATE 2: Add Fusion logs.
SKM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null:
*** Assembly Binder Log Entry (28.05.2015 # 17:05:51) ***
The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = SKM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
*** Assembly Binder Log Entry (28.05.2015 # 17:05:51) ***
The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = SKM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
SKM:
*** Assembly Binder Log Entry (28.05.2015 # 17:05:51) ***
The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = SKM
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: SKM | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM.DLL.
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM/SKM.DLL.
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM.EXE.
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM/SKM.EXE.
LOG: All probing URLs attempted and failed.
*** Assembly Binder Log Entry (28.05.2015 # 17:05:51) ***
The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = SKM
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: SKM | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Stas\Projects\CardMaster\Current\MACS\Application\Application.DataProcessing\bin\Debug\Application.DataProcessing.vshost.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM.DLL.
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM/SKM.DLL.
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM.EXE.
LOG: Attempting download of new URL file:///C:/Stas/Projects/CardMaster/Current/MACS/Application/Application.DataProcessing/bin/Debug/SKM/SKM.EXE.
LOG: All probing URLs attempted and failed.

Categories

Resources