Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

DLL could not be found

$
0
0

All of the sudden, when I first load my ASP.NET/C# project in Visual Studio 2013 and rebuild the solution, I get errors that it couldn't find DLLs, PDBs, and XML files in the bin\debug folders of associated class library projects.  I can resolve the problem by removing the references to those projects, re-adding them, and then building them individually and THNE doing a solution rebuild -- and it works.

Still.. this stinks and I don't want to have to do it every time I load the project.  Any idea what's going on and how to truly fix it?

Thanks for any help. 

 

visual studio express 2012 for web

$
0
0

HI,

I had register visual studio express 2012 for web.. I needed to know how much they have been charged for this in Indian rupees. please help.. Thanks in advance

VB code is no longer colour coded and group commenting of code adds instead of adding '

$
0
0

I'm using Microsoft Visual Studio Professional 2013.  I am editing .aspx pages with visual basic code.  For some reason, I can't understand, Visual Studio no longer colour codes or prompts for code suggestions while I'm typing during development.

When I tried to bulk comment a section of code, normally it (correctly) comments the selected code out by adding a ' at the beginning of each line.  Now, instead, it adds <%-- at the beginning of the selected code and a --%> at the end. 

It seems to believe I'm coding in a different language, maybe?

Anyone have an idea how I can switch it back?

Thanks for any help!

Jerry

Looking for mtxmlmcr.dll for Magtek check scanner

$
0
0

I am attempting to use a demo project for a magtek imagesafe scanner (USB) it is looking for a reference to mtxmlmcr.dll and can't find it. I have searched my machine and can't find it either.

 My machine is windows 7 and using visual studio 2010. I want to get the sample program to work so I can see what I need to do to  interface with it, as I have never written a program that connects to external hardware before.

Thanks in advance Jim 

JavaScript Intellisense for require.js

$
0
0
Can we get info on how the VS 2013 Update 3 language service decides what scripts to load when they are referenced by require.js. I see it working when you are calling the global require function (the output window shows it loading the script with the message "... referenced by script loader call... " and it has accurate intellisense), but it doesn't with the define function. I also tried the CommonJS-style but that uses a local require function call and the language service didn't seem to find those references (nothing in the output window and no accurate intellisense). It's nice to have with the global require, but i'm using define way more often than require so it's of little use to me... can it work when you are defining a module as well, or is it limited to global require?

Dave

VS 2008 Vb.net CreateObject("Outlook.Application") and outlook 2013 (office 365)

$
0
0

Hello,

I have a VB project on my laptop that reads through my emails looking for attachments.  If it finds a particular attachment (by name) I perform some processing. 

Last week I had outlook 2003, this week we just upgraded to Office 365 and Outlook 2013. 

(Outlook 2003 at this moment still resides on my laptop.)

When I process my code, as I step through it I can see that it still is opening Outlook (which version I don't know, I suspect 2003) for I don't see it picking up new mail with attachments.

So I guess my question would be, what modifications do I need to make have the code open Outlook 2013?

Below is some of the existing code:

 Dim olApp As Outlook.Application
        olApp = CreateObject("Outlook.Application")
        Dim olNs As Outlook.NameSpace
        olNs = olApp.GetNamespace("MAPI")
        olNs.Logon()
        Dim oOutlook As Outlook.Application
        Dim oNs As Outlook.NameSpace
        Dim oFldr As Outlook.MAPIFolder
        Dim oMessage As Object
        Dim sPathName As String
        Dim oAttachment As Outlook.Attachment
        '  Dim olFolderInbox
        Dim strFile As String
        Dim NewLine As String
        Dim SourceFile As String
        Dim iCtr As Integer
        Dim strSite As String = ""
        Dim AbitrolOriginal As String = ""
        Dim iAttachCnt As Integer
        Dim LimitLoop As Integer
        Dim FileNumber As Integer
        Dim NameDate As String
        NameDate = Format(Now, "mmddyy_hhmmsss")
        Const olFolderInbox = 6
        FileNumber = 1
        On Error GoTo errHandler
        LimitLoop = 1
        Me.Cursor = System.Windows.Forms.Cursors.WaitCursor
        Refresh()
        sPathName = PathName
        oOutlook = New Outlook.Application
        oNs = oOutlook.GetNamespace("MAPI")
        oFldr = oNs.GetDefaultFolder(olFolderInbox)
        For Each oMessage In oFldr.Items
            LimitLoop = LimitLoop + 1    'set limit 
            With oMessage.Attachments
                If LimitLoop > 20 Then   ' check random limit amount currently 20 emails 
                    Exit For
                End If
                iAttachCnt = .Count
                If iAttachCnt > 0 Then
                    For iCtr = 1 To iAttachCnt
                        If InStr(1, (.Item(iCtr).FileName), ".CSV") Then
                            sPathName = "c:\Efile_TempStorage\"
                            .Item(iCtr).SaveAsFile(sPathName _
                             & (FileNumber & .Item(iCtr).FileName))
                            FileNumber = FileNumber + 1
                            Me.lstFiles.Items.Add(" ")
                        End If
etc

character count

$
0
0

dim letters as string = "ertyuiop"

I know how to count the characters but I would like to display their numeric position starting with 1 like this ....

e = 1

r = 2

t = 3

and so on........

your help is appreciated.

Can I get the msbuild command line for a build performed in visual studio 2013

$
0
0

We are using visual studio to build a solution file.  We are not using TFS Team Build so I have to build this using the msbuild command line.  Is there a way for me to dump the msbuild command line from the VS build.  From what I read it did not seem that msbuild is actually performing the build in Visual studio, but the article was somewhat unclear.

1) Does VS use msbuild under the covers to run the build?

2) If so, can I dump the command line somewhere to harvest fro my external CI build?

3) If not, can I build it using msbuild and get the same results as a VS build?

I have VS 2013 installed on my build server so if there is another way to invoke it then what is the best means for building a solution outside of VS?

Thanks in advance


NETAPI32.dll is either not designed to run on Windows or it contains an error.

$
0
0

I have an application that was created, by someone else,  in VS 2008.  It uses several add-ins.  In order to create an installer, usnig Nullsoft (NSIS), I used DependancyWalker to locate all the dependancies.  After I created the installer, I tried to run the app and received the followig error:

"NETAPI32.dll is eiher not designed to run on Windows or it contains an error. "  This is one of the files that DependancyWalker identified as a dependancy and I included in the installer.  

What is the cause of this error?

Visual Studio Express 2013 freezes when opening project properties

$
0
0

Main Problem

When I try to access the properties of a project in Visual Studio Express 2013 for Windows Desktop throughProject -> ProjectName Properties, Visual Studio freezes completely without an error and I must end it through the Windows Task Manager.

I ran Visual Studio with /safemode enabled. This did provide some information by saying that"The 'Visual Studio Component Model Host Package' package did not load correctly."

It also produced a log file with some errors and warnings. Errors and warning entries in the log can be searched for with<type>Error</type> and <type>Warning</type> respectively. Additionally, opening the file in Internet Explorer seems to apply some styles to the file and makes it more readable.

Errors Only Log

Full Log

The errors in the log seem to center around this Visual Studio Component Model Host Package. I tried searching for errors related to that, but did not find anything I thought was applicable to my situation.

The dll Microsoft.VisualStudio.ComponentModelHost.Implementation.dll is present inC:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\ on my system.

The dll Microsoft.Data.Entity.Design.DataSourceWizardExtension.dll is indeed missing fromC:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\DataDesign on my system, but I do not know where to get it.

Extra Info

I am using version 12.0.30723.00 Update 3 of Visual Studio and I am running Windows 7 Professional 64-bit 6.1 build 7601.

I have tried re-installing Visual Studio in order to to clear out any bad settings, but that did not seem to work. It seems Visual Studio keeps settings from previous installations.

I tried running Visual Studio with /resetskipkgs and /resetsettings, and neither of those worked.

Trying to open project properties in safe mode still froze Visual Studio.


Using VS2008 remote tools standalone

$
0
0
Is it possible to use the remote tools without having visual studio or platform builder installed? If so, how would one do this? Thanks.

concatenate multiple lines into single line

$
0
0

use vb,vbscript or even dos to convert the ff:

1abc

2def

3wxyz

1def

2ghi

3abcd

To the ff:

1abc2def3 wxyz

1def2ghi3 abcd

Thanks.

Issues Debugging - ".NETFramework,Version=v4.5.AssemblyAttributes.cs"

$
0
0

I recently installed Visual Studio 2013 Express and immediately ran into issues after trying to debug a simple "Hello World" console app.

I was given the follow Warning - 

Warning1 Could not write lines to file "C:\Users\NAME\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs". Access to the path 'C:\Users\NAME\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs' is denied.C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets28275 ConsoleApplication1

In addition I also have the following Error - 

Error2 Source file 'C:\Users\NAME\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs' could not be foundc:\users\NAME\documents\visual studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\CSCConsoleApplication1

I cannot find the .NETFramework,Version=v4.5.AssemblyAttributes.cs file and am completely clueless as to what I need to do.

Some help with this would be really appreciated. If there are any solutions I'd appreciate if they're described thoroughly as I'm a bit new to mucking around with Visual Studio 2013. If there's any other information I can give please ask.

Thanks.

Problem with saving to text file. Please help. --- Beginner C#

$
0
0

Hi!

I've got an issue with my StreamWriter method when saving to a text file.

I'm making a simple registration console application and everything works as intended except from one thing.

when i add the first character (it's supposed to be a game of thrones character register) there's no issues the output shows like this:

Name:Surname:House:Gender:

"Jon" "Snow" "Stark""male"

But, when i want to add a second character the output turns out like this:

Name:Surname:House:Gender:

"Jon" "Snow" "Stark""male"
"Jon" "Snow" "Stark""male"
   "Jon" "Snow" "Stark""male"
"Eddard"Stark""Stark""male"

I can't figure out why the first character get's added to the list 2 additional times, aswell as why the third one isn't in line with the rest. 

Here's the related code *Some words are in swedish*:

My save to file method:

public static void SaveToFile()
        {

            StreamWriter utfil = new StreamWriter("GoTreg.txt", true);
            for (int i = 0; i < infos.Length; i++)
            {
                kInfo info = infos[i];

                utfil.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}",
                    info.namn, info.efternamn, info.kön, info.hus, info.status);
                
            }
            utfil.Close();

}

My add character method:


                                Console.Clear();
                                //En karaktär läggs till
                                kInfo info = new kInfo();

                                Console.WriteLine("Lägg till en karaktär.");
                                Console.Write("Namn: ");
                                info.namn = Console.ReadLine().ToUpper();


                                Console.Write("Efternamn: ");
                                info.efternamn = Console.ReadLine().ToUpper();
                                string kön = "";
                                while (!((kön == "Man" || (kön == "Kvinna"))))
                                {
                                    Console.Write("Kön: (Man/Kvinna)");

                                    info.kön = Console.ReadLine().ToUpper();
                                    break;
                                }
                                Console.Write("Hus: ");
                                info.hus = Console.ReadLine().ToUpper();
                                string status = "";
                                while (!((status == "Död" || (status == "Lever"))))
                                {
                                    Console.Write("Status: (Död/Lever)");

                                    info.status = Console.ReadLine().ToUpper();
                                    break;
                                }
                                //anropa metod för att lägga in posten i vektorn infos
                                kInfo character = info;
                                infos = expandArray(infos, character);

                                SaveToFile();

I hope some can see what i fail to discover, Thank in advance! :)

I can't install Microsoft Visual Studio 2008

$
0
0

Okey. Then i install the install the VS2008 i getting a error: 

A compatible version of Visual Studio 2008 was not detected on the system. This update is designed for only the Microsoft Visual Studio 2008 (ENU) product family, and is not compatible with any Express editions.


I have a Win7 PC 

I will gladly have you to go on Teamviewer so u can help me out!
Thanks alot! :) 

Convert VS 2003 solution-project files to VS 2008 version?

$
0
0

Hello is there and/or what's the best way to convert an existing VS 2003 source files (VB) to VS 2008 version in aiming to have a compiled .EXE network executable file?

Thanks in advance.

Windows Form Application: Locating and using a Resource Folder for Created Files

$
0
0
I'm creating an app using Visual Basic.  Part of this app creates a text file based on certain parameters that the user selects.  This text file needs to be saved in a special folder that the app knows about and can access to perform other tasks.  I've looked up a few guides on this, but they talk about code to locate a resources folder that doesn't quite do what I need.  It's impossible to have these files made before-hand.  They have to be made by the user at runtime and then used by the program.  Is there a special method or function that I can use to locate some kind of "AppData" folder for my program so that I can save/access all the files there?

Lotus Notes Application in Visual Studio

$
0
0

Hi All,

My company currently has a old VB application running in lotus notes. This imports a XML file, calls a stored procedure on a SQL DB tranforms the file, calls another stored procedure, then loads the file data into the SQL DB.

We are now looking at migrating it to a modern platform. I was initially thinking of creating a new visual studio 2008 or 2010 SSIS solution. But I have found the rules of the transforming have not been documented and so are buried in the Lotus Script\VB code & modules. So unless the rules can be documented into logic loops so I can't apply them to the XML nodes. I have also found Artin Softhttp://msdn.microsoft.com/en-us/ff793478 free upgrade tool but this is for VB6.

So I have two questions.

1. Is there an lotus notes reference in Visual Studio 2010 for lotus notes classes such as NotesSession, NotesDatabase, NotesDocument? So the VB package could be opended and understood by visual studio.

2. Can anyone suggest another migration path from lotus script to VB.net?

Thanks

VS 2013 crash after updating update 3

$
0
0

Hey

I update VS 2013 with update 3 it and now automatically crash when  i open any project. How can i solve this issue?

Can I Create A New Website Project That Is Not ASP Based?

$
0
0

Hello All,

I need to create a static website project using HTML, CSS, and Javascript. Since I already had Visual Studio 2013 installed I figured I would run it and see what kinds of Website projects I can create.

When I click File->New->Web Site.. all I see are ASP based sites. I don't need ASP, as I said above my site is static and not really complicated enough to require ASP.

Does Visual Studio support websites that are not ASP based? If so, is there a template for static web site projects that I can download?

Thak you.

Jan

Viewing all 21115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>