Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message: Webresource name does not contain a valid prefix. #481

Open
westerdaled opened this issue Feb 25, 2024 · 1 comment
Open

Message: Webresource name does not contain a valid prefix. #481

westerdaled opened this issue Feb 25, 2024 · 1 comment

Comments

@westerdaled
Copy link

The error is

Creating Webresource '..\web-resources\js\mysolution-form.js' -> '/js/mysolution-form.js'
The application terminated with an error.
Timestamp: 25/02/2024 20:58:04
Code: -2147159784
Message: Webresource name does not contain a valid prefix.

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

Created a Visual Studio project folder in

.\myDataverseSolution\DeployWebresources

My js files are in

.\myDataverseSolution\web-frontend\web-resources\js

My splk.json

    */
  "files": [
    {
      "uniquename": "/js/mysolution-form.js",
      "file": "..\\web-resources\\js\\mysolution-form.js",
      "description": ""
    }
  ]

My client chose the project folder for the XRm typescript files so ... I am hoping this isn't the issue 😒

@westerdaled
Copy link
Author

Fortified by a decent latte, I figured out the issue:

The unique name in the spkl.json must represent the name I used in the solution ( not the name of the file).

Deployed 1 webresource(s)
Publishing 1 webresources...
Publish complete.
Processed 1 section(s)
Processed 1 config(s)
Press any key to continue . . .

I guess my one concern is I want to " auto detect" when one of my Js files has changed since last publish and only deploy if this the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant