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

Cannot find wrapper assembly for type library "EnvDTE100".

$
0
0

Hi All,

Many years ago, I developed a set of macro functions for Visual Studio (VS2005).
It utilized the EnvDTE object.

When Microsoft did away with macros, I was PO'ed.

At the time, I managed to figure out how to get my macro functions into an Add-in.

When Microsoft did away with Add-ins, I was PO'ed x 3.

I managed to figure out how to get my functions from the Add-in into a library,
then call into that library from a VSIX extension.

Recently, I tried to change a function within the library, then rebuild it.

It has failed to build. I do not get any errors, but I have some warnings:

Warning
IDE0006	Error encountered while loading the project.
Some project features, such as full solution analysis for the failed project
and projects that depend on it, have been disabled.

Warning
Cannot find wrapper assembly for type library "EnvDTE100".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.

Warning
Cannot find wrapper assembly for type library "EnvDTE90".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.

Warning
Cannot find wrapper assembly for type library "EnvDTE80".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.

Warning
Cannot find wrapper assembly for type library "EnvDTE".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.


I tried this:
Remove old COM references to EnvDTE, EnvDTE80, EnvDTE90 and EnvDTE100.
Add new references using Assemblies | Extensions tab and select EnvDTE, EnvDTE80, EnvDTE90,
EnvDTE100.

It did not work.

This is Visual Studio Community 2017 version 15.9.2 on an up-to-date Windows 10 system.

Can someone PLEASE tell me how to fix this?

THANK YOU!



Wally


Expired License

$
0
0

Visual Studio
License: Prerelease software
This license has expired.

Been getting this message whenever i try to connect to a server using SQL Server Management Studio. I've upgraded to SQL Server Developer edition already. What seems to be the problem?


C# Database design: How to make user created classes, using .CSV or other format

$
0
0

Hello,

Any advice is appreciated. Thank you.

Presently the application is: A C# Winforms utility that reads/writes/edits .CSV. It meets the user need for fixed variables. Those fixed variables are in a fixed class using variables bool, int, string etc. It also has relational classes, which load entries from separate .CSVs. (E.G. A relationship entry called "Ownership" has fixed variables that connect "PropertyDeed_ID_123" to "Company_ID_444" with other fixed entities such as "Purchase date" or "Permit application".)

Questions:

  1. Sometimes these fixed variable types suffice. Othertimes the user wants to create entities, custom classes of custom variables. How might this be implemented?

  2. Is it possible to define a custom class from a loaded .CSV of variables?

  3. Are the C# types dynamic, Dictionary, or ExpandoObject something to investigate?

User's Requirements:

  1. Prefers it is written primarily with Visual Studio.

  2. Needs data transparency, for document public disclosure and legal reasons. There should be limited metadata, and no "hidden" entry data within custom filetypes. The raw file storage of the datatables cannot be enclosed in code or other formatting. The database entries and the variables models, should be readable with a text editor, understandable by anyone who knows English. E.G. Something like SQL may not be ideal.

Note this Database is used within one machine at a time, with one user (no networks no internet). Entry count ranges from < 100 to potentially 100K +.

If further research is needed, feel free to point in a direction to look. Thank you.


How to refer shared project to another solution's projects?

$
0
0

Dear prefessionals,

I'm using Visual Studio 2017 professionals version 15.9.3.

And I desire to create company-wide common "shared project"written codes in C#.

So... I generted an shared project in the new solution and wrote some codes.

And then in spite of be added the shared project in another main solution, the "Reference manager" window ("add reference" > Projects > Solution) says "No items found".

How to refer any shared projects to any projects in any solutions?

Thank you in advance.

Windows service doesn't continue the execution

$
0
0

Hi

I created a Windows Service which runs perfect when I run the code from a console app but I doesn't work when it runs in the windows service:

I can see that it line is not executed: 

foreach (var item in pendientes)

My complete code:

using Microsoft.Reporting.WinForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Drawing.Imaging;
using System.Drawing.Printing;
using System.Windows.Forms;
using System.Drawing;
using CajaWebTCC.ServicioComprobante02.Agente;
using CajaWebTCC.ServicioComprobante02.ServicioComprobante02;
using System.Net;
using CajaWebTCC.ServicioComprobante02.Impresion;

namespace CajaWebTCC.ServicioComprobante02
{
    public partial class ServicioComprobanteViewer : ServiceBase
    {
        private readonly int _intervalo;
        private System.Timers.Timer _timer;
        private EstadoServicio _estadoServicio;
        private readonly EventLog _log;
        private readonly bool _logHabilitado;
        private int m_currentPageIndex;
        private IList<Stream> m_streams;
        public ServicioComprobanteViewer()
        {
            InitializeComponent();

            var logSource = ConfigurationManager.AppSettings["LogSource"];
            var logName = ConfigurationManager.AppSettings["LogName"];
            var inter = ConfigurationManager.AppSettings["Intervalo"];
            _logHabilitado = Boolean.Parse(ConfigurationManager.AppSettings["LogHabilitado"]);


            _intervalo = Int32.Parse(inter);

            if (_logHabilitado)
                _log = new EventLog { Source = logSource, Log = logName };
        }

        #region timer

        void timer_Elapsed(object sender, ElapsedEventArgs e)
        {

            if (_estadoServicio != EstadoServicio.Esperando) return;
            _estadoServicio = EstadoServicio.Procesando;

            _log.WriteEntry("Se lanza proceso");
            ProcesarImpresion();
            _log.WriteEntry("fin proceso");
            _estadoServicio = EstadoServicio.Esperando;
        }

        #endregion

        #region Events Interface

        protected override void OnStart(string[] args)
        {
            //Configuracion del Timer
            if (_timer == null) _timer = new System.Timers.Timer();
            _timer.AutoReset = true;
            _timer.Interval = _intervalo * 1000;
            _timer.Elapsed += timer_Elapsed;

            _estadoServicio = EstadoServicio.Procesando;

            _timer.Start();
            //ProcesarImpresion();
            _estadoServicio = EstadoServicio.Esperando;
            //Registros del log
            if (_logHabilitado)
                _log.WriteEntry("Se inicia el servicio de impresión con QR.");
        }


        protected override void OnStop()
        {
            _timer.Stop();
            _timer.Elapsed -= timer_Elapsed;
            _timer = null;
            if (_logHabilitado)
                _log.WriteEntry("El servicio de impresión con QR se detuvo.");
        }

        #endregion
        private Stream CreateStream(string name,
          string fileNameExtension, Encoding encoding,
          string mimeType, bool willSeek)
        {
            Stream stream = new MemoryStream();
            m_streams.Add(stream);
            return stream;
        }

        private void Export(LocalReport report)
        {
            const string deviceInfo =
              @"<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>10in</PageWidth><PageHeight>12in</PageHeight><MarginTop>0.1in</MarginTop><MarginLeft>0.1in</MarginLeft><MarginRight>0.1in</MarginRight><MarginBottom>0.1in</MarginBottom></DeviceInfo>";
            Warning[] warnings;
            m_streams = new List<Stream>();
            report.Render("Image", deviceInfo, CreateStream,
               out warnings);
            foreach (Stream stream in m_streams)
                stream.Position = 0;
        }

        private void PrintPage(object sender, PrintPageEventArgs ev)
        {
            var pageImage = new
               Metafile(m_streams[m_currentPageIndex]);

            // Adjust rectangular area with printer margins.
            var adjustedRect = new Rectangle(
                ev.PageBounds.Left - (int)ev.PageSettings.HardMarginX,
                ev.PageBounds.Top - (int)ev.PageSettings.HardMarginY,
                ev.PageBounds.Width,
                ev.PageBounds.Height);

            // Draw a white background for the report
            ev.Graphics.FillRectangle(Brushes.White, adjustedRect);


            // Draw the report content
            ev.Graphics.DrawImage(pageImage, adjustedRect);


            // Prepare for the next page. Make sure we haven't hit the end.
            m_currentPageIndex++;
            ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
        }
        private void Print()
        {
            if (m_streams == null || m_streams.Count == 0)
                throw new Exception("Error: No hay stream que imprimir.");
            using (var printDoc = new PrintDocument())
            {
                printDoc.PrinterSettings.PrinterName = ConfigurationManager.AppSettings["NombreImpresora"];
                printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
                m_currentPageIndex = 0;


                printDoc.Print();

            }
        }

        public void ProcesarImpresion()
        {
            try
            {
                _log.WriteEntry("paso0");
                var pendientes = AgenteServicioComprobante.ListarComprobantePendiente(new ComprobantePendienteEL
                {
                    vch_CodigoEstacion = Dns.GetHostName()
                });


                if (pendientes != null && pendientes.Any())
                {
                    _log.WriteEntry("paso01");

                    foreach (var item in pendientes)
                    {

                        var vchTextoComprobante = item.vch_TextoComprobante;
                        byte[] bitsCodigoQr = null;

                        if (!string.IsNullOrEmpty(item.vch_ImagenQR))
                        {
                            var codigoQr = item.vch_ImagenQR;

                            bitsCodigoQr = Convert.FromBase64String(codigoQr);
                        }

                        var ticket = new List<TicketQr>
                        {
                            new TicketQr
                            {
                                Comprobante = vchTextoComprobante,
                                CodigoQr = string.IsNullOrEmpty(item.vch_ImagenQR) ? null :
                            bitsCodigoQr
                            }
                        };

                        var report = new LocalReport
                        {
                            ReportPath = AppDomain.CurrentDomain.BaseDirectory + @"Impresion\ReporteQR.rdlc"
                        };

                        report.DataSources.Add(
                        new ReportDataSource("dsImpresionQr", ticket));

                        Export(report);
                        Print();


                        AgenteServicioComprobante.ActualizarComprobantePendiente(new ComprobantePendienteEL
                        {
                            int_CodigoComprobantePendiente = item.int_CodigoComprobantePendiente
                        });

                        System.Threading.Thread.Sleep(2000);

                    }
                }


            }
            catch (Exception ex)
            {
                if (_logHabilitado)
                {
                    _log.WriteEntry(ex.Message);
                    _log.WriteEntry(ex.StackTrace);
                }
            }
        }
    }

    public enum EstadoServicio
    {
        Esperando = 0,
        Procesando = 1
    }
}


I seens that the app stop working. after: 

if (pendientes != null && pendientes.Any())
                {
                    _log.WriteEntry("paso01")

TFS2017 Nuget Restore and on premise feed or local drive (on build server) feed

$
0
0

We have a build server that is failing because of SOMETHING... but running nuget from command line on build server for a handful of test projects (dotnet core and framework) return:

None of the projects in this solution specify any packages for NuGet to restore
Where as when running from TFS the log output is more akin to ... connect ETIMEDOUT 117.18.232.200:443

but does seem to depend on what version of nuget Restore we try (selecting "0.*" and advanced and trying various permutations provide a range of things from 

[command]C:\Windows\system32\chcp.com 65001
Active code page: 65001
##[error]connect ETIMEDOUT 117.18.232.200:443
##[section]Finishing: NuGet restore **/*.sln

to similar lookijng:

Nothing to do. None of the projects in this solution specify any packages for NuGet to restore.
C:\Program Files (x86)\NuGet\nuget.exe restore -NonInteractive e:\_work\15\s\src\TestProj.sln -Verbosity Detailed
NuGet Version: 3.5.0.1938
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
Nothing to do. None of the projects in this solution specify any packages for NuGet to restore.

So my question(s) is:

Given we are restricted to TFS2017 and NO INTERNET FROM BUILD SERVER - I'm trying to figure out a SANE workflow for developers to build and use nuget, without requiring them to construct insane (brittle) scripts or processes for adding nuget packages in 47 different places and then (invariably) getting something wrong and spending weeks trying to figure out why dsomething that builds on their workstations wont work in the build server... given info herehttps://docs.microsoft.com/en-us/nuget/hosting-packages/overview - we are okay with either package manager or local feeds, but we need to understand where/how to source things from dev machines in order to INIT/PUSH (or whatever) whatever packages that are finalized (because a dev machine will undoubtedly have 1000's of packages that are just experimented with and never used... although I THINK we currently have the space to accommodate this its always a consideration.)

a) are there any guidance docs on this?
b) is there a VS way of "checking in"/managing packages to a centralized feed/local directory?

Is this/these the only/recommended way to do this?

There's no way to include packages in TFS "by the sln/ide" somehow? Since I'm VERY used to seeing \packages\<all the packages active and old versions> and \packages.config in the solution folder mostly, I'm no longer sure how this works in VS or "which cache" is the RIGHT source anyway!

Its not rocket science to "get the files there" (nuget appears to be simple and robust structure and implementation wise) as long as you can

(a) find the package(s) you want and
(b) get it/them into the location/folder structure that the SLN/Project/TFS/MSBuild is expecting when it goes "looking for missing package referneces and can't find them in the SLN/Build working folder... (eg: Nuget Restore step, or "SOMEHOW" in a "library/reference" folder that is part of the "SRC" when the build server checks stuff out to build on annuget.org isolated server...

The main bits I need answers/advice on is:

  1. whats the process (especially in dotnetcore, but really any VS project - since everything seems to be "use package restore" afaik) for KNOWING/GETTING the required Nuget packages referenced in a project that will be needed at build time? (my guess is everything that's not part of a .Net SDK... but again HOW to KNOW this?)
  2. whats the best/most manageable way to maintain this "listof  references  -> build server" process in day to day development/checking-in...? Is it just "c:\users\name\appdata\local\nuget\*.* ->xcopy -> \\someshare\writeonlyfordevelopers-to-just-add-copies-of-their-nuget-caches" and get all developers to contrib to this all the time... remembering to do this when additions of new packages are done...?


-- this is not the profile you're looking for --




Source Safe Database

$
0
0

Hi guys,

Could you help me please to understand why I can not open my database



thank you

web.config

$
0
0

I am sure this question has been asked before. I just cannot get my head around the web.config file.

In development Visual Studio 2017 somehow generates an OK web.config file so you don't have to worry but what happens when I want to migrate to my remote website.

There seem to be so many options for specifying a connection string  in <connectionstrings> or adding a key in <appsettings> and why do you choose one over the other or is <connectionstrings> the only one that works and if so what is <apsettings> for.

I "accidentally" got something that worked but during a "tidy up" I carelessly lost the working web.config for my remote site when I moved from 123-reg to IONOS and as I never quite knew how I got there I can't fix it. It did work on IONOS for a while until I did the "tidy up" 

Is there an idiots guide to web.config or do you have to plough through the Microsoft brain dump which I have tried without success - apart from the one time lucky strike. It's just a simple MSSQL data base I am trying to access.


NJDR


This thing won't come off!

$
0
0

Whenever I try to use my arrow keys to fix something while coding, it keeps giving me this gray box over the stuff I wrote and replaces it with whatever I type! Help!

vccorlib.h problem

$
0
0

I keep getting these errors

Severity Code Description Project File Line Suppression State

E0262 not a class or struct name C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\vccorlib.h 1548 

Error (active) E2227 "JOB_OBJECT_NET_RATE_CONTROL_FLAGS" is not a valid generic argument C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\vccorlib.h 1548 

Error (active) E2227 "const volatile JOB_OBJECT_NET_RATE_CONTROL_FLAGS" is not a valid generic argument C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\vccorlib.h 1596 

"New project": missing "Windows Console Application" option

$
0
0

I am using the latest Visual Studio, currently version 15.9.4. I am trying to create a simple native C++ Windows console application (formerly, a Win32 application). I've been searching around for answers and it seems like I'm simply missing the required options. Here is the result when I open the "File->New ->Project" dialog:

My

Needless to say, neither of these options is what I want. It does not appear even when I search among the online templates.

I have been previously able to do that, but I had to refresh the installation of VS a few months ago. Thus, I went to double-check that I had the correct installation options. Here is the installed selections:

Installed options

I don't see anything relevant, unless it has been severely misnamed and mis-described. Any ideas?

Kamen


Currently using Visual Studio 2017, native C++; (Windows API) and C# (.Net, WPF), on Windows 10 64-bit; Mountain Time zone.


An unhandled Microsoft.NET Framework exception occured in devenv.exe

$
0
0
Visual Studio 2013 doesn't start. Issue An unhandled Microsoft.NET Framework exception occured in devenv.exe [1240]. Please advise how should I proceed?

Visual Studio (SSDT) 2017 - Drop-down box display issue

$
0
0

Hi, I wonder if someone has a solution to this?

Issue: SSDT 2017 - Integrations services project - Slowly Changing Dimension Wizard.

The Slowly Changing Dimension Wizard combo box is too small, so the contents in the drop-down list is unreadable. 

I have the same problem with earlier versions of Visual Studio.

I have tried multiple resolutions on my native screen, to no effect. as well I have disabled scaling DPI via regedit. still no luck.

note my native screen resolution (laptop) is QHD so 3200 x 1800. however, as stated, changing scaling and resolutions at the windows end has no impact.

is there a way I can change - or alter the size of this combo-box in SSDT?

Thanks, for reading and hope you can help.

Matt

from Website ...docx file Open/ Download issue in IE11 with Windows 10 and Word 2016

$
0
0

Hello all ! Need URGENT help in this !!!

"Retry" ERROR while downloading or opening file from browser on machine with Word 2016 and Windows 10.

Only first time on machine it work and later gives error (W10 + Word 2016 + IE 11).

Where as Same thing works fine in W7 + word 2013 / W10 + Word 2013, file can be downloaded or opened multiple times. 

All Cases browser used: IE 11

Solutions I tried:
1. Deleting all Temp files from C drive.
2. Delete Inetcache, browser history, cookies from IE settings.

Observation:  On W10 + word 2016 if temporary filw from iNetCashe is deleted then only it allows to download second.
if not deleted mannually then shows retry error.

Please guide me how this can be resolved?

Is there issue with Windows update? Can we handle it programatically?

Thanks in Advance.


Visual Studio doesn´t add new items automatically to Source Control

$
0
0

Hi,

we have the situation that on some Developer Computer with Visual Studio 2015 Prof. (14.0.25420.01 Update 3) all new elements for a project (which is already in the source control) are not automatically checked in. They have to checked in manual which is error prone if the nightly build is missing some objects.

A connection to a visualstudio.com-TFS is established and also the workspace-mappings are done.

The "Source Control"-Options in VS are correct ("Current source control plug-in" is set to "Visual Studio Team Foundation Server").

A new project sometimes is automatically added to the source control but sometimes not (in both cases the Checkbox "Add to Source Control" is set in the "New Project"-Form).

In the local workspace-directories there are no .tfignore files.

Does someone have a hint if this can be a tfs- and/or vs-setting?

Thanks in advance.

Sascha


Publish causing pdb files to be created after latest update.

$
0
0
Yesterday I upgraded VS 2017 Professional to the latest build Version 15.2 (26430.6) and now when I go to publish my web site it is creating pdb files no matter if I have debug turned on or emit debug information.  It never did this before and I have another user who is on the 26430.4 build where it's doing the same thing.  Unfortunately I'm not sure what build I was on before this update happened.  Anything I can change to prevent this or is it a bug in the current build?

Visual Studio 2017, .NET 2.0 form applications won't compile

$
0
0

Hello everyone,

In the past I have created some simple .NET 2.0 applications with Visual Studio 2015. Visual Studio 2017 isn't able to compile them anymore. It seems like this problem only occurs with my form applications, not in case of my console applications. I have installed Visual Studio 2017 fresh on a new system.

Error message:

Severity    Code    Description    Project    File    Line    Suppression State
Error        Task host node exited prematurely. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt.    MyProg           
Error        The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type.    MyProg           

I was able to locate the mentioned text file:

UNHANDLED EXCEPTIONS FROM PROCESS 2560:
=====================
7/8/2017 1:01:38 PM
System.ArgumentException: Culture name 'en-de' is not supported.
Parameter name: name
   at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketReadTranslator.TranslateCulture(CultureInfo& value)
   at Microsoft.Build.BackEnd.TaskHostConfiguration.Translate(INodePacketTranslator translator)
   at Microsoft.Build.BackEnd.TaskHostConfiguration.FactoryForDeserialization(INodePacketTranslator translator)
   at Microsoft.Build.BackEnd.NodePacketFactory.PacketFactoryRecord.DeserializeAndRoutePacket(Int32 nodeId, INodePacketTranslator translator)
   at Microsoft.Build.BackEnd.NodePacketFactory.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator translator)
   at Microsoft.Build.CommandLine.OutOfProcTaskHostNode.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator translator)
   at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, Queue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
===================


I am a beginner and happy for every help.

Thank you very much.

Visual Studio Code .NET Core debugger not hitting a breakpoint

$
0
0

I have a problem trying to debug applications written in .NET Core in Visual Studio Code. Here is the setup: I'm using a virtual machine running Debian 9 (with the default GUI). I've installed .Net Core SDK 2.1, and Visual Studio Code 1.30.0. Installed the extensions for C# 1.17.1. I've created simple project:

class MyProgram
{
    static void Main(string[] args)
    {
        Console.WriteLine("Hello You Angel!");
        ProcessStartInfo startInfo = new ProcessStartInfo() { FileName = "/bin/bash", Arguments = "-c nautilus /home/", }; 
        Process proc = new Process() { StartInfo = startInfo, };
        proc.Start();
    }
}

If I run the program, in executes, and produces the correct output. In the debug window I pressed the gear button to edit the launch.jason file

Debug window

Here it is what it looks like:

{"version": "0.2.1","configurations": [
    {"name": ".NET Core Launch (console)","type": "coreclr","request": "launch","preLaunchTask": "build",
        // If you have changed target frameworks, make sure to update the program path."program": "${workspaceFolder}/HelloWorld/bin/Debug/netcoreapp2.1/HelloWorld.dll","args": [],"cwd": "${workspaceFolder}/HelloWorld",
        // For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window"console": "integratedTerminal","stopAtEntry": false,"internalConsoleOptions": "openOnSessionStart","externalConsole": false,
    },
    {"name": ".NET Core Attach","type": "coreclr","request": "attach","processId": "${command:pickProcess}"
    }
 ,]
}
I've put a breakpoint in the project: 

and when I hit the green triangle button, the breakpoint it not hit. Actually I think that non of the code i executed at all. Is there something I'm missing to get this app it debugging mode?

Please help!


Julian Dimitrov


Julian Dimitrov

Visual Studio - Watch of assembly register addressed structure

$
0
0

I'm able to watch an instance of a structure in the data section, but I'm unable to invoke a watch for something like

        mov     al,[ebx].mystruct.member

I've tried some variations. The debugger is aware that mystruct is a structure, as it can show "mystruct" as a structure type (but only as a non-instanced type), but I can't get it to show either the entire struct or a structure member relative to a register pointing to the structure.

I'm running VS2015, but the person I'm trying to help is having the same problem with VS2017.


CS0433: The type Microsoft.Reporting.WebForms.ReportDataSource exists in both GAC and Temporary ASP.NET files

$
0
0

After upgrading Microsoft Report Viewer Control for ASP.Net Web Forms applications with Nuget from version 10 to 15, when published project to server the error below starts to appear. On local machine everything works fine. All ReportViewer reference  Copy Local properties are set to True, registered all report pages with appropriate assembly. Tried clearing temp asp.net files, checked for double references in web.config, installed latest version of report viewer on server, nothing helped. Do you have any advice or faced similar issue?

---------------------------------------------------------------------------------------------------------------------------------------

Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.            

Compiler Error Message: CS0433: The type 'Microsoft.Reporting.WebForms.ReportDataSource' exists in both 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\psshifttracker\3204b50c\1eca333e\assembly\dl3\0941aa88\00019b61_9c4ed401\Microsoft.ReportViewer.WebForms.DLL'

Source Error:

Line 595:        
Line 596:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]Line 597:        private global::Microsoft.Reporting.WebForms.ReportDataSource @__BuildControl__control9() {Line 598:            global::Microsoft.Reporting.WebForms.ReportDataSource @__ctrl;
Line 599:            
                  

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\psshifttracker\3204b50c\1eca333e\App_Web_shiftreport.aspx.dfa151d5.venwfp5b.0.cs              Line:  597            

             
Viewing all 21115 articles
Browse latest View live


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