Is there any way to protect the code written in the cs files? Also for the database?
We designed a website and we're considering publishing it and we have to deliver the project as a college project, but we want to protect the code so we can secure it in case we publish it.
We are already considering publishing the site and then giving them its url but it's our last option.
What can we do in this case besides publishing the site?
Thanks :)
To compile your project into a single dll file, you have to use the Publish Web Site function of Visual Studio. I use Visual Studio Express 2012 (version 11), so if you don't have this version, then there could be slight differences.
Click on the "BUILD" menu, then select Publish Web Site
Create a new Profile if you haven't done so.
Click on 'Connection' on the left side menu of the window, and choose File System to save it on a folder on your computer
Click 'Settings'. Open up File Publish Options and select the following:
Click on the 'Configure' link of the second option in the above screenshot. This will open the following window. Here you can play around with the merge settings. I've tried the 3rd and last option on a test website, and the output was similar. The text (testwebsite) in the textbox is for the name of the DLL file.
Click 'Publish'
Related
I have developed an ASP.NET Web Forms Application in Visual Studio 2017(CE). It's the project that I've developed for my college, as an objective to run it as an Intranet Application so that it could run on a IIS on a PC and people can access it over the Intranet. I've tried using the Web Deploy method, generated a Folder and addressed the IIS to the Published files of Visual Studio. But I don't get it to work, and I feel it's not the right way.
I've tried some research but haven't been able to figure out the right context. Can anyone please recommend me the right place of instructions? Or instruct here itself?
Go to Solution Explorer and select the project then right-click the project
Click the Publish menu item then left panel to publish screen will be open like below screen
Select the publish option as IIS, FTP, etc then click to publish button
The publish window will be open then select publish method as File System and type the Target location as http://localhost/Appname and click Next button.
Now, you can see the setting and file publishing options whatever you want to configure the options and click the Save button
Now you can find the application was published URL http://localhost/App in the output window
In VS2015 community ed. I had two web deployment publish profiles set up with different server targets, like "development" and "live".
Occasionally I want to publish a single file instead of the entire web project, and I can right click on the file in solution explorer and select "publish", and it uploads it to the server.
I was able to switch between the two target servers using the configuration dropdown in the top bar:
I was able to switch freely between the two servers and upload to either one. Occasionally, if this didn't work, I could also go to the Build --> Publish menu, select the target, close without publishing, and then publish individual files by right-clicking in the Solution Explorer on the file and selecting Publish.
In VS2017 CE, this doesn't work anymore. No matter what I select from the profiles, I can only publish individual files to whatever target was selected in the previous full publish. I have to perform a full publish to the selected server, to get the target to change to that server.
Is there any way in VS2017 CE to publish individual files on the fly, to a specific target server using web deploy?
Look for the Web Publish Activity tab available next to Package Manager Console, Error List, Output, etc. There is a dropdown where you can select a publish profile.
I have a source for an asp.net project (with vb.net behind). Is there a way to easily create a project for it? I know that I can just copy and paste the source into a blank project, but I noticed that e.g. VS 2013 has functionality "Project From Existing Code". But it seems like it cannot create an asp.net project. I wonder if there is something new that I don't know which would let me accomplish this task.
Thanks.
There is a way to do it but like the comments stated if you want to do it fast then just create the empty project and pull the files in.
Here's how you create the project by using the files.
You can go to IIS and create a website
Give the site a name
Use the file directory that your files are in for the physical path.
Choose a port to display the site on
Open up Visual Studios and select File > Open > Web Site
Make sure Local IIS is selected (if not click on Local IIS box)
Select the website name you just created
I am working for a client who has a number of ASP.NET web sites (as opposed to ASP.NET web applications). Each time I open up one of these websites in VS2010 I have to tell Visual Studio to use IIS Express, and for older websites I have to tell VS2010 that I do not want to convert it to .NET 4.
I can see in the title bar, once the website has been loaded, that a new solution file is created each time, because it displays "[websitename] (NN)", and each time I load the web site NN increases by 1.
It would be handy if I could simply open up the solution file directly, or alternatively change a setting somewhere that tells VS2010 to use the existing solution file for this site.
Does anyone know if this is possible?
Here are the steps required to achieve that:
Add an empty solution by clicking File -> New -> Project -> Other project types -> Visual Studio Solutions
In your solution explorer which should show nothing except the one entry for your empty solution, right click on that solution entry, click Add -> Existing website, then find the existing website in your file system and confirm.
Done.
I'm searching for a free ASP.NET profiler, and I stumbled upon EQATEC Profiler for .NET, but I can't find any instructions on how to profile ASP.NET projects with it. Please post step-by-step instructions or a link with sufficient info.
I'm using Visual Studio 2008 Professional and .NET 3.5.
It looks like they have changed their user interface since Pavel's instructions were posted. Here are the instructions I wrote up for my team. They replace steps 4-8 in Pavel's post.
To profile an ASP.NET application using EQATEC, just select the application’s bin folder in the App Path setting.
Then, click the Build button at the bottom of the form.
Then, load your app and go to the page you want to profile. Go to the Run tab and click the Reset Counters button.
Then, do the action that you want to profile. When it’s done, click the Take Snapshot button.
When that is done, a snapshot report will appear in the bottom list. You can double-click on it to view it.
This should work for ASP.NET web projects:
Compile your project.
Start web application. You can right-click on some .aspx file in Visual Studio and select "View in Browser". (If you start your application later you risk overwriting profiled DLL.)
Start EQATEC Profiler.
On the Build tab browse to bin folder of your project.
Click “App options” button
Set output folder to $(AppDir) only.
Uncheck “Ordinary app”.
Click Build button.
Switch to your favourite browser. Navigate to the page you want to profile. You should get "Profiled app started" entry in Run tab in EQATEC Profiler.
Click "Take snapshot" button. A new entry should appear in "View snapshot reports" list. Select it and click View button.
Edit: Updated instructions according to comment.
From the EQATEC forums:
ASP.NET?
tracing asp.net web application
Profiling web application
You may need to get a compiled version of your site (is there a dll for the site in the bin folder or just the dependencies?).
The easiest way to do this is to publish it. (Just right hand click the site in Visual Studio). Then Pavel's answer will work just fine.