473,320 Members | 1,794 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,320 software developers and data experts.

Problem when Hosting Windows User controls in Webform

I am unable to load the user control from client machine browser if the user
controls referes other custom dlls that I have created. Its working fine if
I access the user control from my machine but it is not working if I try to
access from other machines. Its working only if I copy the referenced dlls
in C:\Inetpub\wwwroot folder. I don't want to copy the dlls in this folder
because it is already in GAC. Why it is not pulling from Gac? how to solve
this problem?
Thanks,

Rajan.
Nov 17 '05 #1
2 1817
This sounds like a security problem to me. But as I don't know how you access your UserControl locally I can only take a guess:

In Windows Explorer try to grant read/execute access to the ASP.NET account and to the IUSR_machineName resp. IWAM_machineName account available on your computer.

HTH,
Axel Dahmen

--------------------------------------------------
"news.microsoft.com" <ra*******************@jda.com> schrieb im Newsbeitrag news:#6**************@TK2MSFTNGP12.phx.gbl...
I am unable to load the user control from client machine browser if the user
controls referes other custom dlls that I have created. Its working fine if
I access the user control from my machine but it is not working if I try to
access from other machines. Its working only if I copy the referenced dlls
in C:\Inetpub\wwwroot folder. I don't want to copy the dlls in this folder
because it is already in GAC. Why it is not pulling from Gac? how to solve
this problem?


Thanks,

Rajan.



Nov 17 '05 #2
Just because they are in the GAC on your server doesn't mean that they are
publicly available to the whole internet. I bet there are things in the GAC
that you don't want to share with the whole world. It would be quite
presumptuous of ASP.NET and IIS to just assume that they should pass along
your server's private files.
Therefore it is necessary to copy them to the public wwwroot folder to make
it clear that you do indeed wish to share these files.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"news.microsoft.com" <ra*******************@jda.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am unable to load the user control from client machine browser if the user controls referes other custom dlls that I have created. Its working fine if I access the user control from my machine but it is not working if I try to access from other machines. Its working only if I copy the referenced dlls
in C:\Inetpub\wwwroot folder. I don't want to copy the dlls in this folder
because it is already in GAC. Why it is not pulling from Gac? how to solve
this problem?
Thanks,

Rajan.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Tim T | last post by:
Hi, I have the need to use dynamically loaded user controls in a webform page. I have the controls loading dynamically, and that part works fine. this is the code used in a webform to dynamically...
10
by: Don Munroe | last post by:
This one has me stumped. I have three web applications running on two different servers. The first that works fine is hosted by a .Net hosting company. Everyone that uses it has no problems...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.