Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all 3509 articles
Browse latest View live

Error The file '/******.aspx.vb' does not exist. project.web.form1 /carDonateApp2.aspx 1

$
0
0

when publishing via ftp I get this error, it is the .vb of the project start program, 

of course the .vb is there in the project, I can build the project ok, run it ok in debug, and run it from a IIS website virtual directory pointing  to my project

first line of the .aspx, (where the error is identified)

<%@ Page Language="vb" AutoEventWireup="false" Inherits="myApp" CodeFile="~/myApp.aspx.vb" %>

so weird that a publish error would say the file doesn't  exist???? if the path in line 1 for the code file was somehow bad why would it build ok? why would the project run ok other wise??


2017 Installer Project for Web Application Project type

$
0
0

Back in 2010, one could include a Web Deployment Project in an installer project. This doesn't seem to be an option in VS2017. Is there another way to add an ASP.NET Web Application Project output to an installer project without adding it as individual files?

what problems are caused by this error?

$
0
0

vs 2017, under my project tab for references I have the error "Could not load type 'Microsoft.VisualStudio.WCFReference.Interop.IVsServiceReferenceMetadataStorageEvents' from assembly 'Microsoft.VisualStudio.WCFReference.Interop, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'."

my project builds ok, debugs ok, and runs ok on s local IIS 10.0 site I created for the project (not vs IIS express)

I am having issues that seem related to references publishing to an external web host site via ftp, the suggestions for that appear to be to set reference to 'copylocal'. that seems a bit cumbersome, I have about 25 references to the project. there are only 2 I have added in addition to the project defaults. The external site has all the latest and greatest IIS, .net framework, etc. I would thing all the references would be there in the site GAC, as they must be in my little local IIS for the site to run ok there. 

Visual Studion 2015 and CORE

$
0
0

Hello everyone and thanks for your help in advance.  I currently use Visual Studio 2015 and would like to migrate some projects to CORE.  I'm a little confused about the migration path, what steps I need to take, and whether I can go to CORE 2.0 or only 1.1.  Currently using VS 2015 Professional Update 3.  Production environment is Windows Server 2012 with SQL Server 2012.  Any insight would be appreciated.

Visual Studio can't run ASP.NET app developed on another machine

$
0
0

I am having a strange problem where I cannot run a VS ASP.NET app (specifically, an MVC 5 app) that was developed on another machine with the same version of VS (2015, Update 3).  However, I can create a new ASP.NET MVC 5 app on the machine and that runs fine.  But when I try to run the app developed on the other machine, all I get is a Page cannot be displayed error, like IIS isn't running, but I don't get any error messages from IIS or VS.  Both machines are configured the same way with the same version of VS (2015 Community) and the same update (Update 3). Both run Windows 10 as well.

I'm wondering if there is a configuration settings that configures the local express version of IIS in the project that perhaps is creating the conflict, and that maybe by chance, IIS Express on both machines is not configured the same way for some reason (although I never changed the configuration of IIS on either machine from their defaults.)

NOTE: I also know if you have IIS installed (from the Control panel -> Programs & Features -> Add Windows Features) in addition to the version of IIS 10.0 Express that VS installs, that can create a problems when testing in VS, but I don't have that version of IIS enabled/installed; only the Express version 10.0 version that was installed with Visual Studio.  I also don't have any other web services installed (ie. Apache, WAMP, etc).

Suggestions?  I've tried running VS as an Administrator as well, with the same result so Windows permissions does not seem to be the problem.  I've also deleted the "IISExpress" folder in the Documents folder to clear out any possibility of that being an issue.

Predefined type System.Object is not defined or imported

$
0
0

For some unknown reason got this error few days ago in VS Code. Downloaded .Net Core SDK v2.02, tried to create new project, didnt help. Think project is missing mscorlib library, but dont know how to add it into project.csproj file.

Visual Studio 2017 Community - Creating Website

$
0
0

Hello All,

When I create a website in Visual Studio 2017 Community (File > Create Website) two folders are created for the Solution.

Both folders have the same name, but the second folder is followed by a (2).

Example:  If I create a Solution Called "Cat" the following folders are created:  Cat and Cat(2).

The first folder contains the development files (.cshtml, etc) and the second folder contains the .sln file and a "packages" folder.

My website is in C#, and I am using the Razor View Engine.

Questions:

1.  Is there any way to have all the files create in a single folder.

2.  I am using GitHub (I am very new to GitHub), and it appears I can only put one folder per solution under source control.  This poses a problem as each of my Solutions has two folders.

Any guidance appreciated.

Many thanks in advance...

What version to upgrade too if I'm currently using VS 2012

$
0
0

Hello,

We are slow at upgrading where I currently work, but I just saw that the documentation for VS 2012 is not being maintained anymore so I'm thinking of upgrading.  I have version 11.0.61219.00 Update 5 of Visual Studio 2012. 

1. Can I just install a new version of Visual Studio along side VS 2012 without causing issues?

2. If I have to upgrade should I go to VS 2013 or VS2015?  I want to make sure all my projects created in VS 2012 don't break when I upgrade to a new version. 

Thank you


Error "CS1010 Newline in constant"?

$
0
0

Hello,

I am tired of getting the following error message in Visual Studio over and over again:

CS1010	Newline in constant

When I double click on this error message, I am brought to the following line of HTML code:

<asp:LinkButton ID="btn_Delete" runat="server" Text="Löschen" CommandName="Delete" CausesValidation="False" CommandArgument='<%# Eval("sym") %>' OnClientClick='<%# Eval("sym","return confirm(\"Soll der Eintrag &#39;{0}&#39; gelöscht werden?\")") %>'></asp:LinkButton>

The cursor is then positioned right before the double quote before "return".

Then, I have to do strange things to get rid of this error,, e. g. cut the line out of the code, save and compile and then insert it again. It's not clear, what exactly causes the error to go away, but somewhere after a while it works again.

What causes this error and how can I get rid of it?

Thanks
Magnus

MSI installer does nothing

$
0
0

I finished a visual app for my desktop and created the MSI installer, once I run it it only says "installing" but does nothing, I tried it in another machine and installed immediately without any problem, and I did this because I just tried to put the entire project folder into some random folder but it doesn't allow me, it works with another installers like the visual community and other kwon programs.

Creating Identical Copy of Solution

$
0
0

Hello everyone and thanks for your help in advance.  I need to update the nugget packages in a solution as it appears some of the MVC functionality is not working correctly.  However, since this project is used extensively in production. I would prefer to make an identical copy of the solution under a different name before updating the packages as I've heard some nightmare stories of updating gone bad.  I've read several posts about making copies and opening under another name, but I suspect that is not the best way to handle this.  Any help would be appreciated.

Can't add MaskedTextBox control to active designer

$
0
0

Hi,

I've got an ASP.net web application in Visual Studio Professional 2015, and I can't add the MaskedTextBox control to the Standard tab. I'm right-clicking on the 'Standard' header, and going to 'Choose Items', then checking the box for 'MaskedTextBox'. However, I am then getting the error: "The following controls were successfully added to the toolbox but are not enabled in the active designer". I originally had the target framework set to .NET Framework 4.6, but tried changing it to 4.5. Neither works.

Thanks.

Visual Studio 2015 Update 3 Connecting to TFS 2017 - Visible but no download?

$
0
0

Good morning folks. I have VS 2015 Update 3 installed and I'm trying to interact with a TFS 2017 repository. I can see the repository but I cannot download any of the code. Is this a limitation of being on a lower version of VS than the TFS Server? Is there a work around?

"Please wait while loading" message in DataSet

$
0
0

I installed vs community 15 offline with an ISO image, I had no problem with anything but my DataSet which gives me the message "Please wait while loading" but never opens anything, I don't know if I have to install an addittional component or something else, I already serached on internet but many solutions didn't work.

IISExpress directory is empty for all new MVC projects

$
0
0


I had run vs2013, vs2015, and now vs2017, yet this error cannot go away.
This is the error:
Unspecified error(Exception from HRESULT: 0x80004005(E_MAIL))

I later check the IISExpress directory in my documents directory (C:\users\~useraccount\Documents \IISExpress\config) was empty! In fact the 3 folders in IISExpress directory are all empty,
that is: config, logs, and TraceaLogFiles.
I have tried many solutions here, but none has worked.

How do I solve this?

"Please wait while loading" message in DataSet

$
0
0

I installed VS community 2015 offline with an ISO in a virtual CD, everything works well except when I try to open the .xsd file of my DataSet, right-click in the .xsd file and opens the window with the message "please wait while loading"  and never opens anything. The same DataSet project can be opened in another machine which VS was installed with internet connection.

Idk if some component is missing due to the offline instalation or something else.

Virtual path not available in Visual studio 2015

$
0
0
Hi,

I have a website working fine in Visual Studio 2010 where a virtual path is configured to a folder
Now I am trying to debug the same piece of code(website) using Visual Studio 2015. While running from my development system , the url is coming as http://localhost:6815/ , but it should come as http://localhost:6815/appfolder. Since the "appfolder" is not coming , HttpRequest.Applicationpath is coming as / but I need it to come as /appfolder and because of this my js files are not working as expected.

I tried to add the virtual directory in the .vs application host config file in the solution folder but it did not help.

Pls suggest how to resolve .

Thanks,
kd

Having problem with Motolora MC75A

$
0
0

Hello
I developed which is supposed to connect with a web page supplier a value on a php page in which that page gives data in return, I tested it on my computer it is working very well.
But when I deployed it it doesnt process anywhere that has to do with database.
But If I paste on the browser it does fine but the phone couldnt.

Below is the code

   Public Shared Function StringFromURL(ByVal URL As String) As String
        Try

            Dim sr As System.IO.StreamReader = New System.IO.StreamReader(StreamFromURL(URL))
            Dim f As String = sr.ReadToEnd()
            sr.Dispose()
            Return f

        Catch ex As Exception
            Return "1"
        End Try

    End Function

    Private Shared Function StreamFromURL(ByVal URL As String) As System.IO.Stream

        Dim wReq As Net.WebRequest
        wReq = WebRequest.Create(URL)
        wReq.Timeout = 1020000
        wReq.PreAuthenticate = True
        Dim wres As WebResponse = wReq.GetResponse
        Return wres.GetResponseStream

    End Function

No error but it would never fetch the record from the web for me though if I copy the same url and paste it on the web it will process.

Please who can tell me why?
Thanks

bin Directory in Project Won't Delete After First Build

$
0
0

I just finished upgrading NuGet packages in a large solution I am working on.  The project itself built fine and ran.  However, when I went to run the project a second time it gave several errors on build: (the ... is the path to the project)

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll". Access to the path '...\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Diagnostics.FileVersionInfo.dll". Access to the path '...\bin\roslyn\System.Diagnostics.FileVersionInfo.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.IO.Compression.dll". Access to the path '...\bin\roslyn\System.IO.Compression.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.IO.FileSystem.Primitives.dll". Access to the path '...\bin\roslyn\System.IO.FileSystem.Primitives.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Security.Cryptography.Primitives.dll". Access to the path '...\bin\roslyn\System.Security.Cryptography.Primitives.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Text.Encoding.CodePages.dll". Access to the path '...\bin\roslyn\System.Text.Encoding.CodePages.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Xml.ReaderWriter.dll". Access to the path '...\bin\roslyn\System.Xml.ReaderWriter.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\System.Xml.XPath.XDocument.dll". Access to the path '...\bin\roslyn\System.Xml.XPath.XDocument.dll' is denied.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4825,5): warning MSB3061: Unable to delete file "...\bin\roslyn\VBCSCompiler.exe". Access to the path '...\bin\roslyn\VBCSCompiler.exe' is denied.

Here is my current setup:

Microsoft Visual Studio 2017 Professional (15.2 r26430.14)

Windows 10

Chrome and IE11

What I know is that it does not matter if I debug using Chrome vs. IE11.  The issues is corrected when I open the task manager and kill the VBCSCompiler.exe.  I get the errors on solution "clean".  Anyone know what this executable does or what could be triggering it?

Is there any advantage of using Visual Studio Code over Visual Studio Professional for developing an Angular 4 project?

$
0
0

I am in the process of creating an Angular 4 project, and it seems like everything I see suggests u sing visual studio "code" over visual studio "professional". Am I missing something here in that Visual Studio professional can't have an advantage of some sort for developing an Angular 4 project?

Thanks

Viewing all 3509 articles
Browse latest View live


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