Assign Virtual Directory To Application Pool?

Mar 14, 2011

i want to assign a virtual directory to application pool using vb.net.how to do this programatically in vs 2008.

View 11 Replies


ADVERTISEMENT

Iis - Create Virtual Directory In .net?

Oct 4, 2011

I want to create virtual directory using vb.net. But while creating permission denied error occurs.If im manually creating virtual directory no error..

View 1 Replies

C# - Difference Between Worker Process,application Pool And Application Domain?

Apr 20, 2012

explain what is the difference between worker process,application pool and application domain?or application domain and application pool are same?

View 2 Replies

C# - Map A Virtual Directory For *.asmx Methods In ASP.Net 2.0?

Jun 7, 2012

A little while ago, I managed to get WebServices to return JSON as well as XML from the code-behind of an ASPX.

Today, I needed to migrate an existing ASMX WebService to return JSON instead of XML (which was accomplished with little fuss). My problem became evident in testing the new method.

In the code-behind for the ASMX, I created a new method to return JSON instead of XML. The method works, in that it returns the expected JSON however the new routine breaks every XML-returning method in the code-behind (they all throw "System.NotSupportedException: The type System.Collections.Hashtable is not supported because it implements IDictionary." which is unexpected because the return types are all defined as XmlDocument).

If I simply comment out the JSON-returning method, the XML-returning methods function normally. Uncommenting out the JSON-returning method breaks the XML-returning methods again.

While I cannot find any supporting documentation anywhere, this behavior leads me to believe that in ASP.Net 2.0, JSON-returning methods cannot co-exist in the same module as XML-returning methods.

This led me to try separating the methods in sub-classes like so:

<WebService(Namespace:="http://tempura.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ScriptService()> _

[Code]....

View 2 Replies

Asp.net - Accessing Image File From Virtual Directory?

Dec 24, 2011

I am trying to display an image from a Virtual Directory that is within my website. If I use the follwoing code the image is displayed on the on the Page:

Dim sourcefile As String = Server.MapPath("~/Common/Images/Flag.jpg")
Response.WriteFile(sourcefile)
Response.ContentType = "image/jpg"

But if I try displaying the image in an Image control useing the following code the image isn't displayed:

Dim sourcefile As String = Server.MapPath("~/Common/Images/Flag.jpg")
Image1.ImageUrl = sourcefile

Here is the HTML/ASP code:

<div id="contentQE">
<fieldset>
<span class="graytitle">The Flag Image

[code]....

View 3 Replies

Importing Class From Bin File Asp.net Virtual Directory

Jul 4, 2011

the problem i met is that i have iis 7 running on my pc.in the root file, wwwroot, i have a website folder, namely [apex] which is a virtual directory. in the folder is a bin folder containing a compiled class with namespace.then in an aspx file, i tried to import the namespace and use the class inside the namespace.

[code]...

the namespace and classname has been checked well, no mistake. but at compiling stage, i got "type is not defined " message. ok,then, in iis 7 control panel, i convert the whole website folder from "virtual directory" to "application" type. the problem goes away!

View 2 Replies

WinForms - Creating Virtual Directory Programmatically As Unprivileged User

Feb 2, 2010

I'm trying to write an application that will allow a non-administrator user to create virtual directories in IIS6. I've tried numerous different ways of impersonating a administrative account but nothing seems to work to create the virtual directory.

Here's some of what I've tried:
dim sDirPath as string = "IIS://remotehost/W3svc/1/root"
Dim de As DirectoryEntry = New DirectoryEntry()
de.Path = sDirPath
de.AuthenticationType = AuthenticationTypes.Secure
de.Username = tbxUsername.Text
[Code] .....

what is the correct way to impersonate another user in winforms application that will allow me to create the virtual directory without the user that's running the application being an administrator on the web server? I know this can be done, IIS manager allows you to use "connect as" checkbox to do it.

View 1 Replies

Programmatically Set An Application Pool To 32 Bit (IIS7)?

May 31, 2011

How can I set an application pool to 32bit in IIS7 when creating it?I'm creating the app pool with the below function

[Code]...

View 1 Replies

Asp.net - IIS Application Pool Crashes When Using Context.Server.Execute?

Apr 13, 2012

I am having an issue with an ASP.Net page I am writing and struggling to diagnose why this page is failing.

I am trying to do this:

Dim st As New StringWriter()
Dim strURL As String = "CourseProgramme.aspx?id=3733"
Context.Server.Execute(strURL, st)
txtNotes.Text = st.ToString()

The aim here is to get the HTML back for the page that has been specified in strURL and then display it in a textbox. However when I run this code it crashes the ApplicationPool in IIS and when I look in event viewer I see this error message:

A process serving application pool 'blueprintdev' suffered a fatal communication error with the Windows Process Activation Service. The process id was '5284'. The data field contains the error number.The strange thing here is that in another page I do this code which works fine:

Dim strDutyStartDate As Date
strDutyStartDate = TextboxDutyStartDate.Text
Dim st As New StringWriter()

[code]....

As far as I can see other than the URL I am passing, which does exist, I cannot see a difference between the two.The page I am developing is in ASP.Net with .Net 4.0 however in the website there are some classic ASP pages. IIS is running at version 7.5.7600.16385 on Windows Server 2008 R2 64Bit.So far I have tried setting the application pool to run in 32bit mode but that causes errors in other areas and the site will not load.

View 1 Replies

Running Pre-Compiled & Non-Pre-Compiled Webpages Under One Virtual Directory

Feb 21, 2011

I've a requirement to have PreCompiled webpages and Non-PreCompiled webpages under same application. For example below is my structure:

/Bin
/Test1 (PreCompiled)
/Test2 (NonPreCompiled)
/Test3 (PreCompiled)

I would like these to have their separate "Bin" folders too if possible at all (I tried using "Probing" but I guess that's not allowed for web apps and defaults to "Bin" folder). If not that then definitely some ability for these to work together under one app/virtual directory because I'm not allowed to create another at any cost :(

View 3 Replies

VS 2005 .Net 2.0 Application Requires 3.5 On Virtual PC?

May 18, 2010

I created a new project added a form and on the form added a button. The click event of the button contains only 5 lines of code. (thats all , apart from this nothing i did to the project)

View 12 Replies

"Application Pool Exceeded Its Job Limit Settings"?

Apr 27, 2009

my code caused "Application pool exceeded its job limit settings"when doing bulk update.My hosting provider told me that my code caused memory exceeded its limit.

[Code]...

View 1 Replies

Get Parent Directory Of Application Directory?

Dec 15, 2009

I need to get the location/name of the directory that contains my application. I know I can get location of my app using My.Application.Info.DirectoryPath but I don't know how to get the directory above this. I can of course mess around with String.Split etc.. but I don't think that is necessary.

View 3 Replies

Dynamically Assign Application Settings?

Jan 10, 2010

I'm trying to reference an application setting from another project dynamically.

Public Function getSetting(ByVal vname)
Dim setting As New My.MySettings
setting.name= vname

[Code]....

View 1 Replies

How To Assign Application Icon To Shortcut

Oct 27, 2011

I'm a VB beginner and trying to create a Setup installer for my first freeware titleThe installer is almost complete.If I execute it, and it will install the application with a Desktop shortcut and a Startup shortcut.

View 12 Replies

Application Runs On Citrix Server But Not On Virtual Terminal Server

Sep 3, 2009

An application loaded on a citrix server executes with no problem. When we try to run the same program files on a virtual server, we get silent errors and we do not even see the application window appear. The program runs for a moment in task manager, but then closes down. BTW other .net apps run on the virtual server. Here is the error we see in the event viewer application logs[code]...

View 2 Replies

Assign User Chosen Hotkeys Whilst The Application Is Running?

May 20, 2012

I have an application which uses hotkeys which are to be defined by the user. It is a combination of 2 keys, either CTRL, ALT, SHIFT as one hotkey and the F* Function keys as the other (e.g. CTRL + F1, ALT + F2 or SHIFT + F8) As stated these are then chosen by the user before a global keyhook is put in place to listen for them and trigger an event. In my app I have all my function keys as follows:

Public Const VK_F1 = &H70
Public Const VK_F2 = &H71
Public Const VK_F3 = &H72

[code].....

View 1 Replies

Assign Value To A Variable In An Application At Runtime Through A Text File And Then Set That Value To Permanent?

Mar 13, 2012

sir, i have no idea how the code will look, but i want it to assign a value after reading from a text file and then store it for further use even if the text file is not there, but without using any external storage like registry, disk, ram. It should store the value in itself and do like this:-

dim variable1, variable2 as string
if file.exists("text.txt")
read the text

[code].....

View 2 Replies

Write An Application That Would Start Minimized To The System Tray And Then Assign A Hotkey To This App?

Jun 13, 2011

We run a CRM package and one of the features that it lacks is the ability to Date and Time Stamp when someone updates an activity. I was wondering if it would be possible to write a vb.net application that would start minimized to the system tray and then assign a hotkey to this app, for example CTRL Shift and K, that would paste a date time stamp into what ever application was focused at the time.

View 1 Replies

How To Add Thread Pool To This

Mar 8, 2009

I have a code that basically grab data from a file, split into array and use a FOR loop to input data into a different file. I want to use thread pool to create multiple threads to do a specific task. For example for the array() I want a thread to read the first item in a array and perform the task, a second thread reads the second item and perform the task, a third thread reads the third item and perform the task, etc. How would I add thread pool to something like:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim data As String

[code]....

View 1 Replies

Assign The Authority And Get A New Form To The New Assign With .net?

Mar 9, 2010

Admin assigns the authority and get a new form to the new assign in with vb.net & access. I am not sure about this,I need a way to do the new form assigned? How?Actually, this project is the admin will assign the authority to a manager, and the manager will get the password to log in. Then, the manager once log in and will get a form to set the rooms who is going to use and date, etc, this is multi-manager to handle the room setting jobs.But, I think, I got stuck, I am not sure how to do the new form, HOW DO YOU ASSIGN THIS NEW FORM FOR EACH NEW MANAGER?????? THIS IS VB.NET WITH ACCESS.

View 3 Replies

Connection Pool Maximum Reached?

Feb 3, 2009

I created a VB.NET web application project. Recently I got the dreaded above error message when a certain amount of web pages have loaded. On a form1_Load event, I do this:

vb Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
MyConnection = New SqlConnection
MyConnection.ConnectionString = CONN_STRING
MyConnection.Open()

[Code]...

View 8 Replies

How To Clear ADODB Connection Pool

Jun 1, 2012

We have a VB.net application using both ADO.net and ADODB connections(both connecting to MS SQl server) Whenever an ADO.net connection throws an expection, we cleared the pools Now if any ADO.connection reopened and everything works fine Is there any way to clear pools for ADODB connection?

View 1 Replies

Implements A Thread Pool With Webrequest?

May 24, 2012

I have about 1000 webrequest created. Each link will navigate to a website and download a picture to place into a picturebox.

The person will then type in what animal is in the picture into a textbox. Then the user will then hit the submit button to send the name of the animal back to the site.

I am going to implement the use of a thread pool to handle the threading portion of those requests.

What is the best method to get my webrequest into the thread pool (listbox, txt file,etc?) and then how can I setup my button to coordniate with the site that is coming out of the pool to the picture box?

My first thought is to create everything on the fly. The picturebox, the textbox, and the submit button, the webrequest to the site for the picture and back again for the result. Something tells me that I will be taking the long way around to get same result.

My second thought is to have a slew of pictureboxes, textboxes, and buttons already on my screen and then when they come out of the pool and into a thread they would assigned a picturebox, textbox, and button if the others are not busy.

View 4 Replies

Read All Txt In A Folder Into A Thread Pool?

May 29, 2012

I am going to implements a thread pool to run my application. All of my content is saved under a folder on my desktop.

Each of the files are in .txt format. How can I read each .txt from a given folder and then put the .txt file into the thread pool / thread queue?

View 1 Replies

SQLConnection - Max Pool Size Reached

Nov 1, 2009

My code read a thousand files, and for each file a connection is made and open to check against a recordset in SQL. After 143 files, the application will stopped and thrown this exception regarding maximum pool size reached. What I don't understand is I'm closing the connection after every file is processed, could it be I'm doing it incorrectly?

Please see my code below. I was only able to make this work by setting max pool size = 3000 in the connection string, since closing the connection does not seem to work.[code...]

View 10 Replies

VS 2005 Impersonate And Stop App Pool

Sep 21, 2010

I've made a tool that update our server by remote and the user that run the program doesn't have the right to stop and start the app Pool, how can I do an impersonate with an admin account and remotely stop/start of the app pool ?

View 1 Replies

Way To Implements A Thread Pool With Webrequest?

May 25, 2012

I have about 1000 webrequest created. Each link will navigate to a website and download a picture to place into a picturebox.The person will then type in what animal is in the picture into a textbox. Then the user will then hit the submit button to send the name of the animal back to the site.I am going to implement the use of a thread pool to handle the threading portion of those requests.My question is this:What is the best method to get my webrequest into the thread pool (listbox, txt file,etc?) and then how can I setup my button to coordniate with the site that is coming out of the pool to the picture box?My first thought is to create everything on the fly. The picturebox, the textbox, and the submit button, the webrequest to the site for the picture and back again for the result. Something tells me that I will be taking the long way around to get same result.

View 2 Replies

What Is The Max Number Of Threads In The Thread Pool

Sep 22, 2009

I've been reading up on multi-threading and just have a couple trivia questions that are ambiguous given my sources:

1) What is the max number of threads in the thread pool? The number 25 is used but I have on reference that says 25 per CPU and another that says 25 per core. I realize that both can be right but before I start making flagrant design decisions I'd like some validation.

2) Let's say I'm in the body of a delegate and I call a function or sub. Does that function/sub remain in the thread or does it revert to the parent thread? I'm guessing the former would be much easier to implement so that's probably what MS did but you just can never tell.

View 10 Replies

Directory Search Application In VB?

Jul 29, 2010

I am working on writing a very simple application for work. We have a network drive with several folders. I need to select a directory and then develop a list of all the directories and their paths. For this I am using VB Forms. I have added a ComboBox but then what control do I use to select the directory? I do not see any controls in the toolbox (like the little icons that show up to create a new directory and such).

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved