How To Use Iecapt.exe File In Project
Apr 28, 2010i want to take a snapshot of my web application , i search for that and i got iecapt sugeetion. i have download it but i dont know how to use it in my project
View 1 Repliesi want to take a snapshot of my web application , i search for that and i got iecapt sugeetion. i have download it but i dont know how to use it in my project
View 1 Repliesi have the project files which consist of some folders and some aspx and aspx.vb files.
I do not have any solution file or .sproj file in it.
so I need open a single file at a time and I can not debug the whole project or any single file also.
Do I have to generate a project file or solution file,
I just wanted to open the whole project file by opening a single file in VS 2008.
so that all the folder structure and the files I can view in solution explorer.
I am trying to configure my web application to send emails to my email address in case of any error . Below is my coding in the web config file, I am following example from a book cuase I AMM A nOVICE TO VISUAL STUDIO AND .NET AND C#. THE NAME OF THE BOOK IS ASP.Net E-Commerce in C#. I am not sure what to put in for the MailForm value since the book did not say could someone tell me .
[Code]....
In my other configuration file under the App_Code folder I have this coding Below:
[Code]....
ok i have a file link not in the vs 2010 project .basically i have a list page in which i want to show the files, one file each for different organization. how can i make a link to that xml file which exists outside the project
View 1 RepliesI am new to wcf. Referring to http://bloggingabout.net/blogs/dennis/archive/2007/04/20/wcf-simple-example.aspx,
I was able to create a WCF project, host it in a console application & call it from a web application, successfully,But my issue is:
1. In the sample the program logic (say HelloWorld method) is residing in the host service! I think the program logic (all the methods & all) should reside in the WCF application & only host applicication is JUST a means to HOST the WCF. Am I correct. If so how can I do this.
2. In some other samples I see the use of an SVC file (.svc extension). How to use it? When I rt click to add a file in my project, I cannot see any svc file!
When I turn on Code Coverage in my test settings, on a project that references the Unity DI container I get the following error:
Cannot initialize the ASP.NET project'{Project Name}'.
The event log specifies the following reason:
Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.
when I reference a assembly. It's reference gets added to the project file in my case ( ABC.csproj)
Also when I take a look at the web.config file there is a section called <assemblies>. And lot of assemblies are added there.
What is the difference between link to the assemblies in the Project file and the assemblies in the web.config file?
i have downloaded .js file but i dont know how to use it in my project.Can anyone tell me how i can use that file?and where i have to write the code for it?in .aspx or markup?
View 9 RepliesI'm confused at how MVC resolves relative addresses. I have a PDF that I would like to load from the controller, the PDF is in a folder called Forms in my MVC project. How can I reference the filepath from my controller?I've tried a few things but I am stumped,
View 6 Repliesdoes someone know the utility/procedure for converting an ASP.net project containing multiple files into one executable (.EXE) file?
View 3 RepliesMy project is completely built on asp.net with codebehind vb.net, is it possible to add a class library .cs file to my project. since it is based on c sharp will i be able to add it.
View 2 RepliesI would like to include a word document, and unused program files in a folder as part of my project, but I don't want it compiled, etc. How is the best way to do this?
View 1 RepliesI have web project and window project.Web project reference from window project and I want to debug from web project to source code in window project. Where do I setup to look for debug source code in window project.
I copied all source code from another computer. but on another computer can debug just fine.All that different is where the source file is located. so I think it should have some config in studio that tell where the source file is.
I am using VB.Net/ASP.Net 2008 and I have a solution with 3 projects:
1. DAL
2. BLL
3. MainWebProject
anyways because it's a Web Application Project (not a web project) I had to set it up so I could access the Profile using Imports System.Web.Profile in the MainWebProj but I can only access the profile in that project.
anyways I need to access the Profile in the DAL also, and I figure since I can import the Profile in my MainWebProj there must be a way to also import that into the sister project, DAL.
My Issue: I can import a class in Project A but not Project B. Is there import syntax so I can also import the namespace in Proj B?
How many web.config file does a solution/project can contain?
View 6 RepliesI have a license file that I need to access at runtime in order to create pdf-files. After I have created the in memory pdf, I need to call a method on that pdf to set the license, like this:
pdf.SetLicense("pathToLicenseFileHere");
The license file is located in the same project as the.cs-file that creates the pdf, but is in a separate folder. I cannot get this simple thing to behave correctly, which makes me a bit sad, since it really shouldn't be that hard. :(
I try to set the path like this:
string path = @"ResourcesFile.lic";
But it just isn't working out for me.
Edit:
A bit more info. I should mention that this is a web service which returns pdf:s as byte[]. The web service creates the pdf:s, and during this creation process I need to set the license file so as to remove any watermarks from the pdf document. The pdf itself is not saved to disc, and only needs to access the license file once when it is created.
I have a utility project that has an "XML" folder with two XML files in it, this project is then referenced by an ASP.net web project. I was wondering do you have to set some sort of build option to place the folder in the BIN of the website, or is there another approach to referencing these two files from the web project?
View 1 RepliesI have an ASP.NET project and want to include an XML file inside the project to store some relatively static data. To do this I selected "Add File" from the solution context menu and picked my XML file. Having added this to my project, I then wanted to load the XML from within code. I tried the following:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("MyData.xml");
I also tried:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("~/MyData.xml");
But it seems to be looking in the current directory (i.e. my VS2008 directory) and not the project. Am I going about this wrongly? Is there a way to simply reference a resource that's embedded in the project like this?
I have .dll file on Desktop, I imported it to References my ASP.NET application - but when I delete this file from desktop I have error in my ASP.NET application. What is the solution ?
View 4 RepliesWe are using entity framework and we have two projects with two different edmx files. We need to keep both tables in same database and we want to extend funtionalities of one project by the other one. Is there a way to extend edmx files or is there a better solution for this?
we have 3 edmx files in three class libraries.
1.person class library(Core) with core.edmx-Basic details related to a person(name,email ...)
2.CV Claas library with CV.edmx wich have CV related data(Experiance,skills... )
3.Customer Relationship management system(CRM) which have customer data(sales data...)
Then we want to use core class library edmx file(Core.edmx) with cv.edmx (basically cv tables should be able to use tables from core tables) . Same way we want to use the core.edmx with CRM.edmx for the 3 rd project
I have a created a solution using visual studio 2008 and added a new project namely "test".
In this project i added a folder namely "code" and in this folder i added a class file "class1.vb".
But i am facinng problem when i am going to create object of that class1.vb in default.aspx.vb page
i want to access my class1.vb methods.
In ASP.NET MVC Application I would like to document my Views, so that I can generate a documentation (using NDoc). Since Views do not have a code behind the documentation should go somewhere into the View directly. I also do not want to generate code-behind file for each View in the project
Is there a tool/workflow/configuration that would allow me to extract inline documentation comments from aspx files (Views)
[code]....
I have a web application project which contains few resource file. i am planning to create another one project for Mobile where i should be able to use the same resource files.
some best practices to separate the resource files.
i'm trying an example by trying to creating two projects in one solution to seperate logic and UI. so let's say test.logic and test.ui
in test.ui i have a page called lets say contact me. in the code behind for this page i want to call a method that belongs in a class called processData in test.logic
in contact me cs i tried something like:
namespace test.ui
{
using test.logic
//code here
}
but that does not work as class/method not shown in intellisense.
I want to import DLL file in my web site project. I have dll file "my.dll" in folder C:DLLDir and I'm using the code :
[DllImport("C:\DLLDir\my.dll", EntryPoint = "Out32")]
This works ok. But I want to use relative path (web site root path) . I'm trying to put "my.dll" in "bin" or root folder and I'm using the code :
[DllImport("my.dll", EntryPoint = "Out32")]
but I'm getting the error: Unable to load DLL 'my.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)