How To Create CAB File And Use ActiveX / Ocx On Webpage In VS2008
Sep 16, 2010
I have spent last couple of days on this subject but no luck :)
I want to achive following using VS2008/C# -
1. create a cab file using existing AciveX/ocx control,
2. use the ActiveX on ASP.NET WebForm.
3. deploy the app and cab file on web server
4. Test/verify that the cab file get downloaded, and IE can use my ActiveX/ocx
I found one nice tutorial on this but it is with VB.Net (not VS2008) -
[URL] (the problem I get with VS2008 - can's see Authenticode Signing check box, or add ActiveX to Toolbox).
View 3 Replies
Similar Messages:
Dec 23, 2010
I need a multiple file uploader dialog,that means I can able to select multiple files at a time in file upload window.How can I achieve this task? I gone through Google and I came to know that we can achieve this using silverlight and flash plugins,but these are not recomandable in my application. Is there any open source(i.e free) ActiveX controls for Multi file Uploader? Is it possible to create own ActiveX control to achieve this task.
View 4 Replies
Jan 16, 2010
Im working on windows 7 operating system now and having a few issues with the sql server. I had visual studio 2005 and sql server express 2005 installed on my machine 1st. i then got visual studio 2008 and installed sql server express 2008. when i try and create a new database in the App_Data file (sql server database *.mdf file) i get the following error message;
"Connections to sql server files (*.mdf) require sql server express 2005 to function properly. Please verify the installation of the component or download from the url: http://go.microsoft.com/fwlink/?LinkId=49251"
I was just wondering what way i could create a *.mdf file looking into sql server express 2008. I also found out that sql server express 2008 management studio is not compatible with windows 7 yet..?
View 8 Replies
Mar 4, 2010
I have developed a web application (ASP.NET Web Forms). One of my customer has very restrictive policies. When he accesses the web page, IE shows this message:
Your security settings do not allow Web sites to use ActiveX controls installed on your computer. This page may not display correctly.
As far as I know, we don't use ActiveX controls on our page. I did a "View > Souce" and did not find anything suspect.
How can I find what part of my page refers to an ActiveX. The application uses jQuery and a few jQuery plug-ins. Is there a tool/add-in like "Fire Bug" that I can use to list the ActiveX controls referred on a page?
View 1 Replies
May 3, 2010
I'm curently developing web application which uses standard form authorization and, of course, server session objects (quite classic app). Now I'm developing client side component, which base functionality is to allow users to acquire tiif/jpg/pdf document from scanner (client side) and send it to server. Because of scan complexity and need for very user friendly interface i decided to implement Activex object (object written in .net 2.0). Until now all was ok, so I have got activex which succesfully registers and scan documents on client - but i cannot manage with sending files to server.
My concept of sending files was like that:
- preparing Upload.aspx web page wich is used for reciving files sended by POST method and saving files in database (of course to proper save in database i need some current user context information) - in ActiveX i decided to use System.Net.HttpWebRequest object to prepare and send data the problem was third point:
- i thought that in-proc activex object would "derive" web session form web page activex is placed on - but i was wrong (or i made it wrong). Whenever i send request form Activex, in response i got login.aspx page - so it looks that new session is created and new authorization is needed.
I was trying to pass to my Activex values stored in "ASP.Net_SessionId" and ".ASPXAUTH" cookies, as i found that these are the values identifying session and athorized user - but with no luck.
I think, that becaause HTTP is stateless protocol all information needed to "connect to/share" existing session on IIS server need to be included in request data, so there must be way to add these information to request sended from my activex.
I would be very grateful, if someone could provide me information what should i add (headres/cookies/etc... ?) to my request data so it could share session from "parent" web page.
View 1 Replies
Jul 12, 2010
Is it possible to create a sitemap.xml file which is dynamic and is actually created each time it is requested using c#
The obvious thing to do would be to call the file sitemap.aspx and have it return XML, but it has to be called sitemap.xml and look like an XML file (headers etc) to the requester.
View 1 Replies
Jul 30, 2010
Currently I have written the Activex Control for RFID USB reader and calling that one in ASP.NET web application. The Activex Control is working fine when I will give the full trust permission for particular IIS URL in
1. Open Control Panel > Administrative Tools > .NET Framework 2.0 Configuration
2. Expand Runtime Security Policy > Machine > Code Groups > All_Code
3. Right Click All_Code and click New...
4. Create a new code group, I named mine MyProject_FullTrust_Zone
5. Choose the URL condition type and specify the path on the network where the apps will be deployed.
6. Choose Use Existing permission set, and set it to Full Trust.
Alternative way of giving permission for an Activex Control is
1. Open Visual Studio Command Prompt
2. Run the command caspol -machine -addgroup 1. -site <ip address> FullTrust Doing this it works fine.
Whenever my web site will open, it will ask the user to give permission for the Activex Control using Allow or Cancel Button in browser. This type of functionality I have seen some web site which takes input from the user to allow the ActiveX Control.
View 1 Replies
Apr 28, 2010
I have been working on an asp.net web application that calls a third party COM application through createObject method. The application works fine (gets initialized) in Win XP but I am having problems getting it to work in WIndows 2003. I get the "Cannot create ActiveX component" error.
The website works fine in visual studio - the application launches fine. The references added were the interop assemblies which were packed inside a tlb file.
I am aware of the change in default user - ASPNET for iis 5 and Network Service for IIS 6.0. Also I have changed the default permission levels in DCOM config for not just this COM application but all the COM applications by changing the default COM security properties of the computer. I gave almost every user the permissionto launch and access remotely including Network service and everyone.
The other thing I have done was to test it out in IIS 5.0 isolation mode but couldn't get the application work - still same error.
The final thing I have tried was to use IIS 6.0 itself but change the application pool to local system and I am just stumped that even this didn't resolve the error.
Another thing to add is that I cannot register the tlb file using regsvr32.exe command as it is not a dll.
View 4 Replies
Jan 19, 2010
try to create a activex. if i use printdocument class it will throw security exception on client side. how to assign print permission for a assembly?
View 1 Replies
Nov 7, 2012
So I have written as part of an application some code that on my clients website pulls some information from SQL server and uses it to create a new file using a Word with bookmarks as a template. It works fine on my development machine, but not on my production server with the error: "Cannot create ActiveX component.: Word.Application". Now I have been approaching this as if it is an issue with Office, but it occurred to me that this might be another issue. Maybe some security issue with ASP.NET? My original thought was it was some kind of compatibly problem as I had Office 2007 on my machine and 2010 on the server.
Code:
Protected Sub btnCreate_Click(sender As Object, e As System.EventArgs) Handles btnCreate.Click
Dim objWord As Object
Dim objDoc As Object
Dim strContractFile As String = "~Documents" & txtContractFile.Text
Dim strContractFilePath As String = Server.MapPath(strContractFile)
[Code] .....
View 5 Replies
Nov 9, 2010
I want to create a web page that will allow user to create a web page. The admin user should be able to give access rights to the controls which the user will place on his web page.
View 3 Replies
Mar 3, 2010
My name is Christian, I developed a web application in VB.NET 2005 that calls a Microsoft Word Application, it works fine in my develop's machine but when I put all of the code in production's server I received the following error:System Error: Cannot create activex component. following I put the code. If somebody knows how to solve this,
Dim oWord As Microsoft.Office.Interop.Word.ApplicationDim oDoc
As Microsoft.Office.Interop.Word.DocumentDim oTable
As Microsoft.Office.Interop.Word.TableDim oPara0
As Microsoft.Office.Interop.Word.ParagraphDim oPara1
As Microsoft.Office.Interop.Word.ParagraphDim oPara2
As Microsoft.Office.Interop.Word.ParagraphDim oPara3
As Microsoft.Office.Interop.Word.Paragraph, oPara4
As Microsoft.Office.Interop.Word.Paragraph
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
oPara0 = oDoc.Content.Paragraphs.Add
oPara0.Range.Text = "Hola"
oPara0.Range.InsertParagraphAfter()
View 6 Replies
May 25, 2010
I'm a beginner i work with visual studio 2005 and ajax 1.0
i have a web page with a control input i must to check the weight of the file but in javascript WITHOUT ActiveXObject !?
View 3 Replies
Jan 16, 2010
how do i create a rating control in asp.net in vs2008
View 4 Replies
Apr 26, 2010
WARNING - Absolute beginner here with VS. I'm expecting a steep learning curve, but I'm up to it! I'm trying to create a website with membership/login. Followed the above walkthrough MANY time, and been very careful with the username and password entered, but I keep getting the message that the loging failed. The asp application name is "Membership" This is the whole thing, automatically created following the walkthrough, apart from adding 2 members - yes, did go to the memberpages folder at the set rules page.
Solution Explorer:
Solution 'membership' (1 project)
- //localhost/membership/
- App_Data
- ASPNETDB.MDF
aspnetdb_lpg.LDF
- MemberPages
web.config
- Default.aspx
Default.aspx.vb
- Login.aspx
Login.aspx.vb
webconfig
aspnet_Membership: (2 members)
PasswordFormat = 1
The ApplicationId for the 2 members is different - should it be?..........
View 2 Replies
Aug 19, 2010
I 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?
View 2 Replies
Jan 27, 2011
I am trying to connect linq to dbf file. I am using VS2008 on windows xp with sp2. For most part I can create a connection and see the tables in the server explore, but when I try to drag and drop a table onto the .dbml i get "The selected object is an unsupported data provider". I have been trying to use FoxPro to connect to the DBF. In VS in the Data Connections I go to modify the connection and hit test and the connection says success, but no tables appear.
View 1 Replies
Jan 30, 2010
I am very new to ASP.Net and Visual Studio 2008. I am attempting to run a website on my Windows 7 Enterprise usig IIS7. When I load the web.config file in the VS2008 editor I get several errors/warrnings. Each starts with "Could not find schema information for the element 'TinyMCE' or it specifies one of the attributes.The section of code looks like this:
<TinyMCE installPath= "script/tiny_mce" mode ="src"
<globaoSettings>
<add Key ="relative_urls" value ="false" />
[code]...
View 4 Replies
Nov 2, 2010
I have an intellisense problem in VS2008.I use code-behind, and though I can declare ASP elements in the aspx file, it's as if the code can't see them.The pages run OK,but when I type anAspLabel and then '.' for example, intellisense does not pop up the methods and members for this asp label.
I've tried the reset option in Options > Text Editor.Intellisense works fine if the class instance is declared in the code behind file,but it won't recognise web controls declared on the aspx page.
View 3 Replies
Jun 16, 2010
Is there a standard way to create unique web page address in ASP.NET? I'm sending surveys to customers and will be including a link to the web page. For example:
http://www.mysurveypages.foo/survey/UniqueID
I would then customize the survey based on who I sent it to. I know it can be done by passing in a unique parameter to a page but I curious about doing it this way.
View 5 Replies
Sep 15, 2010
I wont to create a print preview asp.net web page.
View 2 Replies
Feb 23, 2010
Using Visual Web Developer 2008 Express Edition, .Net 3.5 Framework, Windows XP
I am trying to create the home page as in the below diagram
MYWEBPAGE
HOME | SUBSECTION TO BE DISPLAYED IN ALL |
ABOUT US | SUBPAGES |
HOBBIES | |
CONTACT US |__________________________________|
Doubt1
Should this be designed in master pages, i.e. to set a content tone for all the other pages
Doubt2
I am unable to subdivide the page i.e. if i entered a hyperlink HOME on the left side then it takes up the whole row and there isnt anything on the left side i.e. visual web developer tools that allows a sub section to be added to a whole page.
View 8 Replies
Oct 27, 2010
I'm trying to create a web page which to be used on a touchscreen monitor and need to do data input for the webpage thru on screen numeric keyboard (on the web page it self). When user touch on the numeric keyboard, find the focus of the textBox. And show the number.
View 5 Replies
Jun 1, 2010
I want to create and add a linkButton server control to my web page, How can do i do?How can i set its specific properties?
View 7 Replies
May 19, 2010
I'm trying to create a webpage that allows the user to click a button and it will open up a folder on their local hard drive. I've tried doing this in html and javascript, but from what I've read I don't think it is possible (reguardless I want to do it in asp.net so I can learn about it). However I was able to open up a folder when the page loads with asp.net using C#. My problem is that I cannot figure out how to get it to run when the user clicks a button or a link. How can I make the C# CodeBehind run when the user clicks a button?
View 17 Replies