473,395 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to protect .htm file with ASP.NET?

Hi everybody,
Good morning.

When I associate .htm extension with the ASP.NET framework it is working fine until the time I shut down my system. But, when I restart my sysetm, the entire virtual directory is not opening, and VS.NET is giving the following error.
Error is: Visual Studio.Net Cannot create or open the application. The liekliest problem is that required components are not installed on the local web server. Run Visual Studio.NET setup and add the web development component.

I've associated .htm file extension with ASP.NET like below:
1. Opened Internet Service Manager

2. Right click on Project name -> Properties -> Virtual directory tab -> Configuration tab.

3. Clicked on "Add" button in the mappings tab.

4. Executable: aspnet_isapi.dll file location.
Extension: .htm
Checked (Script Engine)
Un-checked(Check that file exists)

Can anyone please tell where I've comitted mistake?
Aug 7 '07 #1
2 1198
Plater
7,872 Expert 4TB
.html pages are not asp pages. You should be making .aspx pages.

Actually for that matter I don't think you are supposed to use that dll natively like that. I think IIS needs to use it.
Aug 7 '07 #2
.html pages are not asp pages. You should be making .aspx pages.

Actually for that matter I don't think you are supposed to use that dll natively like that. I think IIS needs to use it.
Hi Plater

Thank you very much for your solution. But sorry to tell you that:
Solution is there. I've seen in some books. But, not working properly.

I want the association with .htm files only.

When the backend database is .mdb file (MS Access), we can get that file through url also if we play some cheap techniques.

Does that mean that we shall use MS SQL SERVER only instead of MS Access? We shall find the remedy for the occuring problem. Now I could able to prevent the user from copying the .mdb file through url. Like that only some alternative must exist to protect .htm file also.
I'm searching for that type of solution. :)

Regards,
Ashok Kumar.
Aug 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: siliconmike | last post by:
Is there a way to protect data files from access by root ? I have a data-centered website and would like to protect data piracy from any foot-loose hosting company employee. Any ideas? ...
3
by: SpIcH | last post by:
Hi All, This is all about protecting my data in Executable file. I have developed a program in Visual Basic .NET 2002. I have many questions in mind... please help me to complete my project. ...
12
by: =?Utf-8?B?am9uaWdy?= | last post by:
I wrote a simple VB.NET application that imports and edits CSV files. Now I’d like to “lock” the raw (pre-import) CSV files so these cannot be opened separately. It is not high-sensitive...
22
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
7
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I have an ASP.NET 2.0 web application which contains an Images directory with all website images. How can I prevent other websites from creating img tags with the source as my images? I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.