I've been using Microsoft Visual C# 2008 Express Edition for the past two years. I made some very slight changes to a single project last night and now want to open the project and make a couple of changes. Out of the blue I'm getting the following message when I try to load the project:
Unable to read the project file 'myfile.csproj' Could not load file or assembly 'sorttbls.nlp' or one of its dependencies. Incorrect function. (Exception from HRESULT: 0x80070001)
The above message stops me from accessing any part of the project. (I am able to load the source code in Notepad so at least I don't have to worry about losing the code altogether). This error does not seem to be associated to any recent changes to my code as I run into this error when open up a simple console project or try to create a new project. What happened? (Did my computer get infected with a virus?) How do I get past this?
Thanks!
May be you can use following source
sorttbls.nlp Problem
According to which you can uninstall and install .Net 2 or 3.5 and perform Reboot
If you have ATI card above link might solve your problem
Related
I have been working on a .Net Maui app to replace a Python app I built for my company's payroll team. Several previous iterations of this app have allowed me to publish via sideloading. However, I have been unable to publish a new version for a couple of days now.
If I try to publish via sideloading, I get the following error:
MSB4057 The target "_GenerateAppxPackage" does not exist in the
project.
--this error claims to be stemming from line 1 of my .csproj file.
I attempted another route to publish it as an executable file following the answer provided in this stack overflow answer, and received the following error:
C:\User\MyFirstName : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
As well as another error that says looking for the manifest existed with a code 31.
Further up, before that error hits, there is a line that says:
Skipping target "MauiGeneratePackageAppxManifest" because all output
files are up-to-date with respect to input files.
I am running VS 17.4.0 Preview 3.0 on Windows 11. I have tried to roll back my code through git (up to 3 versions back), as well as copying local files into a new project, and I get these same errors every time.
It may also be worth mentioning that my Windows Defender and Windows Malicious Software Removal Tool both updated between when I was last able to publish successfully and when the problem arose. I had also updated Visual Studio, but tried to roll that back and publish, and it received the same errors.
Is there anyone who can help me figure out what is going on here, or point me in the right direction? I can provide code samples if need be, though on a limited basis because this is a private project.
For this, you can refer to document : Publish a .NET MAUI app for Android/IOS/Windows.
Above documents explain the steps to publish android, ios and windows app, respectively.
You can follow the steps step by step. Under normal circumstances, there will be no problem.
I have several ASP.Net web form apps in a Visual Studio project. In one of the apps, I was working to add a test page for some additional features we wanted to test before adding to our main pages. Afterwards however, I was trying to publish to our server, but keep getting a message box saying: "The publish has failed due to one or more errors.".
Build succeeded Image
Publish Failed Image
I checked the errors, but none are given. The build was successful and other then a few un-used references, there are no other indicators on what the issue exactly is. We have a few other projects that normally allow for publishing without issues. So I don't believe the issue is from Visual Studio, but I am not completely sure. I'm using Visual Studio 2015 version 14.0.24720.00
Figured it out!
There is a Thumbs.db file that was auto-generated in the images folder. I decided to go through the output window line by line to see if I could identify where the publish was failing at. I noticed a line that said the /Images/Thumbs.db file could not be published and that access was denied.
Doing some more online investigating, I found some other questions along the same line as the premise for this one. Specifically the question here was most helpful. Tammy Spencer's (#user:973679) answer to try and delete the file was what made the publish succeed. So thank you Tammy.
In addition, the Thumbs.db file wouldn't let me delete it at first. But after doing some more searching, I found this YouTube video that made the file deletable.
We have a CI build and a nightly build which used to work perfectly but all of a sudden it started failing. I have been analyzing the log to see what the issue is but the log keeps complaining about random files already existing. The only common thing about these files is they are .resx files. I get this message:
CoreResGen:
2017-01-29T05:01:39.1421685Z Processing resource file "Resources\SomeRandFile.resx" into "obj\Release\Xxx.Model.Resources.SomeRandomResources.resources".
'##[error]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(550,5): Error MSB4018: The "SqlBuildTask" task failed unexpectedly.
Everything used to work and then one day it just stopped. I have spent a few days looking for this error and here are what I have tried so far:
Delete the Windows\Temp folder
Delete the AppData\Local\Temp folder
Turn the Clean flag on in the Repository tab.
and nothing is working.
Really appreciate if anyone has come across this and how you resolved it.
Just a note: The exact same code works locally on my dev machine. But fails on the build server.
I built an older changeset which was successfully built a few weeks ago to see if that will fail as well. I wanted to make sure it is not related to a checkin. As I expected, the build with that changeset failed with the same error. Ok good so at least we know it is not related to a checkin.
Then I created another build and kept modifying it to build a different a random project from my solution. My solution has around 50 projects so I started picking projects at random and built them. After a few builds the project which failed with the exact same error was my database project. Another small step towards the solution. Ok good we are getting somewhere.
I then installed the latest version of SQL Server Data Tools and tried rebuilding the project and it failed with the same error. Then, I installed Update 3 of VS 2015. Retried, failed again with the same error.
I found the ...\UserAccountUsedByTfsBuild\AppData\Local\Temp and decided to delete everything from it once again. Gave the build another try, failed with a different error:
Error CS2001: Source file 'C:\Users\UserAccountUsedByTfsBuild\AppData\Local\Temp.NETFramework,Version=v4.0.SqlClrAttributes.cs' could not be found.
OK great! Different error. I just went into another user's temp folder and copied the following C# files:
.NETFramework,Version=v4.0.SqlClrAttributes
.NETFramework,Version=v4.5.2.AssemblyAttributes
.NETFramework,Version=v4.5.AssemblyAttributes
I ran the build again and YESSS IT PASSED!!
Then I ran the build for the whole solution and it passed too.
CONCLUSION / SUMMARY
Install the latest SQL Server Data Tools
Install the updates for VS 2015
Delete the temp file for the account used by TFS build (DO NOT delete the files starting with .NETFramework...)
I have a problem that when I move the release folder of the application to the destination server and run the application it says "Could not load file or assembly or one of its dependencies".
I think I know where it comes from, but what I dont know is how to fix it.
In my program I use 4 external dlls AntiXSSLibrary, HtmlSanitizationLibrary, MySql.Data and MySql.Data.Entity. When I "add reference" in visual c# 2010 express and build the solution I can see in the bin/release folder only 2 dlls - AntiXSSLibrary and HtmlSanitizationLibrary(and their xml). The MySQL dlls dont appears there - one of them is the dll that shown on the exception error message - and I dont know why it doesnt copy them to there too. BTW if I copy them myself it doesnt help..
On my computer - where the program is been build - it runs ok.
Thanks for any help.
EDIT
Another thing that caught my eye is on the last line of the stack "at ... Program.Main... IN C:\Users\AAA\Documents\Visual Studio 2010.....\Program.cs line 12"
WHY is it trying to access my build location + cs file where I'm it in my prod server and running the exe from different location..? you can see in the picture the hole thing:
The AntiXSSLibrary and HtmlSanitizationLibrary were build as .net 2.0 and the mysql was 4.0. Since I dont have the AntiXSSLibrary and HtmlSanitizationLibrary in 4.0 I've putted the mysql 2.0 build. That fixed the problem.
I'm attempting to load an icon based on a selected file:
Icon iconForFile = System.Drawing.Icon.ExtractAssociatedIcon(filename);
When I run this code locally through VS, everything works fine. However, after I deploy/install the application that contains this code, I get an error message:
"[My Program] - Unable to locate Component:
This application has failed to start because libapr_tsvn.dll was not found. Re-installing the application may fix this problem."
Strangely enough, once I click OK, my program continues to run as expected, and the Icon object is set/displays correctly. Searching around shows that this may be a dll from Tortoise SVN, which I use for version control. Any thoughts?
I get the feeling that this has nothing at all to do with extracting icons - your project has the libapr_tsvn.dll file referenced, and this reference needs to be removed.
Turns out it was a problem with Tortoise SVN. I updated to the latest version a few days ago, didn't restart, and continued working.
My application allows the user to drag-and-drop files into a listview. It appears that a hook for SVN runs when a drap-and-drop action occurs; since Tortoise wasn't properly installed, this hook failed and gave me the error message. Proving once again, always restart...