Publish Specific Files Not In Project In VS 2010?
Jun 23, 2011
Is there a way I can publish *.ascx files without adding them to my project?I am trying to make my user controls in Visual Studio 2010 reusable. I have a project containing my user controls called ControlsLibrary solution directory. I copy the ascx files to the web directory upon building the project with build events.I use the command copy "$(SolutionDir)ControlLibrary*.ascx" "$(ProjectDir)controls"
This copies the *.ascx files from G:/SolutionDirectory/ControlsLibrary to C:/Inetpub/wwwroot/WebProject/controlsNow when I publish WebProject, the publish does not copy the *.ascx files from C:/Inetpub/wwwroot/WebProject/controls to my website. This is because they are not added to my project.
Is there a way I can publish *.ascx files without adding them to my project?I know there is a way to publish all files by selecting the option "All files in this project." That includes more files than I want.
View 1 Replies
ADVERTISEMENT
Jun 6, 2012
The situation: when i build my project (or publish) Visual Basic 2010 makes and exe and a couple ddl files. when i run the project with the .exe and the other files the program works perfectly.
My problem: I want to share it with friends and it is just a verry little program ( a n internet radio) so i want it to be 1 .exe with out any other instalation needed so i can easly share it to anyone who wants it. when i make an even smaller program and Debud->build it, it is only 1 exe and no instalation needed. so is there a way to make my program to 1 exe only?
View 4 Replies
Nov 21, 2009
Now I did a clean build, and tried to publish, and I get a lot of errors and warnings that I don't understand.
Error1Cannot publish because a project failed to build.11AllJ Slots
Warning2Assembly 'Microsoft.DirectX.AudioVideoPlayback.DLL' is incorrectly specified as a file.AllJ Slots
Warning3Assembly 'Microsoft.DirectX.DLL' is incorrectly specified as a file.AllJ Slots
Warning4Assembly 'Microsoft.DirectX.DirectSound.DLL' is incorrectly specified as a file.AllJ Slots
Error5An error occurred while signing: Failed to sign binReleaseapp.publish\setup.exe. SignTool Error: ISigned
:Sign returned error: 0x80880253
The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: binReleaseapp.publish\setup.exeAllJ Slots
View 2 Replies
Jun 10, 2009
I have VB project and I tried to use PUBLISH feature.It seems to create nicely some kind of setup program, but the setup program does not ask where to copy files (it does not seem to copy filesto target machine "PROGRAM FILES".)Is this setup program somehow different from usual installers?
NOTE: I want that app files are installed to Hard disk( from USB stick source)Is the signing recommended or necessary? My App is pretty simple, its just using access DB + printer api, should I still sign?
View 2 Replies
Aug 1, 2011
First of all, I wasn't sure whether this was VB.NET or General Developer content... It's not technically about VB.NET code, but it's not very general either since it is specifically about Visual Studio. Feel free to move it if required.A while back I realized that all of my database connection code was getting very biolerplate. had 'developed' my own method of connecting to an Access database and storing the results. Basically, for each table I create one 'Manager' class and one 'Entity' class. The Entity class represents a single record in the database and has properties for each field.
View 9 Replies
Oct 21, 2009
Im working on a way to use a Select statement to set the image of a picture box.
select case currentno
case 1
PictureBox2.Image = Image.FromFile(C:UsersValued CustomerDocumentsVisual Studio 2010ProjectsChiroReportChiroReportChiroReportPnt_GuideLAT CERVlatcerv52.jpg)
[code]....
The Select statement should work fine but the path to the file i want to open doesnt. Id love a way to reference the Pnt_GuideLat Cerv directory based on where my program gets installed on the Hard drive.
View 1 Replies
Oct 6, 2009
I have a finished project which is to be distributed via CD-ROM. The project has been previously built and published without problems but now will not do either. I am getting the following:Cannot publish because a project failed to build.The signer's certificate is not valid for signing.
View 3 Replies
Nov 9, 2011
how if it possible to publish program straight to wep. I asked before another question about publishing and making setup files, that worked well. But now I have finished other of my programs and I want to know can I somehow add it straight to wep site? I have now used suntuubi.com as own wep site, it's not the best but its free :) And I have usually posted a link to download setup from mediafire (or some other) but can I run that program from my page without any downloads? I made that program with windows forms application, do I need to use wbf broswer application? ( if so, can I somehow fastly switch it without making everything again?) And one more, if it is possible in some other wep site than suntuubi.com can you recommend it?
View 1 Replies
Sep 19, 2006
I am trying to publish a project that is 100% working, so that people can use ClickOnce to install it.Despite the project building and running fine, I am unable to publish it. Here is a cut and paste of the error [code]...
View 8 Replies
Mar 23, 2012
I just started using visual basics 2010 and spent a few hours making a project. I saved my project and was given three files. X.vb,
X.Designer.vb and X (a .net managed resource file) (X is the name of the project) How do I open up the project again so I can continue editing it.
View 2 Replies
Jun 6, 2012
how i can include files like : .exe .rar .zip .7z in my project and how to make when i push some button for example to download the selected file.
I will give example: I have put alot files in the project and now the test will be with "Test.exe"In my Form1 i got 1 textbox and 1 button and 1 checkbox (or radiobutton)In the textbox is putted the name of the file "Test.exe" and after him has 1 radiobutton for checking that i selected this one to download to the computer and when i press the button to download the file in a popup displayed form (to display new form with the compression progcess - how much percentes is downloaded).
View 18 Replies
Jan 24, 2012
I am coming to the end of coding this system in Visual Studios 2008 which I took over from a guy who has worked on it for a year.He is not here anymore.He made 9 projects and put them into one solution(screen shot below).I have only published a .NET website for VB and have never published something like this.P3Data is the only one that the publishing tab comes up with. All the other projects the publishing tab does not come up. Why is P3Data bold? How can I publish the whole solution 'P3Data' as one whole entity?
View 5 Replies
Nov 24, 2011
I'm getting desperate with this error: "Cannot publish because a project failed to build."
I've been googling around and was unable to find a solution. I already[code]...
View 1 Replies
Feb 18, 2011
I have tried to publish my program. For the time being, no errors when save or do anything. Then again, when I check the database (Ms Access 2007) that is being used, there is no data in there.
My program is to capture image. The image is captured in put in folder but no data at all in my database. How to solve this?
I have setup Build = content and copytooutputdirectory = copy if newer.
View 3 Replies
Apr 24, 2010
I have finished developing a small, completely useless but working project. It was my first in VB.
What i wouold like to know is how is the best way to get this project online for download?
I dont have a web site or web page, and this project is just a bit of fun (fitness test).
Could anyone tell me the steps I have to take? All i want from it, is to be able to place a series of screen shots explaining the project and then if someone should wish to download it they can.
I dont need prime time internet coverage, just a place to put it online, pref free. Plus, there have been many kind people from this forum who have given me thier free time and effort to help me with code issues, so if I am allowed and any one is curious i will post the site link to here and you can see where your effort has gone to, and should you wish provide positive and negative comments at your leasure.
View 3 Replies
Oct 31, 2009
I have a project in vb.net2008. I use tools of vb6 and excel in it. Now I want to publish my project and use it in other computer that not installed vb6, vb.net2008 and excel programs. What must I do?
View 1 Replies
Aug 31, 2009
Since I'm unable to publish my main project, I've decided to start from scratch to see if I can locate the problem. I created a brand new project, just a simple form and dragged 4 controls onto it (a label, a button, a combo box and a checkbox). There is no code in any of the controls.I published this using Clickonce at url...(I'm aware people may not be happy clicking links). It's set to run only from the webpage. It runs fine on this PC, but on my friends PC and on my spare PC, it simply churns up a page of html error codes.
View 6 Replies
May 20, 2010
I am using VS2010. I have a project that has been deployed for several years. Project builds fine but now suddenly I get the message "Cannot publish because a project failed to build. This program is been updated and published hundreds of times.
View 11 Replies
Dec 4, 2011
I am by no means a programmer, but I was recently tasked with moving our website to a new server, since the website manager quit. The Visual Studio solution was written in 2008. I can compile and run the solution, so I'm sure it's working just fine. But every time I try to publish the solution, either to FTP or to my local hard drive, the .asp webpages get deployed to a sub directory, where on the live site, they are in the root.
View 1 Replies
Dec 14, 2010
I am getting two errors
1) Cannot publish because a project failed to build.
2) An error occurred while signing: SignTool.exe not found.
Regarding #1, I can manually build and rebuild the application without error. I only get this error when I try to Publish.
Regarding #2, I looked in my SDKv3.5Bin directory and indeed the signtool was not there. In fact I only had 3 files (genasm.exe, genasm.exe.config, and hidpi.res). I copied the signtool.exe from the Visual Studio 2005, (file dated 10/26/2006), but I still get the same error saying it can not find the file.
View 17 Replies
May 1, 2009
I made an application which controls the parallell port and i want to publish it so i can install it in other PCs.The app i made uses some libraries or .dll files which i copied manually to the C:/WINDOWS/system folder.When i use the option Build>Publish Project.. i can create an installer but it doesnt install the .dll files.My question is:¿Can i create some sort of installer that includes those files into the system folder, or should i always manually copy them?
View 2 Replies
Oct 24, 2011
Error 1 'Items' is not a member of 'System.Windows.Forms.TextBox'. F:VB 2010Orcas.vb 101 14 Orcas
I need my listbox to display text.
View 3 Replies
Jul 28, 2010
I'm working in this application in Visual Basic Studio 2010 I have a combobox where user select phone model and textbox where a text file is loaded when user select model, I added text files to the project resource because I don't want to put them in files in the root directory of my application
[IMG][/IMG]
what I need is a code to make text box load the text file wich have the same name of selected in combobox for example when user selct : CT-810 in combobox the text file with name: CT-810 must be loaded in the text box and so on for other combobox records
View 2 Replies
Jun 12, 2009
I am creating a project which i will be selling to an organization
View 9 Replies
Nov 15, 2011
I'm using Visual Studio 2010 and I have a Batch inserted into my project and cannot for the life of me get it to run with the program in someone elses computer after publish?
View 7 Replies
Dec 1, 2010
VB.net 2008 build and publish.The application cannot publish as it cannot find the files. I down loaded the MS exe that installs it, but, I need to load them into the same folder as the install package.I looked at the folder: Microsoft SDKs/v6.0Aootstrapper/packages and transferred the folders but they do not contain the files.One of the errors on build is as follows <error> Error32The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35dotNetFX30NetFX30a_x86.msi' in item '.NET Framework 3.5' can not be located on disk. See Help for more information.WindowsApplication1.
View 5 Replies
May 19, 2010
I have a settings.ini file in the root folder of my application. Where in the project settings do I set it so that when i publish the project that this file goes with.When installed the settings.ini file must sit in the same folder as the .exe file.
View 5 Replies
Jan 23, 2012
I have written a simple program in VB 2008 that in a part of it, it loads some images from a directory with a formula like this :
PictureBox.Image = Image.FromFile(CurDir() & "photos�.jpg")
The photos are located in : inDebugphotos this works fine and loads images when I run the program.But after I publish, it can no more locate the files and I receive an Error:
Unhandled exception...
c:users.............................................photos�.jpg
Now I need your kind help please in these 2 cases:
1- Can you tell me how I can correct the formula?
2- After publish, dose the setup file contains my photos folder as well?
View 9 Replies
Jun 14, 2009
I have search system that works like charm: 1> Searches specific folder for text files which contain specific word 2> Puts those text file names and/or paths to listbox However i want it to put (instead of InputStr) the specific line where word is found in text file to listbox.
[Code]...
View 8 Replies
Jun 7, 2012
I'm developing application that is plugable. The plugins are loaded via Assembly.LoadFrom(). In my solution I have 4 projects. A WPF, 2 DLL and another DLL that is a plugin for the app. The plugin project references one of the other DLLs. When I build the Solution and run I was getting an error trying to use the plugin dll because it was expecting an older version of the referenced project. I had to clean and rebuild the plugin project to get it to run correctly.
[Code]...
View 1 Replies