Click here to Skip to main content
16,020,186 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i made an asp.net based web site using visual studio 2013 ,and want to run that web site in usb flash drive ,
is there any application which might help me regarding this problem?

What I have tried:

when i used tools which are developed for this job like cassini dev etc i got :

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:


Line 16:
Line 17: <system.web>
Line 18: <compilation debug="true" targetFramework="4.5" />
Line 19: <httpRuntime targetFramework="4.5" />
Line 20: <pages>

Source File: D:\deploy\Debug\web.config Line: 18
Posted
Updated 17-Apr-17 13:35pm

1 solution

I would say that this is a bad idea because you''re not running just your code. You need a web server running from the USB drive too. Most of those are going to require installation on the machine in order to even start running.

You're going to need a "portal web server". Take a look at this[^] for some examples.
 
Share this answer
 
Comments
F-ES Sitecore 17-Apr-17 19:42pm    
In addition to that the target machine will need the right version of the framework installed. If you want code to run from a USB stick then asp.net is about the worse choice to make.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900