MySql Web Configuration Tool Error in VS 2012 - mysql

When I press the button for MySql Web Configuration in Visual Studio 2012 it immediately shows the following error.
This is in a basically blank web app MVC 4 - nothing added really and yet I can't get this thing to fire up - any ideas?
I

your problem is located in a file called "machine.config", there are 2 files.
1st:
C:\Windows\Microsoft.NET\Framework\ [version_no] \Config
2nd:
C:\Windows\Microsoft.NET\Framework64\ [version_no] \Config
backup each file before making any changes
open each file with notepad
search document for the following sections
<membership>
<profile>
<roleManager>
within these sections, remove everything after MySql.Web and stop before the closing end quote... it should like this when your down ---> MySql.Web"
same and repeat for the next machine.config file
close Visual Studio
reopen your project and try the website configuration tool.
not sure why this works. just know how to fix it.

Related

Cannot start editting my Html file in Visual Studio Code

I create a file with html extension with visual studio code. I can create the file but I cannot edit it. Can you help me solve this issue
Try running Visual Studio Code as an administrator if you are using Windows.
Right Click Visual Studio Code > Run as Administrator, follow the instructions from then on.
You can also edit file permissions entering here:
Right Click File > Properties > Security tab
This should lead you to an User Selection screen, select your user and click Edit, see if the checkmarks for Write and Read are activated, activate them otherwise, click OK and restart Visual Studio Code, try to access the file then.
If you are using Linux, try changing the read and write permissions so that you can make modifications to the file. This is done through chmod. Use Bash (or the terminal emulator you are given for doing this).
Example:
chmod +rw <file_here>
That should be enough.
More description would be better...Don't understand " create a file with html extension". Try to create a .txt file and open it with vscode and see if you can edit it. If can, you can create another .txt file in your PC, change the suffix of the filename(.txt) to (.html) and then try to open it with vscode, check if you can edit it.
html extension with visual studio code it have a lot of problems, so you can create index.html by yourself. Example:
Open VS then press on File then click on new window.
You can save as this window in your project folder.
Don't forgot to save it with .html file type so browser and VS can read it.

SSIS file path changing to C:\windows\system32 depending on how I open the project file

I've been working with SSIS reading different files - from CSVs to XLSXs - with no problems. My paths are relative, so SSIS searches for the files from the project's folder.
Well, today my colleague tried to run a package and he got a curious error message saying that the file could not be found under the "C:\windows\system32" folder. There's no configuration that would point SSIS to that folder and with me and a third colleague it's working well.
After some investigation we discovered that the problem has nothing to do with the user itself, but with how the user opens the project. Since the beginning I've been opening the project by double clicking the ".dtproj" file. My colleague first opens the SSIS development interface then opens the project file from the menu.
Has anyone noticed that behavior? What could be the cause for that?
error message print
Microsoft Visual Studio 2008
Version 9.0.30729.4462 QFE
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: IDE Standard
This happens because the different ways of launching the IDE end up with different current directories for the IDE process. You can test this by creating a package with only a Script Task, with the one line:
MessageBox.Show(Environment.CurrentDirectory);
And then running this project after launching it both ways.
Double-clicking the project or solution file sets the folder containing that file as the current directory. (I assume this is standard Windows process launching behaviour when starting a process based on the file extension association.) SSIS packages then look in the current directory when the path to the configuration file is relative.
We use relative paths to configuration files all the time to simplify deployment, and have to always remember to open the solutions by double-clicking the SLN file.

Visual Studio 2013 Not Opening *.cshtml files

I cannot figure out why Visual Studio is not opening CSHTML files. The error message I get this:
The document cannot be opened. It has been renamed, deleted or moved.
The file exists. I can change the extension to .html and open the file no problem. If I change the extension back to .cshtml with the file still open it lets me modify it. If I close the file and try to open it again I get the above message. Every other file type will open except .cshtml. Any help would be GREATLY appreciated!!
**** UPDATE ****
Figured out that it has something to do with the HTML Editor used by default for .cshtml files. If I right click, open with... and select a different editor, it will open but I lose all intellisense and it doesn't recognize any of the razor syntax. Installing Update 4 for VS 2013 to see if that works.
Just Install Visual Studio 2013 Update 5, this will solve the problem
According to your try, it seems the Application (VS 2013) haven't granted necessary file operation permission on disk (this could be related to IDE files or project files). This could occur by a corrupted operating system.
Solution:
Check Directory permission manually OR Try to reinstall OS and then VS (reinstalling the VS itself doesn't take effect in many cases).
I had installed Xamarin studio and Xamarin for visual studio. Once I uninstalled Xamarin, the problem was solved!
Another thing I tried before removing Xamarin was I right click on .cshtml file and choose "Open with..." and then select "Source Code (Text) Editor". For me in this case i had intellisense.
Hope this helps a friend.

Why is IIS Express returning HTTP 500 errors loading javascript and CSS?

I am trying to develop an ASP.NET MVC5 solution using IIS Express for local debugging. Frequently, Chrome will report HTTP500 errors trying to load certain JS and CSS files (some using the built in bundling and minification feature of MVC, some on their own).
WTH is going on with this and how do I stop it?
Thanks,
Matthew
Turns out this was related to ninject object lifecycles and my EF db context being open twice at the same time. Totally unrelated to IIS.
What helped worked is as follows. I am using Visual Studio 2015.
Close the visual studio solution. In fact I closed the visual studio itself
In the solution folder(the folder which contains the .sln file along with the project folders), you should find a .vs folder. I had deleted that folder.
Restarted the visual studio and loaded the solution.
Things are working fine now.
The reason I guess is, the config folder inside of .vs folder has the applicationhost.config file. That is having some setting issues.
In my case, I got to remove the attribute of debug="true" in web.config compilation node.
From
<compilation debug="true" targetFramework="4.7.2" />
To
<compilation targetFramework="4.7.2" />
Then it works fine.
Old thread but still relevant in VS 2019 and the top result.
For me, I created a .NET CORE WebApp (an API), then deleted it, deleted the files it left behind and recreated a .NET Framework (API) of the same name.
Started it up and spotted it was still using the same port number
https://localhost:44379
but the basic formatting was gone and 500 errors on all the .css and .js files. After editing the .csproj file and changing
<IISUrl>https://localhost:44379/</IISUrl>
to
<IISUrl>https://localhost:44380/</IISUrl>
Changing this reset something IIS Express and the css and .js files loaded and it looked fine.

Adding editFTPnetPRO to SSIS package causes error message

I'm trying to add some secure FTP code to an SSIS package. I've used the EnterpriseDT product successfully on other .NET projects, so I wanted to incorporate it into an SSIS 2008 package I'm working on.
If I create a Script Task (VB), edit the script, choose Project | Add Reference, and select the editFTPnetPRO.dll file, it comes back with this error:
No template information found. See the application log in Event Viewer for more details.
To open Event Viewer, click Start, click Control Panel, double-click Administrative Tools, and then double-click Event Viewer.
The application log doesn't contain any pertinent details.
I have no idea what this is trying to tell me. I've gone down a couple dead ends searching for this error message and following the prescribed fixes, but nothing has fixed it yet. Any idea what might be going wrong?
P.S. - I tried the devenv.exe /installvstemplates fix, which didn't change anything.
Update: Here is the error captured in the SSIS package when you try to run it:
Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'edtFTPnetPRO, Version=6.3.1.20, Culture=neutral, PublicKeyToken=0dce1ad63760d80b' or one of its dependencies. The system cannot find the file specified.
Where is it looking for this file? I tried copying it to the project direcory, the bin folder, and the C:\WINDOWS\Microsoft.NET\Framework\v2.0.nnnn folder, but it still can't find it, and it won't tell me where it's looking.
I'm now having this same problem with a custom C# assembly that I created to use with SSIS. I have added the assembly to the Windows\assembly and C:\WINDOWS\Microsoft.NET\Framework\v2.0.nnnn folders.
Put your DLL into C:\Program Files\Microsoft SQL Server\100\DTS\Binn and try again.
I have encountered this error a few times while attempting to add a reference from the .NET tab of the Add Reference dialog.
The (painfully simple) fix is to use the Browse tab to add the reference.