I recently downloaded VS 2013 Express for Web. it works fine. I can build web sites with no problems. I thought I downloaded the complete version. I also selected all when I did my install. Now I want to use SQL Server Reporting Services. I downloaded SQL Server 2014 Express. I can create tables, stored procedures, etc with no problem. I can also access my db from my ASP.Net website projects. But I don't know how to start using SSRS. Can someone list the step by step instructions I need to do this. I use SSRS using the Business Intelligence VS 2005 now. But I can't seem to figure out how to set-up and use BI for 2014. Any help would be appreciated.
How to make Business Intelligence available for VS 2013 Express
Package manager console fails to initialize
Whenever I try to open package manager console in Visual studio 2013 update 3 I get this error :
Cannot load Windows PowerShell snap-in Microsoft.PowerShell.Management because of the following error: > Could not load file or assembly 'file:///C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Microsoft.PowerShell.Commands.Management.dll' or one of its dependencies. The system cannot find the file specified.
I have uninstalled/Re installed powershell. It didn't change anything. any ideas?
Thank you.
AUTO_INCREMENT with Id as the Primary Key and Unique
I have a table with Id as the Primary Key and Unique.
I want to make the Id an AUTO_INCREMENT.
How would I do that in VWD 2010?
In VWD 2013 you just have to type in Identity(1.1) in the SQL Command Line but you can not do that in 2010.
No default.aspx
Hi,
I'm a total beginner to ASP.NET. I've installed VS2013 and when I create a new web site it does not create the default.aspx and default.aspx.vb pages. If I attempt to create a different type of new websie like a forms website it comes up with an error that it cannot find the template or something.
I've reinstalled twice now because the first installation did not work but the second time there were no errors - I reinstalled just because it appeared there were files missing.
I'm already hating VS2013
load testing user authentication
I have read something about vsts load testing: http://blogs.msdn.com/edglas/archive/2010/03/24/web-test-authoring-and-debugging-techniques-for-visual-studio-2010.aspx
Have one question, we need to perform a web load testing on the asp.net application. Instead of generating 100 virtual users, how can we load 100 users and password form users table programatically? the asp.net app uses form authentication.
Any advice will be appreciated.
Thanks!
Visual Studio 2013 Professional + Update 3 (Aug 4, 2014) High CPU with IIS/IIS Express
Hi all,
I have already search on the forums in regards to this matter and I have already installed the VS2013 Update 3 as recommended by the issue is still the same.
I have previously worked on the same IIS project within the VS 2012 professional and there is no high CPU issue at all. Now when I changed to Visual Studio 2013 Professional, the IIS or IIS Express has a 100% CPU usage until I kill the w3wp.exe process and then the CPU usage would go down. When I go into debug mode, the issue starts all over again. There was never such an issue with VS 2012 Professional. There was no changes to the project I just open the Web Site Project in VS 2013 and press F5 for debug then the CPU usage goes all the way up again.
Also I can't revert back to use VS 2012 because the trial has expired and Microsoft Store online doesn't sell the VS 2012, so I had to buy the VS 2013 Professional.
I have also tried the link http://www.iis.net/learn/troubleshoot/performance-issues/troubleshooting-high-cpu-in-an-iis-7x-application-pool but it doesn't show what is the error or what function is hogging the CPU. Can any one help me? Thanks.
Regards,
Kengie
How can I convert/export multiple selected files into one single pdf file
I am trying to create a code that will convert multiple selected files to one pdf file . Currently the code exports the selected files in to a zip file. But I want to open all the selected files in one single pdf file .
For your assistance I am providing the code that exports all files into one zip file.
In the code below there are two table mentioned. one is document and another is vacancyapplication. In the document table all the files are stored guid is the unique id in the document table.
Imports System Imports System.Web Imports System.IO Imports System.Collections.Generic Imports Ionic.Zip Imports System.Linq Imports NLog Public Class download_bulk_cv : Implements IHttpHandler Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim _logger As Logger = LogManager.GetCurrentClassLogger() Dim vacancy = New Vacancy(context.Request("v")) context.Response.Clear() context.Response.ContentType ="application/zip" context.Response.AddHeader("content-disposition", "attachment; filename=" & vacancy.Title.Replace(" ", "_") & "_" & Now.ToString("yyyy-MMM-dd-HHmmss") & ".zip") Dim files = New List(Of String)() For Each docPath As String In From row As DataRow In DB.GetData("select guid, originalfilename from document where id in (select candidatecvid from vacancyapplication where id in (" & context.Request("a").ToString() & "))").Rows Let guid = row.Item("guid").ToString() Select HttpContext.Current.Server.MapPath("~/documents") & "\" & Left(guid, 1) & "\" & Right(guid, 1) & "\" & guid & "." & System.IO.Path.GetExtension(row.Item("originalfilename")).ToLower().Substring(1) If File.Exists(docPath) Then files.Add(docPath) ''_logger.Info(docPath) End If Next Using zip As New ZipFile() zip.AddFiles(files.ToArray(), "CVs") '.AddFile(docPath, "CVs") zip.AddEntry("info.txt", files.Count.ToString.ToString() & "CVs archived", Encoding.Default) zip.Save(context.Response.OutputStream) End Using context.Response.End() End Sub End Class
The code below converts a single file into pdf. But i need to convert multiple (selected) files into one single pdf.
Public Class candidate_document : Implements IHttpHandler Private TheContext As HttpContext Private FileSent As Boolean = False Private _document As Document Private _application As VacancyApplication Public Sub ReturnDocument() ''convert cv If File.Exists(Document.PathOnDisc) Then If Document.OriginalFileName.Substring(Document.OriginalFileName.LastIndexOf(".") + 1).ToLower <> "pdf" Then Dim path As String = HttpContext.Current.Server.MapPath("~/documents") & "\" & Left(Document.Guid, 1) & "\" & Right(Document.Guid, 1) & "\" & Document.Guid & "." & System.IO.Path.GetExtension(Document.OriginalFileName).ToLower().Substring(1) Dim epath As String = HttpContext.Current.Server.MapPath("~/documents") & "\" & Left(Document.Guid, 1) & "\" & Right(Document.Guid, 1) & "\" & Document.Guid & ".pdf" If Not File.Exists(epath) Then Converter.ConvertDocument(path, epath) End If End If ''end Convert Else Throw New InvalidOperationException("Unable to locate file!") End If If System.IO.File.Exists(HttpContext.Current.Server.MapPath("~/documents") & "\" & Left(Document.Guid, 1) & "\" & Right(Document.Guid, 1) & "\" & Document.Guid & ".pdf") Then HttpContext.Current.Response.Clear() HttpContext.Current.Response.ContentType = "application/pdf" HttpContext.Current.Response.TransmitFile(HttpContext.Current.Server.MapPath("~/documents") & "\" & Left(Document.Guid, 1) & "\" & Right(Document.Guid, 1) & "\" & Document.Guid & ".pdf") Else Throw New InvalidOperationException("Document could not be located on the disc.") End If End Sub Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Try TheContext = context TheContext.Response.Expires = 0 If LocalHelper.UserEmployerID > 0 Then ReturnDocument() Else TheContext.Response.ClearHeaders() TheContext.Response.ClearContent() TheContext.Response.ContentType = "text/html" TheContext.Response.Write("<h1>Access Denied</h1>") TheContext.Response.Write("<p>You must own the document or have other reasons to access this file.</p>") End If Catch ex As Exception TheContext.Response.Clear() TheContext.Response.ContentType = "text/html" TheContext.Response.Write("<h1>Error Occured</h1>") TheContext.Response.Write("<p>" & ex.Message & "</p>") End Try End Sub End Class
I am new with vb.net . I appreciate your kind assistance
Visual Studio Express 2013 for Web - Could not find a part of the path
I've just created a new Web API application/project in Visual Studio Express 2013 for Web and I'm trying to check in (to TFS source control) the initial files that VS automatically generates when a new project is created. There are 745 'changes' to include. The project will not save to TFS because of the following error:
c:\users\myadmin\documents\visual studio 2013\Projects\TestProgram\packages\Antlr.3.4.1.9004\Antlr.3.4.1.9004.nupkg: Could not find a part of the path 'c:\users\myadmin\documents\visual studio 2013\Projects\TestProgram\packages\Antlr.3.4.1.9004\Antlr.3.4.1.9004.nupkg'.
How can I fix this? I want to check in all the files that VS automatically generated when I created this new project.
Path of image control
I save image in folder and save its name in DB
I try to bind this image on asp image control. this control be visible in some cases only.
the problem is image does not displayed, display border of it only.
Note: in Inspect element: Image control sees the full path of image.
<asp:Image runat="server" ID="img_ItemImage" Height="60" Width="60" ImageUrl='<%#"~/admin/InvenImages/" + Eval("InvenItemImage") %>'/>
Image img = img_ItemImage;
img.ImageUrl = HttpContext.Current.Server.MapPath("~/" + "admin/InvenImages" + "/" + hid_ItemImage.Value);
img_ItemImage.Visible = true;
CS0014: Required file 'alink.dll' could not be found
Hello to everyone.Im using visual studio 2013 and also 2012 .But I started to get this error no matter which project Im working while trying to build.I also create a new empty asp.net web site and build ,but again getting this error.I reinstall vs and also frame work 4 and also framework 2,3.5. And also copy that dll from another pc (which have same installations) ,and copy to my framework folder but still get same error.This drives me crazy :) Any helps is appreciated,thanks
Difference between Visual Studio version
Can anyone help me about the difference between Visual Studio 2010 and Visual Studio 2012 in the development of Web Forms asp.net 4 Applications ?
How many features have been lacking in VS2010 rather than VS2012 ?
Thank you in advantage
how can i add the reference to a third party library when the web application is already in the webserver
I am working on a web application built with vb.net and asp.net. the web application is already stored in the web server. I am creating some new features in the web app.
If have to incude new third party library (e.g; itextsharp etc) in the project how can i add reference to the dll files in the web server?
in the webserver there is visual studio editor to edit the webapp. When there is a change in file we just update the file by replacing with new file.
will it work if I just copy the dll files in bin folder (in the web server)
please suggest how to deal woth it.
i am a new learner in vb.net and asp.net . So please forgive if my question sounds stupid. but please advice with right suggestion.
double clicking button control now does to end of procedure instead of beginning
Normally, double clicking a button in the design view of a Visual Basic ASP.NET web app takes you to the top of the associated sub or function in the code behind.
Starting a few days ago, it now always goes to the last line of the sub or function.
JQuery Intellisense Error in Visual Studio 2008
Hi all.
I m using Visual Studio 2008 SP1. also i have updated the patch for Intellisense for Visual Studio 2008. still when i add JQuery .Js File
the intellisense not working and i m getting the error: Object doesnt support this property of method. Can anybody tell me what else i do to rectify the JQuery Inttellisense Error?
Thanks in Adv.
Where is the ASP.NET Configuration icon in Visual Studio 2013
Where is the ASP.NET Configuration icon in Visual studio 2013?
syntax used to call session id in sql query
syntax used to call session id in sql query in the next page using visual basic
Session("Reg_number") = txtreg.Text
The query
Dim SqlCmd As New SqlCommand("SELECT * from hsPersonalData WHERE Reg_number = (session id) ", connection)
Need help with API tutorial on asp.net
Hello,
I'm working through the tutorial on http://www.asp.net/web-api/tutorials/hands-on-labs/build-restful-apis-with-aspnet-web-api
I get to the place where it says to add the code:
public string[] Get() { return new string[] { "Hello", "World" }; }
So far so good. But it says that 'string' is not a correct variable, and as the next step is run (F5) it falls over saying " Could not load type 'ContactManager.WebApiApplication'."
OK, so what have i goofed?
Which 64 bit compiler for a DLL called from ASP.NET?
My next online app would be best written in 64 bit. I plan to make a 64 bit DLL of the functionality, then interface it with C#.
Which compiler best supports this? I've got VS2010, but it doesn't automatically or easily compile 64 bits, so I was wondering if buying a new compiler would speed things up for me...? VS2013?
And are there any gotchas with 32 bit vs 64 bit and ASP.NET?
Why is ASP.NET so slow?
I am guessing here as I'm no hardware expert or something. Here's the situation. I have an asp.net application and when I run it in the environment it seems to take so long to do much of anything.
Whether in firefox, chrome, internet explorer, all give me this 8 to 11 second waiting period before actually doing my code. it might be me, my setup, my compilation options, I don't know, but to me a grid view that handles insert edit and delete, with combos inside the rows that need to refresh themselves based on the previous columns is no 8 to 11 seconds per control job even on the worst asp.net setups I do believe. lol.
Any help is definitely welcome at this point.
Occasional False Start with VS2013
Two days ago I upgraded from VS2012 to VS2013. I'm developing an ASP.NET 4.0 Web Forms app.
I've noticed with VS2013 that about 10% of the time, when I press Start in Debugging Mode, the browser appears for a moment but then closes a second later. When I then press Start again, everything runs normally.
This NEVER happened with VS2012. Is this a known bug in VS2013 or is something else causing it that I should be aware of?
Robert