PDA

View Full Version : ASP.NET, UserControl (output path)Build!


cyril.t
September 10, 2007, 18:05:09
Hi,
I've a strange problem with textcontrol server 13.0 / ASP.NET and UserControl. I used this tutorial http://www.textcontrol.com/support/documentation/html/dotnet/n_explorer_aspnet_2005.htm?sid=m1r44tf3odp5hq5pper 4fqi8e3 in my solution.

Basicly I have the web project "Pricer.Web" and the userControl project "Pricer.WebContrat"

The problem occure when I choose the output path ("../myOutputPath") of the (usercontrol) "Pricer.WebContrat" project. When I compiled, the web page appear and it's like it can't found the userControl (no error message).

Know if I rename the folder "myOutputPath" to "test" and then change the aspx code
<object classid="http:myOutputPath/Pricer.WebContrat.dll#Pricer.WebContrat.ucContrat"

to

<object classid="http:test/Pricer.WebContrat.dll#Pricer.WebContrat.ucContrat"
And recompile the website only (not the usercontrol project) it works fine ...

the strangest thing is that all the name of directory that I use in the outpu path are no longer usable. I mean that if I change my output path to something else, and the change the folder name back to "myOutputPath" it will not work ...

I really can't figure it out ... :confused:

thx in advance

cyril.t
September 11, 2007, 14:35:07
Ok, here more test I've done :

If I change all the settings/code to a new folder for the UserControl dll it will work fine until I make any change to the UserControl.

So my guess is that until I change anything, it will not overide the dll, but if it's done .... KO

cyril.t
September 12, 2007, 14:15:51
Forgot to say that I wasn't using IIS, but the default web server of Visual Studio.
Then the support told me to use IIS; results :
It's worst, in any case it dosent work

This is how it looks like when it doesn't work ...(empty picture)
http://img174.imageshack.us/my.php?image=textcontrolerrorwm8.jpg

Björn Meyer
September 12, 2007, 14:18:12
What about the security settings? Did you adjust them for the Trusted Sites as well?

cyril.t
September 12, 2007, 14:29:19
If you are talking about the security level, yes I did it and it's "Full Trust" for "My computer" and "Local Intranet"

cyril.t
September 12, 2007, 14:53:16
I tried one of my test on the sample source code in "Samples\ASP.NET\CSharp\Browser_Tutorial_2005"

The sample was working fine until I changed the BrowserApplication project. Just by changing one property, it provoked the same problem as in my solution

Can anyone do this test with his configuration ? so that I know if it's a TextControl bug, or if it's my configuration that is bad

Thx

cyril.t
September 12, 2007, 15:44:31
Here the SOLUTION !!

Thx to Christopher, there was just a simple thing to do :
- Open the VS prompt Command
- type "gacutil /cdl"

That's it ... it will clean your gac and it works fine for me
If you want to automize that, you can certainly do it with the "Build event" in your project property.