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

Type 'CRM_BusinessLayer.MM_Purchasing' is not defined._

$
0
0

Hi,

I have problem with this error.

Do I have to install or reference something?

'declaration
Public Class POPrinting
    Inherits System.Web.UI.Page
    Private mobjCRMBAL As CRM_BusinessLayer.MM_Purchasing

 
Private Sub DeleteOldTrans()
        mobjCRMBAL = New CRM_BusinessLayer.MM_Purchasing(Session("SQLConStr").ToString, Session("SAPConStr").ToString)
        mobjCRMBAL.DeleteTrans(Session.SessionID)
    End Sub

Please help.

Thanks


[VS2019][Xamarin]App deployment fails due to android emulator

$
0
0

Greetings All,

I've just installed and updated VS2019 (16.1.0) and am trying out Xamarin Forms. At this point I should tell you that I'm completely new to Xamarin Forms, and Android for that matter, so please forgive my ignorance of them. Anyway, I decided that I would start by creating the app outlined in MS Xamarin docs "Build your first Xaramin.Forms App" (link: https://docs.microsoft.com/en-us/xamarin/get-started/first-app/?pivots=windows) and having followed all of the instructions I attempted to run/debug the app. The first emulator I tried was the "VisualStudio_android-23_arm_phone(Android 6.0 - API 23)". I then tried the "VisualStudio_android-23_x86_phone(Android 6.0 - API 23)". The app failed to deploy to both of these emulators with exactly the same error as follows:

ADB0060: There is not enough storage space on the device to store package: /data/local/tmp/Mono.Android.DebugRuntime-debug.apk. Free up some space and try again.
   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.<InstallPackage>b__0(Task`1 t)
   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Can anyone tell me what's going on here and, more importantly, how I can fix the problem?

Kind regards,


RobDev

Upgraded to VS 2017 15.9.13 and C++ projects won't build

$
0
0

Upgraded yesterday from earlier VS 2017 version and after upgrade most of my C++ Projects won't build. I get this message. regardless if I try build, rebuild, Clean etc etc.

---

1>------ Build started: Project: GE, Configuration: Debug Win32 ------

1>Error HRESULT E_FAIL has been returned from a call to a COM component.

1>Error: Error HRESULT E_FAIL has been returned from a call to a COM component.

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

---

Anyone that has any idea on how to get around this? I tried deleting the dll Before building, but it won't help.

Personal Visual Studio Professional monthly subscription within an enterprise

$
0
0

Hi All,

please help me with licencing. If I have a Visual Studio Professional 2019 with monthly subscription (with private Microsoft ID), than can I use this within an enterprise (the company where I work) to develop for them?

Within the company we use O365, so i have an enterprise Microsoft ID also, but it is easier if I pay for the subscription and not the company.

Thanks,

Gabor

Visual Studio 2019 Dataset Designer Error: Value cannot be null. Parameter name:instance

$
0
0

I have opened an existing project in VS 2109.  When trying to open any data set I get the following error.

Value cannot be null. Parameter name:instance

Call Stack:

at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
at System.ComponentModel.Container.Add(IComponent component)
at Microsoft.VSDesigner.DataSource.Designer.DataSourceDesignerLoader.HandleLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

I have tried changing the target Framework.  Did not help.

Any suggestions?

Weird Behaviour of IntelliSense. Multiple Projects in one Solution with identical Class Names in different namespaces (C++)

$
0
0

Dear Users,

I have Visual Studio 2019 Community.

I am working on one Project which reads sensors via Serial Port.

It is one Solution with Multiple Projects.
One Project is the Main Application which manages the data values and sends them to the defined destination. Since there are multiple companies of these sensors which have slightly different attributes, I have chosen to use DLLs for the implementation for the sensors.

so the Main Application reads the config file and loads the DLL for the appropriate Class.

The Header of the first DLL Project is:

namespace logger::companyA{
class Modbus : public Reader{
//[...]
void runService();
//[..]
};
}

and the namespace of the second DLL Project is:

namespace logger::companyB{
class Modbus : public logger::Reader{
//[...]
void runService();
//[...]
};
}

now the weird behaviour of Visual Studio IDE is:

when I add a function for overriding at companyB and press ALT+SHIFT+F10 it jumps to the CPP File of companyA which is in another folder and has already the function or If it hasn't it adds the the Implementation there instead of the Modbus.cpp inside the correct folder.

And another weird situation:
If I add a function at companyB it will not mark the function with green underlines (for no definition ) if companyA Modbus has the definition. Of course if I tried to compile the Project with the definitions in the wrong file or completely missing it would throw errors since the compiler can't find the definitions. So it is just an IntelliSense problem. The Compilition is correct.

I've set the C++ Standard to C++17

*Solved* [UWP][XAML] Running MainPage.xaml in UWP project instead of MainPage.xaml in base project

$
0
0

G'day,

I'm new to UWP development (have been doing WPF mainly) and have tried to create a project that works in UWP (windows 10) as well as Android. I was following the tutorial here: https://docs.microsoft.com/en-us/windows/uwp/data-access/sql-server-databases, and created the UWP app successfully using the Blank App (Universal Windows) VS project template.

I then tried to recreate the solution from scratch, but this time using a Mobile App (Xamarin.Forms) template.  Using the code from the tutorial, I (re-)created the MainPage in the UWP project, and set the UWP project to be the startup project, but when it runs, I get the MainPage from the base project.

How do I tell VS to use the UWP MainPage when it runs?


membership roles - I think?

$
0
0

Forgive me for being vague here but I've been away from programing for about a decade!

But when I developed my two websites back around 2009 , there was a way to open some other program from within Visual Studio which then allowed you to setup and define users and what they are allowed to do.

Now with the new VS 2019, things look different and I'm not sure where I look to open that feature. I forgot what its called or I'd do a search on it.

I hope someone knows what I'm talking about! :)

Rachel

I just found an old video on youtube. So its called the asp.net website administration tool.  Is that still accessible from the new VS 2019?

Visual C# 2017

$
0
0
Where can I find the Visual C# 2017 software? Will I have to purchase it or is it free?

for Dylan, can no longer post on other thread.

$
0
0

ok I installed said extension.  Loaded the page

The tabs Design, Split, Source at the bottom are still not there.

VISUAL STUDIO INSTALLER HAS STOPPED WORKING

$
0
0

Hi,after a wrong un installation of visualstudio community 2019,am trying to re install but am getting vs installer has stopped working

i deleted vs directories from program data, appdata, local data and also from registry.

i used microsoft program installuninstall.exe

still problem persists

am attaching vs logs linkin one drive

https://1drv.ms/u/s!Ao3-ihfiHXgWhDo_SAzPwXVj_oPA?e=fQt1Lo

VS 2019 Load Testing System Under Test Performance Counters errors from all agents.

$
0
0
I am running the web performance test using the VS2019 & test rig( one controller and four agents). All the test runs fine but the no counters appearing on the system under test graph.
Receiving two errors - 
-Exception  LoadTestCounterCategoryNotFoundException    5    The performance counter category 'Memory' cannot be accessed on computer 'AGT02' (The network path was not found); check that the category and computer names are correct.    
-Exception    LoadTestAgentResultsLateException    2    Results from agent 'AGT02' were not received in time to be included in the overall results for a sampling interval. To avoid this error, increase the sample rate, or decrease the load on this agent.    

No 'android-26' in drop down list

$
0
0

I use Visual Studio 2019 to develop the android app with C++ language.

I use a library called 'SDL2' to develop the game.

The 'SDL2' sample use the 'android-26' to compile.

In my Visual Studio's 'Target API Level' only have one item, 'android-25'.

I need 'android-26'.

What I need to install to Visual Studio can let the 'android-26' show in the drop down list?


.Net 4 Framework Exception languages

$
0
0

Hi,

I have a problem here that is driving me nuts. The problem here is that all exception messages in Visual Studio is in danish. After a lot of searching around, I found many possible solutions, but none of them works

Here's what I have done so far:

At my work I got a MS Surface with danish Windows 10 installed. Naturally the first thing I do is install the English language.

Under Settings  \ Time and Language \ Language the Windows display language is set to English

Under Settings  \ Time and Language \ Region the country is set to United States and the regional format is set to English (Denmark)

I have tried to set the language in Visual Studio 2017 to English

It's obvious that I'm missing something, but I can't find other places to set language. Everything is in English, except for the exceptions

SOS ! Win10/Target 1903/ MSBUILD : error MSB4166: Child node “2”

$
0
0

When I compile my UWP app with Target 1903 SDK.
It make this error.

MSBUILD : error MSB4166: Child node “2”

Here is MSBuild_*.failure.txt.

UNHANDLED EXCEPTIONS FROM PROCESS 9884:
=====================
2019/06/13 18:19:03
System.IO.IOException: Pipe is broken場所 System.IO.Pipes.NamedPipeServerStream.CheckConnectOperationsServer()
   場所 System.IO.Pipes.NamedPipeServerStream.BeginWaitForConnection(AsyncCallback callback, Object state)
   場所 Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.PacketPumpProc()
===================
UNHANDLED EXCEPTIONS FROM PROCESS 18248:
=====================
2019/06/13 18:19:03
System.IO.IOException: Pipe broken場所 System.IO.Pipes.NamedPipeServerStream.CheckConnectOperationsServer()
   場所 System.IO.Pipes.NamedPipeServerStream.BeginWaitForConnection(AsyncCallback callback, Object state)
   場所 Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.PacketPumpProc()
===================
UNHANDLED EXCEPTIONS FROM PROCESS 18964:
=====================
2019/06/13 20:49:46
System.IO.IOException: Pipe is broken場所 System.IO.Pipes.PipeStream.CheckWriteOperations()
   場所 System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   場所 Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
===================
UNHANDLED EXCEPTIONS FROM PROCESS 10108:
=====================
2019/06/13 19:53:02
System.IO.IOException: Pipe is broken場所 System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   場所 System.IO.Pipes.PipeStream.BeginWriteCore(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
   場所 System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   場所 System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   場所 Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
===================


Error happen with below condition.

  • UWP app , When I used Target = 1903(18362) SDK.
  • Windows 10 OS 1903 or 1809, I tested both. Both make same error from Visual Studio.

I tried below.

  • Re-create new project and copy files from previous project to new one.
    Result was same : ( wow..
  • I tried different PC to compile. but It happened same result.
    this mean, Without I have to resolve this issue, I can not use 1903-Win-10... Please help...
  • Environment value "MSBUILDDISABLENODEREUSE=1", I tried. It make same error still.

To pass the compile, I need below

  • Change back to Target = 1809 (17763). Compile work fine.
  • Windows 10 OS 1903 or 1809, I tested both. As long as I use Target=1809, It is possible to do compile

Here is my environment.
Visual Studio 2017 (15.9.13)
Windows 10 Professional OS

Here is my Visual Studio compile output : ( sorry, it's Japanese )

1>------ ビルド開始: プロジェクト: Bg7Uwp1, 構成: Debug x64 ------
1>MSBUILD : error MSB4166: 子ノード "2" は処理の途中で終了しました。シャットダウンしています。診断情報は "C:\Users\nakayama\AppData\Local\Temp\" のファイル内で見つかる可能性があり、MSBuild_*.failure.txt という名前になります。この場所は変更できます。変更するには、MSBUILDDEBUGPATH 環境変数を別のディレクトリに設定します。
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========

I also tried with Visual Studio 2019. It make same error.
When 2019 VS, It generated this error in output

1>------ ビルド開始: プロジェクト: Bg7Uwp1, 構成: Release x64 ------
1>MSBUILD : error MSB4166: 子ノード "2" は処理の途中で終了しました。シャットダウンしています。診断情報は "C:\Users\nakayama\AppData\Local\Temp\" のファイル内で見つかる可能性があり、MSBuild_*.failure.txt という名前になります。この場所は変更できます。変更するには、MSBUILDDEBUGPATH 環境変数を別のディレクトリに設定します。
1>MSBUILD : error MSB4166: C:\Users\nakayama\AppData\Local\Temp\MSBuild_pid-21904_26c2cbfa24d64814aba1093682768db8.failure.txt:
1>MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 21904:
1>MSBUILD : error MSB4166: =====================
1>MSBUILD : error MSB4166: 2019/06/14 16:49:46
1>MSBUILD : error MSB4166: System.IO.IOException: パイプが壊れています。
1>MSBUILD : error MSB4166:    場所 System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
1>MSBUILD : error MSB4166:    場所 System.IO.Pipes.PipeStream.BeginWriteCore(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
1>MSBUILD : error MSB4166:    場所 System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
1>MSBUILD : error MSB4166:    場所 System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
1>MSBUILD : error MSB4166:    場所 Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
1>MSBUILD : error MSB4166: ===================
1>MSBUILD : error MSB4166: 
1>MSBUILD : error MSB4166: 
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========

Please help .




Trying to log in to my website with a login and pw box - Error Code

$
0
0

My website is working online ok. But on my website in upper left corner, it has a little text box (login box) where someone can create a user name and pw. Or the admin (me) can log in. I need to be able to log in to make changes on certain pages, for example create threads, change prices displayed, etc. I wasn't too sure about my log in name & pw because my ability to change those things was ltd. I asked my web host to look into the database so see if they could find all my old emails and pws that I might have used. I probably used up my 5 attempts to retrieve my pw - not sure about that. But after the web tek looked into db and issue, now when I log in with the credentials it gives this error:

Server Error in '/' Application.

Invalid character in a Base-64 string.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Invalid character in a Base-64 string.Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

 

[FormatException: Invalid character in a Base-64 string.]

  System.Convert.FromBase64String(String s) +0

  System.Web.Security.MembershipProvider.EncodePassword(String pass, Int32 passwordFormat, String salt) +54

  System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +169

  System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42

  System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78

  System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider

(AuthenticateEventArgs e) +60

  System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +119

  System.Web.UI.WebControls.Login.AttemptLogin() +115

  System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs

e) +101

  System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)

+37

  System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e)

+111

  System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176

  System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.

RaisePostBackEvent(String eventArgument) +10

  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

+36

  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

+1565

 

Version Information: Microsoft .NET Framework Version:2.0.50727.8800; ASP.NET Version:2.0.50727.8762

My local copy of my project, when tested in my local server, does allow full admin use with the credentials I was trying to use online. Of course it is possible that the admin and pw used on the online website was different than my local copy but I can't find the other one if it exists.

Not knowing what else to do, I downloaded a copy of that db from my host server in a .bak file.

I'm not sure if that will allow me to see/recover my emails and pws. Or how to proceed to open the .bak file. Do I just try to attach it to my SQL Server Mgt. Studio?

If it helps at all, the method used to store my pws is symmetric encryption.

Thanks in advance

Rachel



Cannot run stand alone application on windows 10 computer

$
0
0

I am currently developing an application using C++ CLI in visual studio.

I am using Visual Studio Community version 2017.

I am developing the application on a computer running windows 7.

After building to the application I put it on my memory stick and I test it on other computers.

So far i tested it on windows 7 and windows 10.

windows 7 is working fine, but i tried it on two windows 10 computers and it gave me the following error:

"The code execution cannot proceed because ucrtbased.dll was not found. Reinstalling the program may fix this problem."

I am looking for a permanent solution to this problem, meaning that the customer should have the application work on their

windows 7 8 and 10 computer without any hassle.

I need an install of enterprise studio to downgrade to pro that I have a license for

$
0
0
I work in a hyper secure location. We are not allowed to install our own software even though we are administrators to some extent. Also there are filters on the network that do not allow installs to reach out to other URLs to get pieces needed to complete an install. So, I had to request Visual Studio 2017 Pro from the higher up administrators. They compiled a version of VS2017 install that comprised all of the pieces and libraries needed to install it clean without going out to the internet (microsoft.com) to get pieces. When I got the "Authorized" install I installed it. To my surprise it was VS2017 Enterprise. I thought wow cool I got an upgrade! because I had purchased a license for VS2017 Pro. Well it was not. After a while I got a message from the ide that my trial had expired and I needed to log in as someone else or put in a key, etc, etc, etc. Needless to say, nothing I have done to this point has helped. I tried to install the correct version but since the install reached out to MS.com to get parts of the install it was quickly shut down by the network. I do not even understand why VS 2017 Ent would be ok with my organisation but Pro would need additional research / vetting before I can be given access to use it. I have a valid license for Pro but not for Enterprise. They gave me a copy of Enterprise that was supposedly vetted but Pro is not... So now I have a project due in December that I can not even start on until they vett the Pro version of VS2017 and build me a self contained version of the install. This could set me back a month or more. What can I possibly do to either downgrade my install or extend my trial of enterprise until this vetting process is complete? 

How to generate apk file ?

$
0
0

I use C++ and Visual Studio to develop the android game.
In my Visual Studio project, it has 4 platforms: 'ARM,ARM64,x86,x64'.
But I don't know which platform I need to make the apk with.

I have use Xamarin.Forms develop an app before.
In Xamarin.Forms, there is an 'Archive...' menu command to generate the apk.
It not need me to select the platform in 'ARM,ARM64,x86,x64'.

So, I think maybe there is an command to generate a apk with 'ARM,ARM64,x86,x64' all  inside.
My question is what is the official method to generate apk for C++?


add a friends system to app similar to steam?

$
0
0

Hi I'm making an app and wondering where I could go to learn how to make/implement a friends system like steam, into my app. I basically want the app to be able to give the users the ability to add people, and message them and stuff like that.

I understand I'd need a database, but I'm completely unsure where to go or if there are any videos on how to help, thanks

Viewing all 21115 articles
Browse latest View live


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