how any1 explain how to creat the websertvice and consume it using vs2003?
1st i created a new web service which is called communityService.asmx
then i created all the other staff in the Engine/framework/services
and Engine/framework/webboxes
when i tried to add a web reference i fiind the error explained above, i tried to exclued the global.ascx from the project with the same error message :S:S
is there any mistake i made in the sequence of creating the service or what? can any1 explain in details how to create it with all it's related classes untill to reach to the proxy class?
knowing that i made no changes in the original code.
no i didn't compile the application 'coz there's a dependents in the webboxsx'.cs and some other classes depend on the webcservice proxy class which i can' create yet.
Find your Global.asax.cs file and ensure that the namespace and class name match your Global.asax file
namespace
HHCommunity.Communities
{
//*********************************************************************
//
// Global Class
//
// The Global.asax is used to setup the timer for service subscriptions.
//
//*********************************************************************
public
class Global : System.Web.HttpApplication
{ ......
no i didn't compile the application 'coz there's a dependents in the webboxsx'.cs and some other classes depend on the webcservice proxy class which i can' create yet.
Since they are the same then there probably will not be much you can do until you compile the application (as albertpascual suggested) so that it can find a reference in the application DLL; you might want to create stubs so that you can compile.
but how can i compile it although these is alot of dependences as i told u?
all the skinnes files depends on the webboxes.cs whic depends on the connunityService.cs which is the proxy class of the communityService.ascx :(
i found that there's an object on the proxy class called client exists only in the proxy class and is used in the "serviceUtility.cs" in the following path "Engine\Framework\Services\Components"
in the GetRemoteServiceContent() and ServiceResponseInfo CallCommunityService()
Assuming that you cannot compile because you are missing a reference to the
Client object; "exists only in the proxy class". If you'll add the following
stub to the bottom of your ServiceUtility.cs file you should be able to compile your code until such time that you replace or remove the Client object's original functionality (password security for web services); it appears that you
no longer have the proxy class CommunityService which is located in the /framework/Services/Components/Client folder.
namespace
ASPNET.StarterKit.Communities.Services.Client {
public class
CommunityService {
public
string Url;
public
SecurityHeader SecurityHeaderValue;
public
ServiceResponseInfo GetCommunityContent() {
return
new ServiceResponseInfo();
}
public System.Data.DataSet GetFullCommunityContent(string communityName,
string sectionPageType,
byte[] lastTimeStamp ){
return
new System.Data.DataSet();
}
}
public class
SecurityHeader {
public
string Password;
}
}
osos.bg
Member
132 Points
27 Posts
Could not load type global.ascx
Apr 13, 2006 10:37 PM|LINK
Hi All
i'm trying with my community webservice but when trying to add a web reference i got this error
-------Error Start-----------
Parser Error Message: Could not load type 'HHCommunity.Communities.Global'.
Source Error:
Source File: c:\inetpub\wwwroot\HHCommunity\global.asax Line: 1
---------Error End---------
how any1 explain how to creat the websertvice and consume it using vs2003?
1st i created a new web service which is called communityService.asmx
then i created all the other staff in the Engine/framework/services
and Engine/framework/webboxes
when i tried to add a web reference i fiind the error explained above, i tried to exclued the global.ascx from the project with the same error message :S:S
is there any mistake i made in the sequence of creating the service or what? can any1 explain in details how to create it with all it's related classes untill to reach to the proxy class?
knowing that i made no changes in the original code.
any help will be appriciated.
thnx alot
albertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: Could not load type global.ascx
Apr 14, 2006 01:16 AM|LINK
Check if you compiled the application and if there is DLLs on the bin directory
Al
Al
My Blog
osos.bg
Member
132 Points
27 Posts
Re: Could not load type global.ascx
Apr 14, 2006 07:05 AM|LINK
Hi Al
no i didn't compile the application 'coz there's a dependents in the webboxsx'.cs and some other classes depend on the webcservice proxy class which i can' create yet.
BillKrat
Participant
868 Points
176 Posts
Re: Could not load type global.ascx
Apr 14, 2006 12:10 PM|LINK
<%@ Application Codebehind="Global.asax.cs" Inherits="HHCommunity.Communities.Global" %>
Find your Global.asax.cs file and ensure that the namespace and class name match your Global.asax file
HHCommunity.Communitiesnamespace
{
//*********************************************************************
//
// Global Class
//
// The Global.asax is used to setup the timer for service subscriptions.
//
//********************************************************************* public class Global : System.Web.HttpApplication
{ ......
osos.bg
Member
132 Points
27 Posts
Re: Could not load type global.ascx
Apr 15, 2006 09:14 AM|LINK
BillKrat
Participant
868 Points
176 Posts
Re: Could not load type global.ascx
Apr 15, 2006 12:26 PM|LINK
Since they are the same then there probably will not be much you can do until you compile the application (as albertpascual suggested) so that it can find a reference in the application DLL; you might want to create stubs so that you can compile.
osos.bg
Member
132 Points
27 Posts
Re: Could not load type global.ascx
Apr 15, 2006 01:43 PM|LINK
but how can i compile it although these is alot of dependences as i told u?
all the skinnes files depends on the webboxes.cs whic depends on the connunityService.cs which is the proxy class of the communityService.ascx :(
i found that there's an object on the proxy class called client exists only in the proxy class and is used in the "serviceUtility.cs" in the following path "Engine\Framework\Services\Components"
in the GetRemoteServiceContent() and ServiceResponseInfo CallCommunityService()
i hope i've explaind my problem now.
BillKrat
Participant
868 Points
176 Posts
Re: Could not load type global.ascx
Apr 16, 2006 11:49 AM|LINK
Hi osos.bg,
Assuming that you cannot compile because you are missing a reference to the Client object; "exists only in the proxy class". If you'll add the following stub to the bottom of your ServiceUtility.cs file you should be able to compile your code until such time that you replace or remove the Client object's original functionality (password security for web services); it appears that you no longer have the proxy class CommunityService which is located in the /framework/Services/Components/Client folder.
namespace
ASPNET.StarterKit.Communities.Services.Client {public class CommunityService {
public string Url;
public SecurityHeader SecurityHeaderValue;
public ServiceResponseInfo GetCommunityContent() {
return new ServiceResponseInfo();
}
public System.Data.DataSet GetFullCommunityContent(string communityName, string sectionPageType, byte[] lastTimeStamp ){
return new System.Data.DataSet();
}
}
public class SecurityHeader {
public string Password;
}
}
osos.bg
Member
132 Points
27 Posts
Re: Could not load type global.ascx
Apr 24, 2006 09:59 PM|LINK
Hi Bill
sorry for being late i've some work to be done.
thnx for ur reply it's works finally after addin' this to a new class then rebuilt the proj, it'd some bugs but finally it works fine.
thnx again
saikatbiswas...
Member
2 Points
1 Post
Re: Could not load type global.ascx
Sep 20, 2007 08:29 AM|LINK
I have performed the following steps and it is working fine.
Go to Control Panel.
All the best!!! [:)]
Saikat