| Author |
Message |
Shridhar
Guest
|
Posted:
Wed Jan 12, 2005 12:09 pm Post subject:
webpart classresources error! |
|
|
Hi
We have a problem of placing the class resource files. As our webpart is
complext webpart which is deal with database through webservice.
We have created a usercontrol web application. and through javascript
LoadService we get data. now, if we create this usercontrol to webpart, where
do we need to place the class resources. We have followed the msdn document
which says you need to place in wpresouces of SPS if the assembly is placed
on the bin directory. (I hope including aspx pages,ascx files javascripts,
images should be placed in Wpresources)
we are getting error after placing the webpart classresources in wpresources
as assembly refers as webapplication/images/myimage.gif, and now, its
'wpresources/images/myimages.gif' somehow we could manage the image folders.
but javascript loadwebservices still gives error since we place in in
wpresouces.
I have tried with
LoadControl('/wpresources/webapplication/usercontrol.ascx') and built also.
still gives problem.
Can somebody gives clue on how to fix this issue?
Thanks,
Shridhar |
|
| Back to top |
|
 |
Amar Galla
Guest
|
Posted:
Wed Jan 12, 2005 4:16 pm Post subject:
Re: webpart classresources error! |
|
|
You have to create a folder by the name of your assembly in the wpresources
folder and place your resource files in it.
e.g /_wpresources/AssemblyName/
If you assembly is signed then place is as :
/_wpresources/AssemblyName/AssemblyVersion_PublicKeyToken/
To refer to your resources just link as /_WPR_/image.gif. SharePoint will
automatically map the path to your assembly's proper resource folder.
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:364D4B5C-85BB-429D-8F15-AF0A39DF30EA@microsoft.com...
| Quote: | Hi
We have a problem of placing the class resource files. As our webpart is
complext webpart which is deal with database through webservice.
We have created a usercontrol web application. and through javascript
LoadService we get data. now, if we create this usercontrol to webpart,
where
do we need to place the class resources. We have followed the msdn
document
which says you need to place in wpresouces of SPS if the assembly is
placed
on the bin directory. (I hope including aspx pages,ascx files javascripts,
images should be placed in Wpresources)
we are getting error after placing the webpart classresources in
wpresources
as assembly refers as webapplication/images/myimage.gif, and now, its
'wpresources/images/myimages.gif' somehow we could manage the image
folders.
but javascript loadwebservices still gives error since we place in in
wpresouces.
I have tried with
LoadControl('/wpresources/webapplication/usercontrol.ascx') and built
also.
still gives problem.
Can somebody gives clue on how to fix this issue?
Thanks,
Shridhar
|
|
|
| Back to top |
|
 |
Amar Galla
Guest
|
Posted:
Wed Jan 12, 2005 4:18 pm Post subject:
Re: webpart classresources error! |
|
|
You can also check the ClassResourcePath property in MSDN.
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:364D4B5C-85BB-429D-8F15-AF0A39DF30EA@microsoft.com...
| Quote: | Hi
We have a problem of placing the class resource files. As our webpart is
complext webpart which is deal with database through webservice.
We have created a usercontrol web application. and through javascript
LoadService we get data. now, if we create this usercontrol to webpart,
where
do we need to place the class resources. We have followed the msdn
document
which says you need to place in wpresouces of SPS if the assembly is
placed
on the bin directory. (I hope including aspx pages,ascx files javascripts,
images should be placed in Wpresources)
we are getting error after placing the webpart classresources in
wpresources
as assembly refers as webapplication/images/myimage.gif, and now, its
'wpresources/images/myimages.gif' somehow we could manage the image
folders.
but javascript loadwebservices still gives error since we place in in
wpresouces.
I have tried with
LoadControl('/wpresources/webapplication/usercontrol.ascx') and built
also.
still gives problem.
Can somebody gives clue on how to fix this issue?
Thanks,
Shridhar
|
|
|
| Back to top |
|
 |
Shridhar
Guest
|
Posted:
Wed Jan 12, 2005 6:21 pm Post subject:
Re: webpart classresources error! |
|
|
Hi Amar,
Thanks. But still I have a problem of accessing webservice from javascript.
http://sps/myaspxfiles/myservice.asmx will works fine. but if I cut and
paste this folder in wpresources folder,i.e.
http://sps/wpresources/myaspxfiles/myservices.asmx gives error as you are
not able to browse as throws as u are not authorize to run etc. but I am an
administrator and I have all the permission.
Is there any exclude path or somthing to be done to execute the webservice
in wpresources?
thanks,
shridhar
"Amar Galla" wrote:
| Quote: | You can also check the ClassResourcePath property in MSDN.
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:364D4B5C-85BB-429D-8F15-AF0A39DF30EA@microsoft.com...
Hi
We have a problem of placing the class resource files. As our webpart is
complext webpart which is deal with database through webservice.
We have created a usercontrol web application. and through javascript
LoadService we get data. now, if we create this usercontrol to webpart,
where
do we need to place the class resources. We have followed the msdn
document
which says you need to place in wpresouces of SPS if the assembly is
placed
on the bin directory. (I hope including aspx pages,ascx files javascripts,
images should be placed in Wpresources)
we are getting error after placing the webpart classresources in
wpresources
as assembly refers as webapplication/images/myimage.gif, and now, its
'wpresources/images/myimages.gif' somehow we could manage the image
folders.
but javascript loadwebservices still gives error since we place in in
wpresouces.
I have tried with
LoadControl('/wpresources/webapplication/usercontrol.ascx') and built
also.
still gives problem.
Can somebody gives clue on how to fix this issue?
Thanks,
Shridhar
|
|
|
| Back to top |
|
 |
Amar Galla
Guest
|
Posted:
Thu Jan 13, 2005 10:05 am Post subject:
Re: webpart classresources error! |
|
|
The wpresources are for resources. Why do you want to run ur code from that
folder? I am not very sure, but I doubt if that folder will have run
permissions. Deploy your webservice to a folder which will have run
permissions, or in the unsafe execution folder at c:\program files\common
files\microsoft shared\web server extensions\60\_layouts\1033\.
--
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:A5AB53DA-AB16-4CA8-8E29-9DD234F3E092@microsoft.com...
| Quote: | Hi Amar,
Thanks. But still I have a problem of accessing webservice from
javascript.
http://sps/myaspxfiles/myservice.asmx will works fine. but if I cut and
paste this folder in wpresources folder,i.e.
http://sps/wpresources/myaspxfiles/myservices.asmx gives error as you
are
not able to browse as throws as u are not authorize to run etc. but I am
an
administrator and I have all the permission.
Is there any exclude path or somthing to be done to execute the webservice
in wpresources?
thanks,
shridhar
"Amar Galla" wrote:
You can also check the ClassResourcePath property in MSDN.
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:364D4B5C-85BB-429D-8F15-AF0A39DF30EA@microsoft.com...
Hi
We have a problem of placing the class resource files. As our webpart
is
complext webpart which is deal with database through webservice.
We have created a usercontrol web application. and through javascript
LoadService we get data. now, if we create this usercontrol to
webpart,
where
do we need to place the class resources. We have followed the msdn
document
which says you need to place in wpresouces of SPS if the assembly is
placed
on the bin directory. (I hope including aspx pages,ascx files
javascripts,
images should be placed in Wpresources)
we are getting error after placing the webpart classresources in
wpresources
as assembly refers as webapplication/images/myimage.gif, and now, its
'wpresources/images/myimages.gif' somehow we could manage the image
folders.
but javascript loadwebservices still gives error since we place in in
wpresouces.
I have tried with
LoadControl('/wpresources/webapplication/usercontrol.ascx') and built
also.
still gives problem.
Can somebody gives clue on how to fix this issue?
Thanks,
Shridhar
|
|
|
| Back to top |
|
 |
Shridhar
Guest
|
Posted:
Mon Jan 17, 2005 6:15 pm Post subject:
Re: webpart classresources error! |
|
|
Hi Amar,
Yea,
But I am calling webservice from javascript through LoadWebService method(in
javascript). But The javascript ingore this method when I place the
javascript file in this wpresources folder. I have placed asmx files to some
other locations like _vti_bin. but still the loadWebService is not executing.
Please can anybody help to resolve this issue?
THanks,
Shridhar
"Amar Galla" wrote:
| Quote: | The wpresources are for resources. Why do you want to run ur code from that
folder? I am not very sure, but I doubt if that folder will have run
permissions. Deploy your webservice to a folder which will have run
permissions, or in the unsafe execution folder at c:\program files\common
files\microsoft shared\web server extensions\60\_layouts\1033\.
--
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:A5AB53DA-AB16-4CA8-8E29-9DD234F3E092@microsoft.com...
Hi Amar,
Thanks. But still I have a problem of accessing webservice from
javascript.
http://sps/myaspxfiles/myservice.asmx will works fine. but if I cut and
paste this folder in wpresources folder,i.e.
http://sps/wpresources/myaspxfiles/myservices.asmx gives error as you
are
not able to browse as throws as u are not authorize to run etc. but I am
an
administrator and I have all the permission.
Is there any exclude path or somthing to be done to execute the webservice
in wpresources?
thanks,
shridhar
"Amar Galla" wrote:
You can also check the ClassResourcePath property in MSDN.
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:364D4B5C-85BB-429D-8F15-AF0A39DF30EA@microsoft.com...
Hi
We have a problem of placing the class resource files. As our webpart
is
complext webpart which is deal with database through webservice.
We have created a usercontrol web application. and through javascript
LoadService we get data. now, if we create this usercontrol to
webpart,
where
do we need to place the class resources. We have followed the msdn
document
which says you need to place in wpresouces of SPS if the assembly is
placed
on the bin directory. (I hope including aspx pages,ascx files
javascripts,
images should be placed in Wpresources)
we are getting error after placing the webpart classresources in
wpresources
as assembly refers as webapplication/images/myimage.gif, and now, its
'wpresources/images/myimages.gif' somehow we could manage the image
folders.
but javascript loadwebservices still gives error since we place in in
wpresouces.
I have tried with
LoadControl('/wpresources/webapplication/usercontrol.ascx') and built
also.
still gives problem.
Can somebody gives clue on how to fix this issue?
Thanks,
Shridhar
|
|
|
| Back to top |
|
 |
Amar Galla
Guest
|
Posted:
Wed Jan 19, 2005 6:49 am Post subject:
Re: webpart classresources error! |
|
|
Maybe your javascript is not being included in the final rendered html.
Check the path by which you are including the javascript, ( make sure u are
linking it as I explained before ) and maybe put some alerts in the
javascript code till you confirm that the javascript file is being included
in the final rendered page. Maybe your src link for the javascript is not
proper, and hence, it is unable to call the method which will call ur web
service.
If the script is being included properly, then try and check the path of the
webservice. You may need to dynamically assign the path to the web service
in your code.
--
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:BC0C50B7-4B3B-4492-9A3B-C4134203B27D@microsoft.com...
| Quote: | Hi Amar,
Yea,
But I am calling webservice from javascript through LoadWebService
method(in
javascript). But The javascript ingore this method when I place the
javascript file in this wpresources folder. I have placed asmx files to
some
other locations like _vti_bin. but still the loadWebService is not
executing.
Please can anybody help to resolve this issue?
THanks,
Shridhar
"Amar Galla" wrote:
The wpresources are for resources. Why do you want to run ur code from
that
folder? I am not very sure, but I doubt if that folder will have run
permissions. Deploy your webservice to a folder which will have run
permissions, or in the unsafe execution folder at c:\program
files\common
files\microsoft shared\web server extensions\60\_layouts\1033\.
--
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:A5AB53DA-AB16-4CA8-8E29-9DD234F3E092@microsoft.com...
Hi Amar,
Thanks. But still I have a problem of accessing webservice from
javascript.
http://sps/myaspxfiles/myservice.asmx will works fine. but if I cut
and
paste this folder in wpresources folder,i.e.
http://sps/wpresources/myaspxfiles/myservices.asmx gives error as
you
are
not able to browse as throws as u are not authorize to run etc. but I
am
an
administrator and I have all the permission.
Is there any exclude path or somthing to be done to execute the
webservice
in wpresources?
thanks,
shridhar
"Amar Galla" wrote:
You can also check the ClassResourcePath property in MSDN.
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Shridhar" <Shridhar@discussions.microsoft.com> wrote in message
news:364D4B5C-85BB-429D-8F15-AF0A39DF30EA@microsoft.com...
Hi
We have a problem of placing the class resource files. As our
webpart
is
complext webpart which is deal with database through webservice.
We have created a usercontrol web application. and through
javascript
LoadService we get data. now, if we create this usercontrol to
webpart,
where
do we need to place the class resources. We have followed the msdn
document
which says you need to place in wpresouces of SPS if the assembly
is
placed
on the bin directory. (I hope including aspx pages,ascx files
javascripts,
images should be placed in Wpresources)
we are getting error after placing the webpart classresources in
wpresources
as assembly refers as webapplication/images/myimage.gif, and now,
its
'wpresources/images/myimages.gif' somehow we could manage the
image
folders.
but javascript loadwebservices still gives error since we place in
in
wpresouces.
I have tried with
LoadControl('/wpresources/webapplication/usercontrol.ascx') and
built
also.
still gives problem.
Can somebody gives clue on how to fix this issue?
Thanks,
Shridhar
|
|
|
| Back to top |
|
 |
|
|
|
|