path question in hosting a windows Form control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • xudeutsch

    path question in hosting a windows Form control

    My control should be availabel for several .aspx pages. so i put it
    in a seperate directory and this directory is in the same level as
    those pages. My question is , will IIS browse the directory and find my
    control?
    In the developing environment , it is no problem but when i deploy it,
    there is only .net Runtime(the .net redistributable package) installed.
    IIS cant find it and what is the reason?

    Following is an example, it does make sense and it represents my situation in
    the project

    Mycontrol.dll is in C:\Inetpub\wwwr oot\MyProject\c ontrol
    WebFrom1.aspx.c s is in C:\Inetpub\wwwr oot\MyProject\F irstModule
    WebFrom2.aspx.c s is in C:\Inetpub\wwwr oot\MyProject\S econdModule

    in WebForm1.aspx.c s:
    String nextpage;
    nextpage="<obje ct id="MyControl"
    classid="http:. .\control\MyCon trol.dll#MyCont rol.MyGraphicCo ntrol"
    height="966" width="1280">
    <param name="myFile" value="test.GED " /></object>"
    Response.write( nextpage);



Working...